Requirements and SLO worksheet
Sort a prompt into requirements, then turn users and targets into peak load and an error budget.
- Functional vs non-functional
- SLO numbers
Labs
All 37 labs are free and need no account. 24 are live simulations, including a cache, Kafka and a rate limiter. 5 are interactive, such as consistent hashing, and 8 are guided walkthroughs.
Each lab is a small system you can run, tune and break. There are three kinds. A live simulation runs many requests at once and checks that its counts add up. An interactive lab works out exact numbers as you change the inputs. A guided walkthrough goes through one case, step by step. Most labs also have a "Try this" list of short experiments to run.
Turn a prompt into requirements, then into numbers.
Sort a prompt into requirements, then turn users and targets into peak load and an error budget.
Turn users and actions into requests per second, storage and bandwidth — the numbers interviewers expect.
Concept: Capacity and cost estimation
How a request travels and how systems grow.
Follow one request through DNS, CDN, load balancer, cache and database, with the latency of each hop.
Concept: The client–server model
Watch the architecture change as traffic grows, and which bottleneck forces each change.
Concept: Vertical and horizontal scaling
Open a persistent connection, keep it alive with heartbeats, and detect connections that silently died.
The components almost every design uses.
Round robin, weighted, least connections and IP hash — plus slow servers, crashes and health checks.
Concept: Load balancing and health checks
Cache-aside, write-through and write-behind; LRU/LFU/FIFO; TTLs, stale reads, stampedes and cold starts.
Concept: Caching strategies
Edge caches in three regions in front of one origin: hit rate by popularity, TTL and size, purges, and an origin shield.
Concept: CDNs and edge caching
Three copies of a service send heartbeats to a registry, and a caller keeps its own copy of the list. Stop a copy or the registry, and see how long requests keep failing.
Token checks, per-client limits, retries, and one gateway as a single point of failure.
Concept: Reverse proxies and API gateways
Five algorithms under one policy: token bucket, leaky bucket, fixed window and two sliding windows.
Concept: Rate limiting
Keys and ordering, consumer groups and lag, leader failover and acks, producer and consumer duplicates, batching, retention and replay.
Concept: Message queues and Kafka
What happens when work arrives faster than it can be processed: growing queues, shedding, or slowing the producer.
Concept: Message queues and Kafka
Write and read keys in both engines to see in-place page updates versus memtables, SSTables and compaction.
Concept: Indexes and storage engines
Run transactions side by side and watch lost updates, dirty reads, wrong totals and write skew appear, then pick a level that stops them.
Concept: Transactions and isolation levels
Copying and splitting data across machines.
Async, semi-sync and sync replication; stale reads, read-your-writes routing, and what failover can lose.
Concept: Replication and sharding
Choose a shard key and watch hot spots, salting, fan-out queries and the cost of adding a shard.
Concept: Replication and sharding
Make row IDs five ways, from auto-increment to UUIDs and Snowflake, and measure repeats, order, trips and the index.
Concept: Replication and sharding
Add and remove servers on a hash ring and see exactly which keys move — compared with hash % N.
Concept: Consistent hashing
Place a rider on a map of 200 drivers and search three ways: scan everyone, a fixed grid of cells, or a quadtree. See which cells are read and how many drivers are checked.
Partition two regions and choose between rejecting writes (consistency) or accepting them and reconciling later (availability).
Concept: CAP, PACELC and quorums
Skew one node's clock and watch last-writer-wins drop newer edits, then order edits with Lamport and vector clocks.
Concept: Time, clocks and ordering
Five nodes run real Raft: random election timers, split votes, majority commits, a crashed leader and a split network.
Concept: Consensus and Raft
A worker pauses while holding a lock, the lock expires, and two workers write — unless storage checks fencing tokens.
Concept: Distributed locks and fencing tokens
What happens when things fail — and how to contain it.
Compare retry policies during an outage and a traffic spike, and measure the extra load each one creates.
Concept: Timeouts, retries and idempotency
Break a dependency and watch the breaker move through closed, open and half-open while protecting both services.
Concept: Circuit breakers and bulkheads
Percentiles vs averages, fan-out and the tail, error budgets, and why burn-rate alerts beat simple thresholds.
Ship version 2 to six servers all at once, as a rolling update, blue-green or as a canary. Make it faulty, and watch the traffic share, failed requests and rollback.
Concept: CI/CD and safe deployments
Rename a column on a table that a live app is using. Do it in one step or in six safe steps, skip a step, and see which version of the code breaks.
Ask for copies of an app, and watch an orchestrator place them on machines. Kill a machine or raise the traffic, and see how long each fix takes.
Slow one service down and watch full worker pools spread the slowdown to pages that never call it. Then try timeouts, a queue limit, a bulkhead and retries.
Coordinating work across services.
Why "save to the DB, then publish an event" loses events, how an outbox fixes it, and how a saga undoes partial work.
Append events, build a read model from them, and rebuild state at any point in time.
Concept: CQRS and event sourcing
Count clicks in 10-second windows while phones go offline and retries send clicks twice; choose how long to wait for stragglers.
Concept: Stream and batch processing
Count clicks per country with mappers and reducers; add a combiner, a hot key or a slow worker, and watch the job time.
Concept: Stream and batch processing
Regions, failover and the cost of staying up.
Fail a region or cut the link between two: measure RTO, RPO, conflicts, split brain and the cost of the standby.
Serving language models: batches, memory and queues.
Requests fill a GPU batch and its memory; watch batching, long prompts and batch size decide how fast each user gets an answer.
Concept: LLM serving and retrieval (RAG)
Each of these sits inside a lesson of the AI track, beside the text that explains it.