SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
Part 9: Estimation and Interview Method
  • The 7-Step Interview Framework
  • Talking About Trade-offs and Bottlenecks
Part 10: Case Studies
System Design/Estimation and Interview Method/Interview Method

Talking About Trade-offs and Bottlenecks

How to find what will break first, compare options out loud, and justify a choice without sounding unsure.

⏱ 13 min readIntermediateMust KnowInterview FavouriteHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

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.

  • Trade-off sentence: "A gives X but costs Y. Because Z matters most, I choose A. I would revisit if W changes."
  • Bottleneck method: follow one request, ask "what happens at 10 times the load?", check each resource, fix the first one, then look again.
  • Avoid "always" and "never". State your assumptions and what you would monitor.

02Concept: What is it?

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.

The four-part trade-off sentence
⚖️OptionsA or B
→↓gives and costs
🎯Deciding needwhat matters most
→↓so I choose
✅ChoiceA, on purpose
→↓unless
🔁Revisit ifwhat would change it
Say all four, in this order. It takes about ten seconds.

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.

🧠Fixing one bottleneck reveals the next
A cache removes the database read limit. Now the database write limit shows up. A queue fixes that, and the app servers become the limit. This is normal. Say it in the interview: "this moves the bottleneck to..."

03Real-Life Example

🍵The Busy Restaurant
A restaurant gets more guests than it can serve. The owner can add tables, but the kitchen is the real limit, so more tables only make a longer wait. Hiring cooks helps, until the one dishwasher becomes the limit. Each fix is a trade-off too: more cooks cost more money and need more space. A smart owner finds the slowest station first, fixes it, and then walks the line again.
Restaurant
System design
The kitchen is the slowest station
The database is the bottleneck
Adding tables does not help
Adding app servers does not help
Hire more cooks
Add replicas or shards
Pre-make popular dishes
Cache hot data
Take orders now, cook later
Queue the work
The dishwasher is next
The next bottleneck appears
More cooks cost more
Every fix has a cost

04Why Do We Need It?

🧠Shows judgement
Anyone can list tools. Choosing between them for a reason is the real skill.
🗣️Easy to follow
A fixed sentence shape keeps your explanation clear and short.
🔍Finds real problems
A method for bottlenecks beats guessing which part will fail.
💬Handles pushback
If you know what would change your mind, a challenge becomes a normal discussion.
💰Controls cost
Fixing only the real bottleneck avoids buying capacity you do not need.
🧪Works at work
Design reviews and decision records use the same reasoning.
Say what you choose, what it costs, why it is right for these requirements, and what would change your mind. That is most of what a design interview is testing.

05Where Do We Use It?

🎤Design interviews
Steps 5 to 7: the deep dive, hardening and the wrap-up are all trade-offs and bottlenecks.
📝Decision records
A short note: context, options, decision, consequences. It is the trade-off sentence on paper.
🏛️Architecture reviews
Reviewers ask 'what does this cost us?' and 'what happens at 10 times?'
📈Capacity planning
Find the first resource to run out, and plan to add it before it does.
🔥Performance work
Profile first, fix the biggest cost, and measure again.
🧯Incident reviews
What was the bottleneck, and what was the trade-off we had accepted?

06Types / Parts / How It Works

Common trade-off pairs

PairOne side givesThe other side givesRead more
Consistency vs availabilityEveryone sees the latest dataThe system keeps answering during failuresCAP Theorem, Consistency Models
Latency vs throughputEach request is fastMore requests per second in totalLatency vs Throughput vs Bandwidth
Read vs write speedFast reads (indexes, copies)Fast writes (fewer copies and indexes)Indexing, Denormalization
SQL vs NoSQLJoins, transactions, a fixed shapeEasy scale-out and flexible dataSQL vs NoSQL
Push vs pull fan-outCheap reads, work at write timeCheap writes, work at read timeMessage Queues
Sync vs asyncSimple, the caller knows the resultSmooths bursts and survives slow partsMessage Queues, Event-Driven Architecture
Normalise vs denormaliseNo duplicates, easy updatesFewer joins, fast readsNormalization, Denormalization
Cost vs performanceCheaper to runFaster or more reliableCapacity Planning
Simple vs flexibleEasy to build and understandEasy to change later—
Build vs buyFits exactly, full controlFaster to start, less to maintain—

