Skip to content
derpx06.dev
WritingExplainersNotesAbout
works on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisationworks on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisation

Learning in public.

A student's notebook on system design, distributed systems and databases. Shared as I learn.

ReadWritingExplainersNotesAbout
ElsewhereGitHubLinkedInHugging FaceLeetCode
Say hellomanaskhairnar1511@gmail.com
derpx06
NORMALmain© 2026 Derpx06Pune, Indiatop ↑

Articles on how things work inside.

Simple articles on how databases, servers and the internet work under the hood, and how big systems grow. Each one starts from a question you have probably wondered about.

33 articles
Latest · FoundationsWhy is 0.1 + 0.2 not 0.3 in code?

Every language says 0.30000000000000004. Here is why binary can't store tenths, what it costs, and how to dodge it.

Read it21 Nov · 3 min
PostmortemsHow one bad software update lost $460 million in 45 minutes

A real deploy gone wrong: an old flag, one forgotten server and no off button. What the SEC report says, and what to do differently.

13 Nov · 5 minRead →
Distributed SystemsWhat are CRDTs? How shared documents stay in sync

Three people edit the same document offline, then reconnect. A CRDT makes every copy end up identical with no referee. We start with a counter, then text.

12 Nov · 4 minRead →
DatabasesWhat really happens when you delete a file or a database row?

You hit delete and the file is gone. Except it is not. Here is what really happens on disks, SSDs and databases, and why GDPR erasure is hard.

10 Nov · 4 minRead →
Distributed SystemsHow does TCP work on bad Wi-Fi?

Bad Wi-Fi drops data all day, yet downloads still finish. Here is how TCP pulls that off.

9 Nov · 4 minRead →
SecurityWhy password hashing is slow on purpose

Fast code is usually good. For passwords, it's a gift to attackers. Here's why slow hashing, salts and Argon2 keep a leaked database from hurting you.

8 Nov · 5 minRead →
FoundationsHow do maps apps find the fastest route?

Dijkstra, A* and shortcut tricks: how a computer picks the best route out of millions of roads in a blink.

5 Nov · 5 minRead →
FoundationsWhy does one emoji have a length of 5, 7 or 17?

One facepalm emoji has length 5 in Python, 7 in JavaScript and 17 bytes on disk. Here is why, plus the Turkish I bug.

4 Nov · 4 minRead →
InfrastructureHow does Docker work? (A container is not a tiny computer)

A container is not a tiny VM. It is a normal process with limited sight (namespaces) and limited resources (cgroups), started from read-only layers.

2 Nov · 5 minRead →
InfrastructureHow does Kubernetes work?

Kubernetes is not a command runner. It keeps comparing what you asked for with what exists, and fixes the gap. Here is the loop, piece by piece.

30 Oct · 4 minRead →
NetworkingHow does DNS work?

You type a name, a number comes back. Here is the chain of small servers behind it, and why DNS changes take time.

27 Oct · 4 minRead →
NetworkingHow does HTTPS work? What the padlock really does

The padlock is three promises, not one. Here is how certificates, a quick handshake and fast encryption keep you safe on public Wi-Fi.

24 Oct · 4 minRead →
SecurityHow do websites remember you're logged in?

Your browser shows the same ID card on every request. Here is how cookies, sessions and tokens work, and why logout is the hard part.

21 Oct · 4 minRead →
FoundationsHow does your computer run many programs at once?

It does not run them at once. It swaps them super fast. Processes, the scheduler, context switches, virtual memory and system calls, explained simply.

18 Oct · 5 minRead →
FoundationsWhat is caching? Why it makes things fast (and tricky)

A cache is a bet that you will ask for the same thing twice. Here is what happens when the bet wins, loses, or goes stale.

15 Oct · 5 minRead →
DatabasesB-Trees vs LSM-Trees: how databases store your data

Every database picks a side: sort now or sort later. Most performance surprises you've hit come from which side it picked.

15 Oct · 4 minRead →
FoundationsWhat happens when you run Python code?

Python turns your code into bytecode first, then a tiny virtual machine runs it. See it with dis, meet .pyc files, and find out what the GIL is.

12 Oct · 5 minRead →
System DesignHow does video streaming work? (Why movies play on slow Wi-Fi)

Video is not one big file. It is tiny chunks, a menu of qualities, and a player that picks each piece. Here is how.

9 Oct · 4 minRead →
Distributed SystemsWhy mobile apps are hard: your phone is on bad internet

A phone is a copy of your data that goes offline without warning and comes back disagreeing. Most mobile bugs are exactly that.

8 Oct · 3 minRead →
System DesignHow does a search engine find one page out of billions so fast?

Google does not search the web when you do. It built a cheat sheet first. Here is how that list works, how pages get ranked, and how it scales.

6 Oct · 5 minRead →
System DesignHow to scale a website from 1 user to 1 million users

A home router copes with 10 devices, not 200. Websites too. Here is how one server grows into a million-user site, one bottleneck at a time.

3 Oct · 5 minRead →
DatabasesHow does a database keep your data when the power goes off?

You press save and the power cuts out. Your data is still there. The trick is a plain diary called the write-ahead log.

30 Sept · 5 minRead →
System DesignWhat is Kafka? Why it keeps messages after you read them

Queues let services hand off work and walk away. Kafka goes further with an append-only log. Here is how it scales, step by step.

27 Sept · 5 minRead →
Distributed SystemsWhy retrying a failed request can make things worse

Retrying a failed request is an obvious safety net, and easy to build backwards. It hinges on one question: did the first attempt actually fail?

24 Sept · 3 minRead →
System DesignWhat is sharding? Consistent hashing explained

Add one server and a naive database moves most of its data. Here is the ring trick that moves only a small slice instead.

24 Sept · 5 minRead →
System DesignSystem design: build a short-link service and scale it

A short link is just a lookup. Build one on a single machine, then watch each bottleneck show up and get fixed.

21 Sept · 5 minRead →
System DesignHow does a ride app find the nearest driver among millions?

Why you can't just index latitude and longitude, and how geohash, H3 hexagons and quadtrees chop the map into boxes.

18 Sept · 4 minRead →
RetrievalWhy your RAG chatbot gives bad answers (it's not the search)

When an AI answers badly from your own documents, people blame the search. Every time I've debugged it, the search was fine. The documents were the problem.

27 Aug · 4 minRead →
AI InterpretabilityInside Claude's hidden workspace: how it thinks before it talks

Anthropic found a tiny, editable workspace inside Claude that carries silent thoughts. What the J-lens shows, why it matters, and what it doesn't prove.

10 Jul · 7 minRead →
LLM SystemsWhat is the KV cache? Why ChatGPT doesn't re-read your whole chat

LLMs answer fast because they save work they already did. Here's the KV cache: what it fixes, what it costs, and how people shrink the cost.

27 Mar · 4 minRead →