System design interview preparation
System design interview practice
Practise system design interviews by building and testing architectures. Start with a URL shortener, then use timed Interview mode on harder problems.
Play the matching problemPractise a decision you can test
A useful design exercise starts with people trying to do something: open a link, send a message or book a room. Write down what they expect before choosing services. Ask which operation must be quick, what may be a little old and what must never disappear after success is reported. A design is easier to explain when each part protects one of those promises.
System Designer gives you a brief, clarification answers, estimates and a traffic day. You draw the architecture, set capacity and policies, then observe what holds and what breaks. Use the measurements to revise one decision. The goal is to build an explanation from the requirement to the mechanism and the result.
A practice order that builds on each attempt
URL shortener
People paste a long web address and get back a short one. Millions of other people then tap that short link, so reading is almost everything. Keep every tap fast, and never lose a link.
Play this problem · Easy
Rate limiter for a public API
Developers call your public API from scripts and apps. A few misbehaving or malicious clients can crowd out everyone else. Build limits that are fair, fast and cheap, and that survive a retry storm.
Play this problem · Medium
One-to-one chat
People send short messages to each other from their phones. A message must arrive once, in order, even when the phone is on a bad connection and sends it again. If the other person is offline, the message waits and a notification goes out.
Play this problem · Medium
Notification service
Every other team asks you to send messages: order shipped, new login, a sale starting. You send them by push, email and text through outside providers who have their own limits. Send each message once, and never block the team that asked.
Play this problem · Medium
Social feed
Every person opens the app and sees a feed of posts from the people they follow. Most people have a few hundred followers, but a few have millions, and when they post, millions of feeds must change. The feed must be fast and your own post must show up at once.
Play this problem · Hard
Hotel booking
You run a hotel booking site. People search for rooms, open hotel pages and book. Search can be a little behind, but you must never sell the last room twice. Bots copy your prices all day, and sometimes the payment company slows down.
Play this problem · Medium
Use the same loop for each question
- Clarify who uses the system, which request matters and what success promises.
- Estimate requests per second and storage with units. Separate normal load from an event peak.
- Draw the simplest connected design that could meet those requirements.
- Predict the first bottleneck and name the event that will expose it.
- Run the whole traffic day. Save the affected request, event and result.
- Change one decision and repeat. Explain the improvement, its cost and what remains uncertain.
Keep the request paths separate. One total request rate does not mean every request reaches every store. Cache hits remove work from a downstream path, retries add it and fanout turns one action into many writes. Spare capacity must cover recovery as well as the normal workload. Explain which of those effects your estimate includes.
Know what the evidence proves
A traffic run tests the modeled load and failures. It does not prove every possible ordering of a payment, a database write and a lost reply. Trace one logical operation across a retry and a crash. Name where its identity and outcome survive. Use the correctness checks and written explanation alongside the measured traffic result.
The debrief compares reliability, speed, data safety and monthly cost. A reference design gives you another set of choices to investigate after completing a day. Rebuild from the brief before reading the editorial on your next attempt so you can tell whether you understand the mechanism or only remember a diagram.
Move into Interview mode
Interview mode on Medium and Hard problems adds a timed discussion and asks you to defend choices with evidence. Start with ordinary Practice if you still need to learn the parts. Then use the timed flow to lead clarification and estimates before building. A useful defense names the requirement, the alternative and a measurement that would make you change your mind.
Follow the two-week interview practice plan or read the full practice loop.
Playing on systemdesigner.io needs a free Google or GitHub account. These pages, the lessons and the guides can be read without one. Figures in the game are teaching approximations.