Skip to content

Reading Architecture Diagrams and Trade-off Vocabulary

7 min reading

Outcome: Read boxes and arrows as explicit boundaries, identify missing assumptions and explain the first failure a diagram leaves unresolved.

Page details

System Design foundations · Chapter 7 · Sources

Published · Last edited: · ~7 min reading · ~18 min with practice

20px

Know first: When Things Fail: Timeouts, Retries, and Availability Math

System Design foundations glossary

Hypothetical scenario. Maya asks for a picture of Northwind before the launch email goes out. Dev draws a browser, a service, Redis and Postgres. Sam asks which arrow returns the authoritative price and what happens when Redis is unavailable. A useful diagram needs more than familiar product logos.

Read the legend before the boxes

A box can mean a software system, a running service, a database, a deployment machine or a logical module. Those are different levels of description. If the diagram mixes them without labels, a reader cannot tell whether two boxes can fail independently or whether they are functions inside one process.

Start with purpose and scope: which question does this view answer, and what is outside its boundary? A context diagram can show customers and external providers without promising how many processes run internally. A deployment view can show replicas and locations without explaining the exact order of a payment workflow. Choose the view before interpreting its omissions as design decisions.

An arrow needs a meaning. It may indicate a synchronous request, asynchronous event, data dependency or response. A line labeled “HTTP request for price” carries more information than an unlabeled line between two logos. Direction matters, but so do the payload, timing and whether the sender waits for an acknowledgment.

Browserprice requestCatalogue serviceHTTPS boundaryRedis: reusable copylookup on read pathPostgres: authoritysource read on missResponses return along request paths. The price-update path is not shown.
Hypothetical catalogue read view: arrows name requests; authority and a reusable copy are different roles.

Trace a request and then a change

For this catalogue sketch, read the browser-to-service arrow as an HTTPS price request. The service asks Redis for a reusable price representation; on a miss it reads Postgres. Postgres is the chosen authoritative price store in this hypothetical system. The returning response is not shown as a separate arrow, so the caption must say that responses return along the request paths.

Now trace a price update. An authorized staff action changes the authoritative value. What makes an older Redis entry stop being usable? A diagram with only the read path does not answer. Add an invalidation or refresh relationship, or explicitly state that the update path is outside this view. The drawing should expose that unresolved decision rather than imply a nonexistent guarantee.

In the wild. Simon Brown's C4 container-diagram guidance calls for responsibilities, technologies and labeled relationships. In this vocabulary a container is a separately running application or data store, not necessarily a Docker container. That distinction prevents a familiar word from silently changing the abstraction level.

Work through three failure points

Worked design exercise. Choose a launch workload of 180 requests per second and suppose each accepted request makes one catalogue-service call. If Redis becomes unavailable, the first failure point is the service's cache-call path: does it wait, fail fast or attempt a bounded bypass? That answer needs a timeout and admission decision, not another box.

For the second point, suppose the chosen normal cache hit ratio is 90%. Postgres normally receives the remaining 10% of reads: 180 × 0.10 = 18 reads/s. A complete bypass would send 180 reads/s, which is 180 / 18 = ten times the original toy read load. The diagram does not establish whether the database can sustain it.

The third point is the browser-to-service boundary. If the service commits a staff price change and loses its response, the client must distinguish an unknown update outcome from proof that nothing changed. A retry contract or revision check belongs on that action path. The same picture can hide both capacity risk and ambiguous effects unless the reader asks about them separately.

Use trade-off words precisely

Vertical scaling gives a running unit more resources, such as memory or CPU. Horizontal scaling adds units. A stateless request handler does not keep required cross-request state only in its own local memory; state still exists somewhere in the application, perhaps in Postgres. A stateful service must manage the continuity and ownership of that state through changes and failures.

Latency is elapsed time for a request; throughput is completed work per unit time. A queue may allow a higher admission rate while making individual requests wait longer. Consistency describes the permitted observations of changing state. Availability asks whether the service can provide a qualifying response under the chosen failure conditions. These words name different properties and should not be compressed into “fast and reliable.”

A second box is not a proof

Misconception: a diagram with replicas is automatically fault tolerant. Replicas may share a failure domain, receive writes asynchronously or lack a safe ownership transition. A picture establishes redundancy only after its accompanying text declares which failures the surviving arrangement handles and which data can be lost.

Use diagrams to support a specific explanation: request flow, authority, deployment or recovery. For each arrow, ask what is sent, who waits, what acknowledgment means and what the sender does when the outcome is uncertain. For each stateful box, ask who owns updates and what evidence survives a crash.

This sketch deliberately leaves replication, authorization details and regional placement unspecified. A useful next step is to annotate one uncertainty, not to expand every box into a fashionable technology. Carry the habit into the course: follow one request, find the authoritative state, identify the evidence and ask what breaks first under the chosen workload.

Check yourself

The diagram contains a database icon but no legend. Can you conclude it is a separate failure domain?

No. The icon could represent a logical module or a shared deployment. Ask what level the view depicts and how it is deployed.

With 180 reads/s and a 90% hit ratio, what happens to source reads on complete bypass?

They rise from 18/s to 180/s in the chosen model, a tenfold increase. Whether that is safe needs a source-capacity and admission argument.

The arrow says “event sent.” Does that prove the customer received a confirmation?

No. The label needs an acknowledgment and completion contract. Sending, durable acceptance, processing and customer delivery are different states.

Go deeper