Whiteboard
How to use the whiteboard
In a system design interview you draw the parts of a system and the path a request takes between them.
This board is a place to practise that drawing. It opens with a URL shortener design, so you can see a finished example first.
- Pick a starting point. Keep the URL shortener, load the Chat System template, or delete the parts and start from an empty board.
- Add parts. Click a part in the Component Palette, such as Load Balancer or Redis Cache. It appears on the board, and you can drag it into place.
- Connect them. Click Connect, then the part a request leaves, then the part it reaches. With Traffic on, dots move along each line.
- Break a part. Select a part and click Simulate Failure. Each click moves it from healthy to degraded to down, and traffic into a part that is down stops.
- Keep a copy. Export the board as a PNG or SVG picture to share it, or as JSON to keep the parts and lines.
Questions to ask of any design you draw
An interviewer tests a drawing with questions like these. Each one links to the lesson that answers it.
- How many requests a second must it handle, and how much data will it store?Capacity estimation
- Where does a request come in, and what spreads the load across servers?Load balancing
- Which data is read most often, and can a cache answer those reads?Caching strategies
- Which data must never be lost, and how many copies of it are kept?Replication and sharding
- Which work can wait, so a queue can take it off the request path?Message queues and Kafka
- When one part goes down, which requests fail and which still work?Circuit breakers and resilience
Practise on a real problem
Every interview problem has a finished design and an "Open in whiteboard" button that copies it here. You can also run a timed mock interview with this board open beside it.