Choosing and defending
easy 30 minEvery box on the board is a choice.
See it run
Build a decision from four parts, compare options in a minute, and watch a trigger change a design.
Operations
Four parts
One decision, said in full: cache the seat map for the 9:00 rush.
Step 1 of 4
Choice
| Part | Seat map |
|---|---|
| Choice | Cache the seat map |
| Reason | |
| Cost | |
| Trigger |
Name one option. "I will cache the seat map for two seconds."
Step 1: Choice
- When
- 15 seconds
- You leave with
- A choice you can defend
If you cannot finish the sentence after "because", you have not decided yet.
In the real world
The same choosing and defending doing real jobs. Pick one and step through it.
Decide and say why before you press next.
Step 1 of 10
Seat bookings
| Decision | Choose | Because |
|---|---|---|
| SQL or key-value? | ? | |
| Sync or async? | ||
| Push or pull? | ||
| Cache or not? | ||
| Strong or eventual? |
A seat must never be booked twice. SQL or key-value?
Step 1: Seat bookings
Common mistakes
The bugs interviewers watch for, with the fix beside each.
Listing without choosing
criticalThe interviewer still does not know what you would build.
Wrong"We could use SQL, Cassandra or Redis."Right"SQL, because of the unique rule. It costs..."A reason with no requirement
majorIt would be just as true of any system.
Wrong"Kafka, because it scales."Right"A log, because three teams replay the same events."Giving in at once
majorIt says the first choice was a guess.
Wrong"OK, let us use yours."Right"What would that fix for us? If it is latency..."Hiding the cost
majorThey will find it, and then you are defending instead of leading.
Wrong"There is no downside."Right"The price is a map that is two seconds old."
Interview tips
Say
- "I choose..."
- "because..." with a number.
- "It costs..."
- "unless..."
Compare
- Two needs, three options.
- Drop what fails, and say why.
- Two pass: take the simpler.
Grade
- Breaks: fails an agreed need.
- Works: meets it, with a limit.
- Strong: meets it, cost accepted.
Avoid
- Industry standard as a reason.
- One consistency level for everything.
- Arguing to win.