13 deep notesInteractive modelsA portfolio project
CASE STUDY 02TRY THE MECHANISM ↓
REQUEST / K1Interactive model
ClientIntent
APIContract
DatabaseDurable result
A client submits one job with intent key K1.
1 / 5
↳ The response is not the operation. Trace what happens after a write commits.
CODE IS THE BEGINNING.UNDERSTANDING IS THE WORK.
FREE SYSTEM DESIGN LAB · NO SIGN-UP
Don’t just read about it. Watch it carry load.
Kill a server behind a load balancer. Burst past a rate limiter. Expire a hot cache key and watch the database spike. Add a node to a hash ring and count the keys that move.
LOAD BALANCER / 4 SERVERSLive simulation
S1
S2
S3
S4
Served
0
Failed
0
p95 latency
0.00 s
Capacity
32 req/s
Try it: make Server 2 slow. Round robin keeps sending it a quarter of the traffic, so its queue fills and p95 latency climbs. Switch to least connections and watch the queue drain. Then kill a server: requests fail until the next health check removes it from the pool.
HTTP, API contracts, idempotency, PostgreSQL transactions and migrations, caching, queues, Docker, CI/CD, telemetry, incidents, and restores: the topics system design interviews keep asking about, taught through one service you actually build.