teluzia.Cloud Engineer · Day 186
CHAPTER 27 · INTERVIEW LOOPS

System design discussion

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Discussion structure is today's starting point. For an order API, clarify order volume, payment semantics and allowed delay before choosing synchronous processing or a queue. State which assumption would change the choice. You will connect this with design trade-offs and evolution path. The lesson's artifact brings these decisions together: Discuss an order API for 20 minutes, create a capacity estimate and diagram, then change the requirement to regional failure and revise the weakest decision.

Think of it this way

A design discussion is a live blueprint review: changed requirements should change the drawing and its trade-offs.

TOPIC 01 / 03Step by step

Discussion structure

Begin with requirements, scale and constraints, then propose the simplest coherent design. Ask clarifying questions as the conversation develops; drawing services before understanding users hides assumptions. For an order API, clarify order volume, payment semantics and allowed delay before choosing synchronous processing or a queue. State which assumption would change the choice.

WORKED EXAMPLE
For an order API, clarify order volume, payment semantics and allowed delay before choosing synchronous processing or a queue. State which assumption would change the choice.

A requirement defines expected behavior; a constraint bounds viable choices; an estimate makes workload assumptions testable. Imagine a messaging design must preserve order only within a conversation, not globally. That clarification permits partitioning by conversation and avoids unnecessary total ordering across all users. Ask about retention, duplicate handling and read patterns before naming infrastructure. Hand-calculate a representative workload and identify uncertainty instead of presenting unsupported precision. Design discussion is collaborative, so revise the assumption when the interviewer changes it. A simple first architecture is easier to reason about, while anticipating every possible future can bury the current problem in unnecessary components. Explain the present request path, stored state and failure behavior, then identify which new requirement would justify the next design change rather than offering a fixed diagram as universally correct.

Why this matters

State which assumption would change the choice.

A common trap

Drawing services should always precede clarifying requirements.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Discussion structure

Begin with requirements, scale and constraints, then propose the simplest coherent design. Ask clarifying questions as the conversation develops; drawing services before understanding users hides assumptions. For an order API, clarify order volume, payment semantics and allowed delay before choosing synchronous processing or a queue. State which assumption would change the choice.

WORKED EXAMPLE
For an order API, clarify order volume, payment semantics and allowed delay before choosing synchronous processing or a queue. State which assumption would change the choice.

A requirement defines expected behavior; a constraint bounds viable choices; an estimate makes workload assumptions testable. Imagine a messaging design must preserve order only within a conversation, not globally. That clarification permits partitioning by conversation and avoids unnecessary total ordering across all users. Ask about retention, duplicate handling and read patterns before naming infrastructure. Hand-calculate a representative workload and identify uncertainty instead of presenting unsupported precision. Design discussion is collaborative, so revise the assumption when the interviewer changes it. A simple first architecture is easier to reason about, while anticipating every possible future can bury the current problem in unnecessary components. Explain the present request path, stored state and failure behavior, then identify which new requirement would justify the next design change rather than offering a fixed diagram as universally correct.

Why this matters

State which assumption would change the choice.

A common trap

Drawing services should always precede clarifying requirements.

Design trade-offs

Compare alternatives using workload, data guarantees, availability and operating effort. Explain the downside of your preferred option; interview discussion values defensible decisions more than a list of fashionable tools. A queue absorbs bursts and permits retry but delays completion and needs idempotency. A synchronous call gives immediate feedback but couples availability to the downstream dependency.

WORKED EXAMPLE
A queue absorbs bursts and permits retry but delays completion and needs idempotency. A synchronous call gives immediate feedback but couples availability to the downstream dependency.

A trade-off accepts a downside for a benefit; a consistency requirement defines visible data behavior; operational complexity is the effort to run and recover the design. Imagine choosing a read replica to reduce primary load. The replica may lag, so decide which reads tolerate old data and route correctness-sensitive reads accordingly. Explain the failure mode and recovery strategy as part of the choice, not as an afterthought. Alternatives should be plausible for the given scale and team, rather than extreme options selected to make your preference appear obvious. More components can improve capacity but also add synchronization and diagnosis paths. A good discussion ties benefits and costs to requirements, names an unresolved question and describes a small validation that would test the most important assumption before committing to the architecture.

Why this matters

A synchronous call gives immediate feedback but couples availability to the downstream dependency.

A common trap

Preferred options have no limitations to mention.

Evolution path

Identify the first bottleneck and the signal that justifies changing it. Provide a migration and rollback sketch; future scaling should preserve data correctness and current service behavior. If backlog age crosses the agreed limit, add consumers only while the database has headroom. A region-failure requirement may also require replicated data and a tested traffic-switch procedure.

WORKED EXAMPLE
If backlog age crosses the agreed limit, add consumers only while the database has headroom. A region-failure requirement may also require replicated data and a tested traffic-switch procedure.

An evolution trigger is evidence that the current design is insufficient; a migration changes state or routing; rollback provides a safe return when feasible. Imagine storage growth approaches a chosen partition's limit. Define the measured threshold, data movement method and compatibility period before announcing a new partitioning scheme. Maintain client behavior while old and new layouts coexist, and decide how partial migration is tracked. A scale-out plan can lose correctness if writes race across versions. Future-proofing all components adds present complexity, while ignoring foreseeable limits makes later change risky. Present a bounded next step tied to observable demand or availability needs, explain how it is tested and identify cases where rollback is impossible without reconciliation. The evolution path should preserve the current contract, not simply replace service names on the diagram.

Why this matters

A region-failure requirement may also require replicated data and a tested traffic-switch procedure.

A common trap

Future scaling needs no data migration or rollback plan.

KEEP THESE WITH YOU

Today’s takeaways

Discussion structure: Begin with requirements, scale and constraints, then propose the simplest coherent design.

Design trade-offs: Compare alternatives using workload, data guarantees, availability and operating effort.

Evolution path: Identify the first bottleneck and the signal that justifies changing it.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed