sagelearnai

The Delivery Framework

Strong candidates are rarely smarter; they are more organised. A fixed sequence of steps keeps you from designing the wrong thing, running out of time, or forgetting the parts that earn senior credit. Use the same framework for every practice design until it is automatic.

Learning objectives

  • Run the six steps: requirements, core entities, API, high-level design, deep dives and wrap-up.
  • Write functional and non-functional requirements that actually shape the design.
  • Build the high-level design one requirement at a time, then scale it in deep dives.
  • Manage time and interaction with the interviewer.
Requirements~5 min Core entities~2 min API~5 min High-leveldesign~10–15 min Deep dives~10–15 min Wrap-up~3 min
Client / userData storeNetwork / edgeService / computeObservability
The delivery framework. Each step produces something on the whiteboard that the next step builds on. Deep dives are where seniority shows, so protect their time.
  1. Requirements (~5 min): 3–5 core functional requirements ("users can shorten a URL", "users are redirected"), then the non-functional ones that shape the design: scale, latency, availability vs consistency, durability. Ask, then state assumptions.
  2. Core entities (~2 min): the nouns your system stores and exchanges (User, Url, Click). Don't design full schemas yet; a short list keeps the API and design consistent.
  3. API (~5 min): one endpoint per functional requirement, with inputs and outputs. REST by default; mention WebSockets or gRPC only if a requirement needs them. Authenticate from a token, never from a user id in the body.
  4. High-level design (~10–15 min): draw the components that satisfy each functional requirement, one requirement at a time, walking a request through them. Keep it simple and correct before making it scalable.
  5. Deep dives (~10–15 min): revisit the non-functional requirements. Where does it break at 100× scale? Hot keys, consistency, failure, latency. Lead these yourself at senior level; the interviewer will also push.
  6. Wrap-up (~3 min): summarise trade-offs, what you would monitor, the cost drivers, and what you would build next. Staff-level candidates close with operational ownership.

Step 1: requirements (~5 minutes)

Functional requirements are "users can…" statements. Keep 3–5 core ones and explicitly park the rest:

"Users can create a short URL from a long one, optionally with a custom alias. Visiting the short URL redirects to the original. Out of scope for now: analytics dashboards and user accounts."

Non-functional requirements are the qualities that drive architecture. Quantify them:

QualityExampleWhy it matters
Scale100M new URLs a month; 10B redirects a monthDrives caching and sharding
LatencyRedirects under 100 ms at p99Drives caching and CDN
Availability vs consistencyRedirects must be highly available; a new link can take a second to appearDrives replication choices
DurabilityLinks must never be lostDrives storage choice and backups

Do a quick estimate only if it will change a decision (next lesson).

Step 2: core entities (~2 minutes)

List the nouns: User, ShortUrl, Click. This gives you a vocabulary for the API and the data model, without wasting time on full schemas.

Step 3: API (~5 minutes)

One endpoint per functional requirement:

text
POST /urls            { longUrl, customAlias? }  → 201 { shortCode }
GET  /{shortCode}                                → 302 Location: longUrl

Identify the user from an auth token, never from a userId in the request body.

Step 4: high-level design (~10–15 minutes)

Satisfy the functional requirements one at a time, walking a request through the boxes: client → load balancer → service → database. Draw the simplest thing that works first. Say what each component does and what it stores.

Step 5: deep dives (~10–15 minutes)

Now go back to the non-functional requirements and stress the design: "10B redirects a month is about 4K per second average, maybe 40K at peak, so we need a cache in front of the database. How do we generate unique codes without collisions across servers?" Pick 2–3 deep dives yourself; the interviewer will add one.

Step 6: wrap-up (~3 minutes)

Summarise the key trade-offs, what you would monitor (and alert on), the main cost drivers, and what you would do next.

Interaction habits

  • Narrate decisions, not drawing. "I'm putting a cache here because reads outnumber writes 100 to 1."
  • Check in at boundaries. "That covers the core flow. Shall I go deeper on code generation or on the redirect path?"
  • Take hints gracefully. If the interviewer asks "what if this server dies?", they are pointing at a weakness. Address it.
  • Keep a parking lot in a corner of the board for things to revisit.
Common time sinks

Long requirement lists, detailed schemas before the architecture, and debating technologies before you have a design. Each step should leave something on the board and move on.

Self-check

Walk me through how you structure a system design interview.
  • Requirements (functional + quantified non-functional), core entities, API, high-level design per requirement, deep dives on non-functional stress points, wrap-up with trade-offs, monitoring and cost.
What are good non-functional requirements for a URL shortener?
  • Scale (writes and redirects per month/second), redirect latency p99, high availability for redirects, durability, eventual consistency acceptable for new links.

Last reviewed 2026-11-05.