Skip to content

Lesson 1 of 9 · 23m

Requirements Before Boxes: The First Ten Minutes Matter Most

Turn a vague prompt into users, critical workflows, constraints, scale targets, and explicit exclusions before selecting any architecture component.

The worst system design answer I ever watched was technically beautiful: Kubernetes, Kafka, Cassandra, Redis, multi-region failover. It solved nothing because the candidate never asked who used the product. In interviews and at work, architecture drawn before requirements is just decoration. The first ten minutes decide whether the remaining fifty are useful.

Start with actors and jobs

Ask who the system serves and what job hurts enough to justify it. A URL shortener for marketing campaigns, malware-scanning redirect protection, and internal service links have different abuse, latency, audit, and availability requirements even though all three "store short links."

Write them down:

actors          readers, publishers, moderators, operators, attackers
core jobs       create link, resolve link, report click, disable abuse
operators       rotate keys, inspect incidents, reverse bad deploys
adversaries     spam, scraping, credential stuffing, denial of service

Do not skip attackers. Security is not an appendix; abuse traffic often becomes the scaling case.

Convert the prompt into workflows

Architecture follows paths through the system. Capture the two or three workflows that carry most value and risk:

resolve:  GET /abc123 -> cache lookup -> storage fallback -> 302
create:   validate URL -> allocate key -> write metadata -> return link
disable:  moderator action -> invalidate cache -> propagate within 2s

Each workflow has a different service-level objective. Resolution may need p95 under 50 ms and five nines of availability. Creation can tolerate more latency but less duplication. Moderator takedown is rare yet latency-critical when abuse happens.

Ask constraints before volunteering answers

Useful constraints include traffic volume, growth, geography, consistency expectations, latency budget, durability, privacy, compliance, team size, deployment environment, and cost ceiling. In a real job, add organizational constraints: which data stores are already operated well, which on-call rotations exist, and which migrations are politically impossible this quarter.

Define non-goals explicitly

Non-goals are not laziness; they bound the design. Examples:

not designing analytics beyond aggregate click counts
not supporting user-defined key aliases in v1
not promising immediate global consistency for edits
not building a custom database or service mesh

Interviewers listen for judgment. Saying what you will not design demonstrates more seniority than naming another component.

Produce a requirement summary

Before drawing boxes, read back a concise contract:

Serve 2B reads/month globally, 20k writes/day.
Reads must survive storage node loss and resolve in <50ms p95.
Writes need durable metadata and abuse controls.
Moderation must make links unusable within seconds.
Analytics may be delayed by minutes. Multi-region active-active is out of scope.

Now the architecture has something to answer to.

Field notes

  • If every answer starts with Kafka, the question was never understood.
  • "Highly available" is meaningless until tied to a user-visible operation and failure window.
  • Ask whether identifiers, content, or relationships are sensitive; data classification changes storage and logging choices.
  • In interviews, write requirements visibly. In real design docs, put them before diagrams so future readers can challenge them.

Was this lesson helpful?

Sign in to rate