Finding the bottleneck: check each resource

ResourceSign it is the limitUsual fixes
CPUServers at high CPU, slow responsesMore servers, cheaper code, caching
MemorySwapping, out-of-memory kills, slow garbage collectionBigger machines, less per request, external cache
Disk I/OLong waits on reads and writesIndexes, SSDs, caching, batching writes
NetworkSaturated links, large payloadsCompression, CDN, fewer round trips
LocksMany requests waiting on one row or one lockSmaller transactions, sharding, queues
One databaseAll traffic ends up on one machineCache, replicas, sharding, queues
A hot keyOne key or shard gets far more than othersSpread the key, local cache, a better shard key
One regionA region outage or far-away usersMultiple regions, a CDN
Typical fix for each kind of bottleneck
Too many reads
⚡Cache
📚Read replicas
🌍CDN
Too many writes
📬Queue and batch
🧩Shard
Spikes and slow parts
🪣Back pressure
⏱️Async work
Pick the fix that matches the cause.
Read side Write side Load shaping
VisualizerPush the load up and chase the bottleneckSlide the traffic up until something turns red. Apply a fix (cache, replicas, queue, shard, CDN) and watch the bottleneck move to a different tier. Read the trade-off sentence that goes with each fix.
Request path: client → each tier below, from top to bottom. A bar shows how full the tier is.
⚖️Load balancer
5%
🖥️App servers
25%
⚡Cache
none
🗄️Databasebottleneck
90%
Pick a fix (click again to remove it)
Reach our servers
3,000
req/s after the CDN
Reads at the database
2,700
req/s
Writes at the database
300
req/s
At 3x load nothing is over its limit. The busiest part is the database at 90%. Raise the load to find what breaks next.
Say it like this: Right now the database (reads) limits us. Pick a fix and say what it gives and what it costs.

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.

07How to Use It / Steps / Implementation

Finding the bottleneck, step by step

  1. 1
    Follow one request
    Trace it from the client to the database and back. List every box it touches.
  2. 2
    Put a number on each box
    From your estimates: requests per second in, and what one machine can take. See Back-of-the-Envelope Estimation.
  3. 3
    Ask 'what happens at 10 times?'
    Multiply the load. Which box goes over its limit first?
  4. 4
    Check the less obvious limits
    Locks, a hot key, connection pools, one region, a single leader.
  5. 5
    Find single points of failure
    Which box, if it dies, stops everything? Add copies or a fallback.
  6. 6
    Pick the fix that matches the cause
    Reads: cache or replicas. Writes: queue or shard. Spikes: back pressure.
  7. 7
    Say the trade-off, then look again
    State what the fix costs and which box is the new limit.

Talking about it

  1. Name the options. "We could cache, add replicas, or shard."
  2. Give and cost. "A cache is cheap and fast but can serve stale data."
  3. Tie it to a requirement. "Feeds can be a few seconds old, so stale data is fine."
  4. Use a number. "At 30,000 reads a second and 3,000 per database, one database is not enough."
  5. Say when you would change. "If we need to read our own writes at once, I would revisit this."
  6. Say what you would monitor. "Cache hit rate and replica lag."
💡Handling pushback
If the interviewer says "what if the cache is down?", do not defend. Say "good point", name the effect (all reads hit the database), and give a fix (a replica, a fallback, rate limits, a warm standby).
📝Decision records
On a team, write the same four parts in a short note: context, options, decision, consequences. A year later, the reasons are still there.

08Key Terms to Know

TermMeaning in easy words
Trade-offWhat you give up to get something else
BottleneckThe part that fills up first and limits the whole system
UtilisationHow full a resource is, as a share of its limit
HeadroomSpare capacity left before a limit is hit
Hot key / hot partitionOne key or shard that gets far more traffic than the others
Celebrity problemOne account with millions of followers that breaks the usual fan-out
Fan-outSending one thing to many places, on write or on read
Back pressureTelling senders to slow down when the receiver is full
Single point of failureOne part that stops everything if it breaks
Decision recordA short written note of a choice, the options and the reasons
AssumptionA stated guess that your design depends on
Revisit conditionWhat would make you change the choice

09Pros, Cons and Trade-offs

