How to find what will break first, compare options out loud, and justify a choice without sounding unsure.
Every design choice gives you something and takes something away. A strong answer says both out loud, picks one on purpose, and says what would change its mind. A bottleneck is the part that fills up first, and finding it is a method, not a guess.
There is no perfect design, only a design that fits these requirements. Fast, cheap, simple, consistent and always on pull in different directions. The skill interviewers look for is not knowing the best answer, but making a choice and explaining it.
A good trade-off statement has four parts: the options, what each gives and costs, the requirement that decides between them, and the condition under which you would choose differently. The last part shows you understand the limits of your own choice.
Finding a bottleneck is a similar habit. Every system has a slowest or smallest part. If you make everything else faster, the system is no faster, because that one part still limits it. So you look for it, fix it, and then look again, since the limit moves to the next part.
| Pair | One side gives | The other side gives | Read more |
|---|---|---|---|
| Consistency vs availability | Everyone sees the latest data | The system keeps answering during failures | CAP Theorem, Consistency Models |
| Latency vs throughput | Each request is fast | More requests per second in total | Latency vs Throughput vs Bandwidth |
| Read vs write speed | Fast reads (indexes, copies) | Fast writes (fewer copies and indexes) | Indexing, Denormalization |
| SQL vs NoSQL | Joins, transactions, a fixed shape | Easy scale-out and flexible data | SQL vs NoSQL |
| Push vs pull fan-out | Cheap reads, work at write time | Cheap writes, work at read time | Message Queues |
| Sync vs async | Simple, the caller knows the result | Smooths bursts and survives slow parts | Message Queues, Event-Driven Architecture |
| Normalise vs denormalise | No duplicates, easy updates | Fewer joins, fast reads | Normalization, Denormalization |
| Cost vs performance | Cheaper to run | Faster or more reliable | Capacity Planning |
| Simple vs flexible | Easy to build and understand | Easy to change later | — |
| Build vs buy | Fits exactly, full control | Faster to start, less to maintain | — |
| Resource | Sign it is the limit | Usual fixes |
|---|---|---|
| CPU | Servers at high CPU, slow responses | More servers, cheaper code, caching |
| Memory | Swapping, out-of-memory kills, slow garbage collection | Bigger machines, less per request, external cache |
| Disk I/O | Long waits on reads and writes | Indexes, SSDs, caching, batching writes |
| Network | Saturated links, large payloads | Compression, CDN, fewer round trips |
| Locks | Many requests waiting on one row or one lock | Smaller transactions, sharding, queues |
| One database | All traffic ends up on one machine | Cache, replicas, sharding, queues |
| A hot key | One key or shard gets far more than others | Spread the key, local cache, a better shard key |
| One region | A region outage or far-away users | Multiple regions, a CDN |
A simplified model with made-up capacities (90% reads, 10% writes). Real systems differ, so measure yours. The point is the habit: push the load, find what fills first, fix it, and check what fills next.
| Term | Meaning in easy words |
|---|---|
| Trade-off | What you give up to get something else |
| Bottleneck | The part that fills up first and limits the whole system |
| Utilisation | How full a resource is, as a share of its limit |
| Headroom | Spare capacity left before a limit is hit |
| Hot key / hot partition | One key or shard that gets far more traffic than the others |
| Celebrity problem | One account with millions of followers that breaks the usual fan-out |
| Fan-out | Sending one thing to many places, on write or on read |
| Back pressure | Telling senders to slow down when the receiver is full |
| Single point of failure | One part that stops everything if it breaks |
| Decision record | A short written note of a choice, the options and the reasons |
| Assumption | A stated guess that your design depends on |
| Revisit condition | What would make you change the choice |
| Choice | We gain | We lose |
|---|---|---|
| List many options | Shows breadth | Time, and a vague decision |
| Compare two options deeply | Clear reasoning | Might miss a third good option |
| Commit and move on | Pace and confidence | Risk if the choice is wrong |
| Ask the interviewer to choose | Aligned with their view | Looks unsure if you do it often |
| Back every choice with numbers | Credibility | Time spent on maths |