System Design · 4 topics · 16 questions
Fundamentals
For students new to system design. Covers how systems scale, the consistency and availability trade-offs behind distributed data, how services communicate, and how to estimate load and storage.
Fundamentals progress0%
- 1st Visit
- 0/16
- 2nd Visit
- 0/16
- Revise
- 0/16
01Scalability & Performance
0/4
Scalability is a system's ability to handle more users, data or requests by adding resources, without a redesign and without performance degrading sharply. Performance…
Topic guide02CAP, Consistency & Availability
0/4
When data is replicated across machines, a system must decide what a read returns while replicas disagree and what to do when the network between them fails. This topic…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | What is the CAP theorem? | Concept | Easy | Read the answer to What is the CAP theorem? | |||
| 2 | What is the difference between strong consistency and eventual consistency? | Concept | Medium | Read the answer to What is the difference between strong consistency and eventual consistency? | |||
| 3 | How is availability measured, and what do SLAs, SLOs and the 'nines' mean? | Concept | Medium | Read the answer to How is availability measured, and what do SLAs, SLOs and the 'nines' mean? | |||
| 4 | How do quorum reads and writes work, and why does R + W > N matter? | Concept | Hard | Read the answer to How do quorum reads and writes work, and why does R + W > N matter? |
03APIs & Communication
0/4
Services communicate with clients and with each other through APIs, and the style chosen affects performance, coupling and how easily the system can evolve. This topic…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | What is a REST API, and what makes an API RESTful? | Concept | Easy | Read the answer to What is a REST API, and what makes an API RESTful? | |||
| 2 | When would you choose REST, GraphQL or gRPC? | Concept | Medium | Read the answer to When would you choose REST, GraphQL or gRPC? | |||
| 3 | What is idempotency, and how do you make a POST request safe to retry? | Concept | Medium | Read the answer to What is idempotency, and how do you make a POST request safe to retry? | |||
| 4 | How do short polling, long polling, WebSockets and Server-Sent Events differ? | Concept | Medium | Read the answer to How do short polling, long polling, WebSockets and Server-Sent Events differ? |
04Back-of-the-Envelope Estimation
0/4
Back of the envelope estimation is the quick arithmetic used early in a design interview to size a system: requests per second, storage growth, bandwidth, cache memory…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Which numbers should you know for back-of-the-envelope estimation? | Concept | Easy | Read the answer to Which numbers should you know for back-of-the-envelope estimation? | |||
| 2 | How do you estimate the queries per second (QPS) a system must handle? | Concept | Medium | Read the answer to How do you estimate the queries per second (QPS) a system must handle? | |||
| 3 | How do you estimate the storage a system will need over several years? | Concept | Medium | Read the answer to How do you estimate the storage a system will need over several years? | |||
| 4 | How do you estimate bandwidth, cache size and the number of servers? | Concept | Medium | Read the answer to How do you estimate bandwidth, cache size and the number of servers? |