AI Hints
Home›System Design Tutorial›The Interview
System Design · Lesson 116 of 120

Talking About Trade-offs

There is no perfect design.

⏱ 2 min read▶ Video at 2:21:15🎓 Free
Watch this lesson in the System Design courseWatch on YouTube ↗Full System Design course

Every choice in system design gives you something, and costs you something. The best engineers don't hide this. They say it clearly. That's what makes a design discussion convincing.

Talking About Trade-offs
From the video: Talking About Trade-offs
  • Every choice gives and costs
  • Say it clearly
  • Be convincing

Classic trade-offs

Here are trade offs you'll mention again and again. Consistency versus availability. Latency versus throughput. Read speed versus write speed, as with indexes and denormalization. Simplicity versus scale, as with monoliths and microservices. And cost versus everything.

Trade-offExample
Consistency vs availabilityCP or AP during a split
Latency vs throughputbatching requests
Reads vs writesindexes, denormalization
Simple vs scalablemonolith vs microservices
Cost vs everythingmore nines cost more

A useful sentence

A simple sentence pattern helps. I'll choose this, because of that requirement. It costs us this, which is acceptable because of that. For example, I'll use eventual consistency for like counts, because speed matters more. The cost is counts may lag a few seconds, which users won't notice.

keyvalue
I'll chooseeventual consistency
Becausespeed matters for likes
It costscounts lag a little
Acceptable sinceusers won't notice

Summary

Name what each choice gives and costs, and tie it to the requirements. That's how you discuss trade offs well. Next, common mistakes, and how to avoid them.

Key takeaways
  • Gives and costs
  • Tie to requirements
  • Use the sentence pattern
Next up: Common Mistakes — and how to avoid them