Pinned Tweet
Just shipped a video building Redis from first principles.
No libs. Pure thinking: in-memory structures, multi-threaded workers, and zero duplicate message processing.
How I actually reason about systems → youtu.be/VhcTWvrmiow
#buildinpublic #Redis
8
10
374
Mohak retweeted
Finally watched today. What a film!!!!
#RamayanaMovie
#RamayanaPart1
been building redis from scratch in go. started with codecrafters, now its my own multi-threaded version
stuff that surprised me:
1
1
60
wrote a redis-compatible server in go. one dependency (quicklist for lists), everything else is stdlib
net, sync, time. go's stdlib is kinda unfair
1
6
122
TIL:
- rotten orenges is the perfect example using which you can learn multi source bfs
- you find all the possible nodes you can start with
- push it in a queue and based on the size of queue you run the inside loop
- and then the simple bfs work
2
6
79
gcp was charging us $75/month to transcode videos for like 200 students
moved it to the browser with webcodecs. now its ~$30
the user's laptop is the transcoder now lmao
3
20
TIL:
- how to deep clone a graph
- number of islands revision
- trying to solve rotten oranges (intuition is not coming so will work on it)
Side projects:
- worked on redesigning my old portfolio
- wireframed it
- made an youtube video on that
4
58
wireframing my portfolio redesign before touching any code
excalidraw inside obsidian, every page sketched, one font picked (söhne). recorded the whole thing, almost an hour of me larping as a design engineer
Here it is:
youtu.be/F3XOUb2SgbI
4
58
TIL:
- you don't have to do it in the hard way, we can use ingress and ingress controller in k8s
- ingress is the configuration that we write in yaml
- ingress controller is the engine that converts it to a respective controller (nginx, caddy) and run it
5
65
nginx shipped 10 security fixes on nov 18 and nobody is talking about it
5 of them (nginx2root) got RCE in researcher tests:
- http/2 flow control
- http/2 + http/3 upstream proxy
- dns resolver
- mail proxy auth
running nginx? update it. no in-the-wild exploits reported yet
2
199
TIL: Regularization is the process which is being used for reducing overfitting in ANN
- learnt about both L1 and L2
Redis with Go:
- some refactor for auto generating ID
- still working on solution
Kubernates:
- nginx usecase as LB
Here are some notes:
6
75
TIL: what are redis streams and how to start building one?
- used a bruteforce structure for this
- it is basically how redis stores timeseries data
K8s:
- Learnt what ClusterIP are
- using nginx (the old fashioned way of RP)
DL:
- learning basic backpropagation
- maths on it
5
108

















