System Design Interview Questions and Answers

Every question here is a complete design, from a simple URL shortener up to a payments ledger or a multi-region system. Each answer ends with a trade-offs table, because the usual follow-up is not "what would you build" but "what does that cost you".

A good order is to start with the small designs (URL shortener, rate limiter, notification service) to learn the building blocks, then do the data-heavy ones (feed, chat, search), and leave payments and multi-region for last. Say each design out loud once before you read the answer.

Questions

Related

Frequently asked questions

How do I start a system design answer?

Ask what the system must do and how big it is, write down the numbers (users, requests per second, storage), then sketch the simplest design that works and improve it where the numbers say it will break.

How much detail do interviewers expect?

Enough to defend each box: what it stores, how it scales and what happens when it fails. A short, correct design with clear trade-offs beats a long diagram you cannot explain.

Can I practise without a partner?

Yes. The practice page lets you answer a question by typing or speaking and scores how much of a strong design you covered. Your first three scored questions are free.