The deliverable of an architect isn't code — it's a diagram other people can act on. The hard part is choosing the right altitude: a diagram that shows everything shows nothing. The C4 model fixes this by giving you a zoom control for your system, and the RAG reference architecture below is what one real design looks like at each level.
A diagram fails when it mixes altitudes — boxes for "the whole system" next to boxes for "a Python class". The C4 model gives you four fixed zoom levels, and you draw the one your audience needs: Context (the system as one box, and who/what it talks to — for executives), Container (the deployable pieces: apps, services, databases — for engineers), Component (inside one container — for the team building it), and Code (rarely drawn; the IDE shows it). Zoom into a real RAG assistant, one level at a time:
The discipline is one level per diagram. If you're tempted to add "just one more box" from a deeper level, that's the signal to draw a second diagram instead. A reader should be able to name the audience of any diagram you show them in one glance.
You just zoomed through a retrieval-augmented generation assistant — the single most common production LLM pattern. At the container level, each box is there to solve one problem: the gateway isolates you from the model provider, the retriever + vector DB ground answers in your own documents, the cache controls cost and latency (from the last page), and a guardrail checks inputs and outputs. Established patterns like this are worth memorising because they're the vocabulary of an architecture review — "put a routing gateway in front" should be a phrase, not a paragraph.
The most valuable line in an architecture is often the one you don't commit to. Put the model behind a gateway interface and the provider becomes a configuration detail — you can swap Anthropic for a self-hosted model, or route by cost, without touching the rest of the system. That single seam is what made the build-vs-buy decision reversible. Toggle the coupling and watch how far a provider change ripples:
Second opinion (taught here — these corroborate): The C4 model · System Design Primer · Anthropic — Building Effective Agents.