teluzia.Cloud Engineer · Day 146
CHAPTER 21 · CLOUD SYSTEM DESIGN

System-design drills and five written designs

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

What you’re learning today

Requirements and estimates is today's starting point. At 100 requests/second and 2 KB per stored request, raw growth is about 17.28 GB/day before replication and metadata. State the binary/decimal convention and retention assumption. You will connect this with five written designs and trade-off discussion. The lesson's artifact brings these decisions together: Produce five one-page designs with one capacity calculation, one failure path and one rejected alternative each; peer-review the weakest design.

Think of it this way

System design is a series of engineering sketches with load estimates; the sketch changes when the required load or failure condition changes.

TOPIC 01 / 03Step by step

Requirements and estimates

A design begins with users, workload, constraints and success measures. Estimate request rate and storage with stated assumptions; clarify uncertain requirements before drawing many services. At 100 requests/second and 2 KB per stored request, raw growth is about 17.28 GB/day before replication and metadata. State the binary/decimal convention and retention assumption.

WORKED EXAMPLE
At 100 requests/second and 2 KB per stored request, raw growth is about 17.28 GB/day before replication and metadata. State the binary/decimal convention and retention assumption.

A functional requirement specifies behavior; a nonfunctional constraint specifies quality or limits; a capacity estimate connects workload assumptions to resource needs. Imagine a URL service requires peak reads far above writes and links must remain stable for years. Estimate separate read and write rates, record retention and key-space needs before choosing storage or caching. Ask how abuse, deletion and redirect failure should behave. Approximate calculations are useful if their assumptions are visible; exact-looking numbers without an input model are not. A design can remain simple at modest scale but need different partitions or caches under a changed access pattern. Use the estimate to locate likely limits and clarify unknown requirements, rather than treating arithmetic as a reason to add a service to every diagram.

Why this matters

State the binary/decimal convention and retention assumption.

A common trap

A detailed diagram removes the need for workload estimates.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Requirements and estimates

A design begins with users, workload, constraints and success measures. Estimate request rate and storage with stated assumptions; clarify uncertain requirements before drawing many services. At 100 requests/second and 2 KB per stored request, raw growth is about 17.28 GB/day before replication and metadata. State the binary/decimal convention and retention assumption.

WORKED EXAMPLE
At 100 requests/second and 2 KB per stored request, raw growth is about 17.28 GB/day before replication and metadata. State the binary/decimal convention and retention assumption.

A functional requirement specifies behavior; a nonfunctional constraint specifies quality or limits; a capacity estimate connects workload assumptions to resource needs. Imagine a URL service requires peak reads far above writes and links must remain stable for years. Estimate separate read and write rates, record retention and key-space needs before choosing storage or caching. Ask how abuse, deletion and redirect failure should behave. Approximate calculations are useful if their assumptions are visible; exact-looking numbers without an input model are not. A design can remain simple at modest scale but need different partitions or caches under a changed access pattern. Use the estimate to locate likely limits and clarify unknown requirements, rather than treating arithmetic as a reason to add a service to every diagram.

Why this matters

State the binary/decimal convention and retention assumption.

A common trap

A detailed diagram removes the need for workload estimates.

Five written designs

Practice a URL shortener, image service, order queue, event feed and audit log. Each design needs interfaces, data model, capacity estimate and one explicit failure scenario. A URL shortener emphasizes key lookup, an image service emphasizes object delivery, an order queue emphasizes idempotency, a feed emphasizes fanout, and an audit log emphasizes append integrity.

WORKED EXAMPLE
A URL shortener emphasizes key lookup, an image service emphasizes object delivery, an order queue emphasizes idempotency, a feed emphasizes fanout, and an audit log emphasizes append integrity.

An interface defines what clients can call; a data model defines stored entities; a failure path defines behavior when a dependency does not meet expectations. Imagine designing an audit log beside an image upload service. The log needs append integrity and access review; the upload path needs object limits, metadata and incomplete-upload cleanup. Do not reuse one diagram unchanged for both. For each of the five drills, write the primary operation, one concrete schema or record, the expected response and a dependency-failure branch. Keep a consistent review format so differences become visible. Five shallow diagrams provide less learning than five distinct decisions with evidence. Scope the exercise to one defensible page per system, then expand the design whose requirements or failure behavior remain least clear.

Why this matters

A URL shortener emphasizes key lookup, an image service emphasizes object delivery, an order queue emphasizes idempotency, a feed emphasizes fanout, and an audit log emphasizes append integrity.

A common trap

Five designs can all omit data models and still be complete.

Trade-off discussion

Explain why a choice fits the requirement and when it should change. A diagram without bottlenecks, privacy boundaries or operational ownership cannot support a useful design review. Choose a queue for bursty order processing, then acknowledge its added latency and operations. State the backlog threshold that would trigger more consumers and the database limit that constrains them.

WORKED EXAMPLE
Choose a queue for bursty order processing, then acknowledge its added latency and operations. State the backlog threshold that would trigger more consumers and the database limit that constrains them.

A trade-off is the downside accepted for a benefit; a decision trigger specifies when to revisit the choice; an operational owner handles its ongoing behavior. Imagine selecting asynchronous feed generation to absorb write bursts. Explain that reads may show delayed updates and define the tolerated delay; then state the backlog-age threshold that would require a capacity change. Consider alternatives such as read-time assembly and their different latency or storage costs. A rejected option belongs in the review when it explains the current decision, not as a list of every available service. More scalable designs often add synchronization and failure handling. Tie each component to a requirement, show the dominant bottleneck and describe how the next change would be validated without compromising existing data or users.

Why this matters

State the backlog threshold that would trigger more consumers and the database limit that constrains them.

A common trap

A preferred option has no downside worth discussing.

KEEP THESE WITH YOU

Today’s takeaways

Requirements and estimates: A design begins with users, workload, constraints and success measures.

Five written designs: Practice a URL shortener, image service, order queue, event feed and audit log.

Trade-off discussion: Explain why a choice fits the requirement and when it should change.

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