Four pathways, each built around one system that grows chapter by chapter: a small service in Foundations, a replicated wallet in Distributed Systems, a food-delivery app in System Design and a support assistant in AI Engineering. Every idea arrives when that system needs it, with the numbers worked out and the tradeoff named.
Each chapter is one page and ends with the free reading worth your time, linked to the people who wrote it. Walk a pathway in order, or open the chapter your work needs this week.
One small service, followed all the way down
We follow hitcount, a small service that counts page views for a blog, from source code to process, through its bytes, caches, kernel, concurrent requests and network path, then estimate, profile and question its numbers. Each chapter starts from something that went wrong with it and works out why.
One wallet service, from one machine to three in two data centres
A payments wallet carries all ten chapters. It starts on one server; then a transfer times out and nobody knows whether it happened. From there we make retries safe, order updates without trusting clocks, replicate balances, elect a leader, fence the old one, move money between shards, and test whether any of it holds. System Design leans on every chapter here.
One product, designed end to end, every choice argued
We design Dabba, a food-ordering and delivery app working across Indian cities, from the first request a customer makes to a system that survives its own failures. Each chapter adds what the product needs next and argues the choice from Dabba’s numbers: an order API that is safe to retry, caches and a CDN for a read-heavy menu, storage and a data model for orders, a correct write path, then sharding, streams, live rider locations, background jobs, rate limits, security, failure handling and a second region. It closes with a worked design and an atlas of the classic problems.
One support assistant, built from a first classifier to production
We follow a single system through every chapter: a support assistant for a stock-broking app that answers from the help centre, looks up orders and raises tickets. It starts as a message classifier, which teaches how models learn and how to measure them, then becomes a language model with serving costs worked out, prompts written as specifications, retrieval that can be traced, and the customisation, agents, security and evaluation that production needs.