25 guided lessons
System design & low-level design lessons
Short, practical lessons covering one core idea each — caching, read replicas, queues, hot keys, OOP modelling, design patterns and state machines — paired with interactive quizzes, code exercises and live simulator tasks.
System design (HLD) lessons (10)
How real distributed systems handle reads, writes, bursts, fan-out, shared state and money.
Caching reads: cache-aside and hit rate
Put a cache in front of a database and work out how much load it really takes off.
Read replicas and stale reads
Spread reads across copies of the database and know when they return old data.
CDNs: serving from close to the user
Know which content belongs on a CDN and what it saves.
Queues: accept now, work later
Move slow work off the request and keep a queue from falling behind.
Write-heavy data: batching and the right store
Handle a flood of writes by batching them and choosing a store built for it.
Hot keys and partitioning
Split data across nodes with a good key, and spot one key taking all the load.
Real-time fan-out with pub/sub
Deliver one message to many connected users within a second.
Shared state every server can see
Keep fast-changing state in one shared place instead of inside each server.
Idempotency: safe to retry
Make payments and orders safe when the same request arrives twice.
Ledgers and holds: never oversell
Record money as entries that add up, and reserve stock without overselling.
Low-level design (LLD) lessons (15)
How to turn an interview prompt into clean classes, data structures, design patterns and maintainable state machines.
From a problem to classes
Turn a problem statement into a first list of classes and methods.
One class, one job
Spot a class that does too much and split it.
Hide state behind methods
Protect an object's rules by keeping its data private.
Choose the structure for the operation
Pick a data structure from the operations a class must make fast.
Map plus ordered list: the LRU trick
Build constant-time get, put and evict-oldest.
Ordering with ties
Write one comparison rule that every part of the code agrees on.
Strategy: swap behaviour, not code
Replace an if/else on a type with interchangeable strategy classes.
State: what each mode allows
Model modes so each action asks the current state whether it is allowed.
Observer: tell others without knowing them
Let other parts react to events without the source depending on them.
Validate everything, then change
Make operations all-or-nothing so failures leave no half-done state.
Safe retries with request ids
Make a money operation safe to call twice.
Time you can control
Handle expiry and windows without timers, so behaviour is testable.
Open to extension, closed to edits
Shape a design so a new requirement means adding code, not rewriting it.
Polymorphism at scale
Give each kind of thing its own class when the behaviour really differs.
Systems that move step by step
Model a system that changes over time with a clear step rule.