✅ Pros
  • Shows reasoning, not just knowledge
  • Makes pushback easy to handle
  • Targets money and effort on real limits
  • Keeps answers short and structured
  • Builds a habit used in real design reviews
⚠️ Cons
  • Can sound scripted if overused
  • Needs numbers you may only have roughly
  • Easy to list trade-offs and never decide
  • Too many options can hide the choice
  • Models of bottlenecks are simpler than real systems

Trade-offs in how you explain

ChoiceWe gainWe lose
List many optionsShows breadthTime, and a vague decision
Compare two options deeplyClear reasoningMight miss a third good option
Commit and move onPace and confidenceRisk if the choice is wrong
Ask the interviewer to chooseAligned with their viewLooks unsure if you do it often
Back every choice with numbersCredibilityTime spent on maths

10Common Problems and Mistakes

Common mistakes

  1. Saying "always" or "never". "NoSQL is better for scale" is rarely true in every case. Say when it is.
  2. Only the upside. A choice with no cost named is a choice not understood.
  3. Listing without deciding. Three options and no pick leaves the interviewer to do your job.
  4. Fixing the wrong box. Adding app servers when the database is the limit changes nothing.
  5. Forgetting the next bottleneck. Every fix moves the limit. Say where it goes.
  6. No numbers. "It might not scale" is weaker than "3,000 per database against 30,000 needed".
  7. Ignoring hot keys. Averages hide one key that gets 1,000 times the traffic.
  8. Defending a mistake. Say "good catch" and fix it.

Things to watch

🧮Averages hide peaks
Design for peak and for the busiest key, not the daily average.
🧱Hidden limits
Connection pools, thread pools and lock waits can limit you before CPU does.
🔄Fixes with new risks
A cache adds staleness. A queue adds delay. A shard adds complexity.
📏Measure, then claim
In real work, profile and load-test. A guess is a starting point only.

11Real-World Examples

📰News feeds
Push on write is cheap to read but slow for huge accounts, so many systems mix push and pull.
🛒Flash sales
The inventory row becomes a hot key. Teams queue orders or split the stock to spread the load.
🎬Video streaming
Bandwidth is the limit, so popular files are cached close to viewers on a CDN.
💳Payments
Correctness beats speed here, so teams accept slower writes and stronger consistency.
📊Analytics
Reads on big data are slow, so results are precomputed and served from a separate store.
🌍Global apps
A single region adds delay for far users, so data is copied to several regions with some staleness.
📝Note
These are common patterns, not statements about any one company's internal design.
Mini case: the bottleneck that moved
🗄️Database readsfirst limit
→↓add cache
✍️Database writesnext limit
→↓add queue
🖥️App serversnext limit
→↓add servers
✅Headroomuntil the next 10x
Each fix was right. Each one revealed the next limit.

12Related Topics to Read Next

The 7-Step Interview Framework→

Where trade-offs and bottlenecks fit in the whole interview.

Back-of-the-Envelope Math in Practice→

The numbers that let you say which box is the limit.

Requirements Gathering→

The requirements that decide between two options.

CAP Theorem→

The classic consistency versus availability trade-off.

Consistency Models→

How strong a promise your readers really need.

Caching Strategies→

The most common fix for read-heavy bottlenecks.

Sharding→

The fix when one database cannot take the writes.

Message Queues→

Smooth bursts and decouple slow parts.

Hot Keys→

One key can be the bottleneck even when the average is fine.

Single Point of Failure (SPOF)→

Find the box that stops everything if it fails.

Back Pressure→

A fix for spikes: tell senders to slow down.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • ✔Trade-off sentence: gives X, costs Y, because Z, revisit if W.
  • ✔Bottleneck method: trace a request, number each box, multiply by 10, fix the first one.
  • ✔Match fix to cause: reads: cache, replicas, CDN. Writes: queue, shard. Spikes: back pressure.
  • ✔Say where it moves: every fix reveals the next limit.
  • ✔Watch for: hot keys, locks, connection pools, single points of failure.
  • ✔Avoid: "always" and "never". State assumptions.
  • ✔Back it up: one number beats ten adjectives. Say what you would monitor.
  • ✔One line: “Find what fills first, fix it, say what it cost, and look again.”
← Previous
The 7-Step Interview Framework
Next →
Design a URL Shortener