// REF. 14 / SYSTEMS

Architecture cheat sheet

The vocabulary of systems that stay up. Scaling, caching, data placement, queues, failure handling, API shape, the named patterns, and how to see what the thing is doing. Every definition is checked against the source that coined or canonised it: Fowler, the SRE book, the cloud providers' own pattern libraries, and the CAP literature, as of October 2026.

No commands here; this one is for design reviews, whiteboards, and the 3am postmortem. The two habits worth stealing: put a timeout and a jittered retry on every network call, and make every consumer idempotent before you trust a queue.

↓ Download the printable PDF free · letter size · no email needed

Scaling

vertical (scale up)
bigger box: more cpu, ram on one node
horizontal (scale out)
more boxes behind a load balancer
stateless service
state in db or cache; any node can serve
load balancer
spreads traffic; health checks pull nodes

Caching

cache-aside
miss: read db, write cache, return
write-through
write cache and db together; never stale
TTL
seconds until a key expires
invalidation
evict on write; the famously hard one
CDN
edge copies served nearest the user
cache stampede
key expires, everyone recomputes at once

Data

leader / follower
one node takes writes; replicas take reads
replication lag
delay before followers see a write
sharding
split rows across nodes by a shard key
consistent hashing
ring; adding a node moves few keys
linearizable
ops look atomic, in real-time order
eventual consistency
stop writing; reads converge eventually
CAP
partitioned: consistency or availability
PACELC
no partition: latency or consistency

Async

message queue
producer enqueues; worker consumes later
pub/sub
publish to a topic; many subscribers
at-least-once
redelivered until acked; expect duplicates
idempotency key
client id so a retry can't apply twice
transactional outbox
event saved with the row; relay publishes
dead-letter queue
where messages go after max retries
backpressure
overloaded side tells upstream: slow down

Reliability

timeout
max wait before giving up; frees threads
retry + backoff
wait longer each try; cap attempts
jitter
randomize waits so retries don't sync up
circuit breaker
trip after n failures; fail fast; probe
bulkhead
isolate pools so one failure stays local
SLO / error budget
target for an SLI; how much you may miss
graceful degradation
reduced features beat a dead page

API

REST
resources + http verbs + status codes
GraphQL
typed query; client picks the fields
gRPC
rpc over protobuf; generated typed stubs
versioning
/v1/ in the path; breaking change = v2
cursor pagination
page_token in, next_page_token out
rate limiting
token bucket: refill rate, burst size; 429

Patterns

CQRS
separate models for writes and reads
event sourcing
store the events; state is the replay
saga
local txns + compensations; no 2pc
two-phase commit
vote, then commit; coordinator is the spof
strangler fig
grow the new around the old, then retire
BFF
one backend per frontend
hexagonal
domain in the middle; ports and adapters

Observability

logs
a record that something happened
metrics
a number measured over time
traces
one request's path across services
RED
per service: rate, errors, duration
USE
resource: utilization, saturation, errors

Here be dragons

distributed monolith
microservices that deploy together
exactly-once
mostly a marketing term; be idempotent
the two hard things
cache invalidation and naming things
the network is reliable
fallacy #1 of distributed computing
Architecture Field Manual Desk Mat

// KEEP IT UNDER YOUR KEYBOARD

Architecture Field Manual Desk Mat

from $34 · printed to order in the USA

See the desk mat