Volume 12 · Chapter 1 — System Design Case Studies

How to Approach a System Design Case

Goutham Mayaluri 7 min read AWSCloudSystem Design

1.1 Introduction

This volume applies everything built so far to concrete, end-to-end system design case studies - the kind you work through in a senior interview or a real architecture exercise. Before the cases, this chapter recaps the method for approaching them and explains how to read the studies that follow, each of which combines compute, data, messaging, resilience, security, and observability into a coherent design with explicit trade-offs. The goal is to see how the individual concepts compose into complete architectures and to internalize the reasoning process, which is what interviewers actually assess.

1.2 The Method, Recapped

As covered in Volume 7, a system design is approached in a structured way: clarify requirements first (functional and, critically, non-functional - scale, latency, availability, consistency, compliance) and narrow the scope; estimate the scale and define the core data model and key operations; sketch the high-level architecture (components and request flow) then deep-dive into the important parts; and address scaling, resilience, security, and observability while discussing trade-offs throughout. Each case study in this volume follows roughly this shape - requirements and constraints, then architecture, then the key design decisions and their trade-offs - so you see the method applied repeatedly to different problems, which is how it becomes second nature.

1.3 The Building Blocks Compose

The point of these case studies is that the building blocks from earlier volumes compose predictably. Nearly every design uses the same palette: an API gateway as the entry point; stateless services (containers or serverless) behind load balancers in Auto Scaling groups across multiple AZs; a relational system of record for integrity-critical data and purpose-built stores (DynamoDB, S3, cache) for the rest; asynchronous messaging (queues, pub/sub, streams) to decouple and scale; resilience patterns for robustness; security throughout (private subnets, IAM roles, encryption); and observability for operations. Recognizing this recurring palette means system design becomes assembling well-understood pieces to fit the specific requirements, rather than inventing from scratch - and articulating why each piece is chosen is the substance of a strong design.

flowchart TB
  Client((Clients)) --> CDN[CloudFront + WAF]
  CDN --> GW[API Gateway - auth, rate limit]
  GW --> Svc[Stateless services\nAuto Scaling across AZs]
  Svc --> Sync[(Relational system of record - ACID)]
  Svc --> Cache[(Cache - hot reads)]
  Svc --> Q[(Async messaging - queues/topics/streams)]
  Q --> Workers[Async consumers]
  Svc & Workers --> Obs[Metrics, logs, traces]
  Note[The recurring palette every design assembles] -.-> Svc

1.4 Requirements Drive Everything

The recurring lesson across all cases is that requirements determine the design. The same palette is assembled differently depending on the specific needs: a system needing strict consistency for money uses ACID transactions and idempotency; one needing massive read scale leans on caching and read replicas or DynamoDB; one needing to survive a Region loss adds multi-Region; one needing real-time processing uses streaming. So each case study starts from its requirements and constraints, and the architecture follows from them - which is exactly the discipline of clarifying requirements first. Reading the cases, notice how a change in requirement (higher scale, stricter consistency, lower RTO) would change specific decisions - that requirement-to-design mapping is the heart of the skill.

1.5 Trade-Offs Are the Substance

In every case, the interesting part is the trade-offs. Choosing asynchronous messaging buys decoupling at the cost of eventual consistency; choosing microservices buys independence at the cost of distributed complexity; choosing multi-Region buys Region-failure survival at the cost of expense and data-replication difficulty; choosing strong consistency costs latency or availability. A good design names these trade-offs explicitly and justifies each choice against the requirements - “I’m accepting eventual consistency here because the work can happen slightly later and decoupling matters more.” The case studies deliberately surface the key trade-offs in each design, because articulating them is what demonstrates senior judgment, far more than producing a diagram.

1.6 Banking Context

These case studies are framed around banking because it exercises the full range of concerns - strict correctness and consistency for money, high availability and disaster recovery for critical services, strong security and compliance, real-time processing for fraud, and scale for a large customer base. But the architectures and reasoning generalize directly to other domains; the banking framing simply makes the consistency, resilience, and security requirements concrete and demanding. As you read each case, the specific services and patterns apply broadly - a payment system’s integrity concerns mirror any transactional system, a fraud pipeline’s streaming design mirrors any real-time analytics, and so on.

1.7 How to Use These Cases

Use each case study as a worked example of the method and a template you can adapt. Follow how it moves from requirements to architecture to trade-offs, and practise articulating the same reasoning yourself. In an interview, you won’t reproduce a case verbatim - the specific prompt will differ - but the approach (clarify, estimate, design high-level then deep, address scaling/resilience/security/observability, name trade-offs) and the recurring palette transfer directly. The aim is not to memorize designs but to internalize the composable building blocks and the requirements-driven, trade-off-aware reasoning, so you can construct a sound design for whatever specific system you’re asked about.

Interview Question

What's your general approach to any system design problem, and why do trade-offs matter so much?

My general approach is a structured method that starts from requirements and ends with explicit trade-offs, because a system design interview tests reasoning, not a memorized answer. I begin by clarifying requirements and scope - both functional (the core features) and, critically, non-functional: expected scale, latency, availability, consistency, and constraints like compliance - and I narrow a broad prompt to a concrete scope, because the right design depends entirely on the requirements. Then I estimate the scale with rough numbers - requests per second, data volume, read/write ratio - and define the core data model and key operations, which grounds the design and drives storage and boundary choices. Next I sketch the high-level architecture - the major components and how a request flows through them - before deep-diving into the important parts: the services and their boundaries, the data stores and why each was chosen, and the critical flows. Throughout, I address how the system scales (stateless services, caching, read replicas, async processing, the right stores), how it’s resilient (multi-AZ, timeouts, circuit breakers, graceful degradation, and multi-Region if needed), and how it’s secure and observable. What I’ve found composing these designs is that the building blocks recur: nearly every system uses the same palette - an API gateway entry point, stateless services behind load balancers in Auto Scaling groups across AZs, a relational system of record for integrity-critical data with purpose-built stores for the rest, asynchronous messaging to decouple and scale, resilience patterns, security throughout, and observability - so design becomes assembling well-understood pieces to fit the specific requirements rather than inventing from scratch, and the requirements determine how the palette is assembled. Trade-offs matter so much because they’re the substance of the judgment being assessed. Every meaningful choice has downsides: asynchronous messaging buys decoupling at the cost of eventual consistency; microservices buy independence at the cost of distributed complexity; multi-Region buys Region-failure survival at the cost of expense and hard data replication; strong consistency costs latency or availability. A strong design names these trade-offs explicitly and justifies each against the requirements - “I’m accepting eventual consistency here because the work can happen slightly later and decoupling matters more” - which demonstrates that I understand the consequences of my choices rather than treating any option as free. So my approach is clarify requirements, estimate and define the data, design high-level then deep, address scaling, resilience, security, and observability, and articulate trade-offs throughout - and trade-offs matter most because naming and justifying them against the requirements is exactly what separates a thoughtful, senior design from a diagram that ignores the costs of its own decisions.

Chapter Revision Notes

  • Method: clarify requirements (functional + non-functional) and scope, estimate scale, design high-level then deep-dive, address scaling/resilience/security/observability, name trade-offs.
  • Designs compose a recurring palette: gateway, stateless services across AZs, relational system of record + purpose-built stores, async messaging, resilience, security, observability.
  • Requirements determine the design - the same palette is assembled differently for consistency, scale, resilience, or real-time needs.
  • Trade-offs are the substance: name and justify each choice’s downsides against the requirements to show senior judgment.
  • Banking framing exercises the full range (correctness, HA/DR, security, real-time, scale) but the reasoning generalizes.