Architecture diagram: the parts, the arrows and the reasons

A map of a system's parts and how they connect, for the engineers and clients who work with it.

2 live examples

The example: How Snagbook, a site-inspection app, fits together

Ten parts, one request traced in nine steps

How Snagbook, a site-inspection app, fits together

Open the exampleThe names and numbers are made up.

What to notice

  • Dots numbered 1 to 9 sit on the arrows and follow one finished inspection from the phone to the client's inbox. A list underneath explains each.
  • Solid arrows are requests where the caller waits. The two dashed ones, into and out of the job queue, are work handed over for later.
  • The two outside services, email and push, have dashed borders, and only the workers call them.

The prompt that starts one like it

Draw an architecture diagram as a single HTML page for [product]. The parts are [clients, API, database, cache, queue, workers, outside services] and they talk like this: [describe]. Use inline SVG, with different arrows for requests and queued work, a legend, and numbered dots that trace one real request. Stack it on a phone. Underneath, walk through that request step by step, then give each part a paragraph: what it does and why it's there. Publish it on sharable.link so only [your company's domain] can open it.

The example: The booking database at Netloft Rehearsal Rooms

Six tables, five relationships, one worked booking

The booking database at Netloft Rehearsal Rooms

Open the exampleThe names and numbers are made up.

What to notice

  • Each line ends on the field that holds the link: the one from customers lands on customer_id in bookings.
  • booking_extras gets a box of its own, and its note calls it the join table between bookings and extras.
  • Booking 4071 is followed through five tables, and its total of 10500 cents matches the two payments.

The prompt that starts one like it

Draw an entity-relationship diagram as a single HTML page for this database: [paste the tables, or describe them]. Show each table with its fields, types and keys, mark primary, foreign and unique keys, and label each line one-to-many or many-to-many, ending at the field it joins. Stack the tables in one column on a phone. Under the diagram, add a note on each table and follow one real record through the tables with its numbers. Then publish it on sharable.link so only [your company's domain] can open it.

An architecture diagram answers what a new engineer asks in their first week and a client's technical lead asks before signing: which parts exist, and what talks to what. Two finished ones are linked here: a system map for an inspection app and a database diagram for a booking system. Borrow their shape. Yours has to come from your own system, checked against the code.

Who it's for

Engineers explaining a system to people who didn't build it: a new teammate, a contractor, a client's technical lead. Send it before the first walkthrough call, so the call goes on questions.

It's a picture of one moment, drawn by hand and corrected when the system changes. A diagram that redraws itself from your infrastructure is a job for a tool wired into your cloud account.

What a good one contains

  • Every part named for what it does. "Job queue" and "File storage" tell a newcomer more than a vendor's logo would.
  • Arrows that mean something. Solid for a request where the caller waits, dashed for work handed to the queue. When every arrow looks alike, nobody can tell a slow path from a fast one.
  • A legend. Five entries cover both arrows, both borders and the numbered dots. Without it, a dashed border is a guess.
  • One real request, traced. The dots follow a finished inspection from the phone to the client's inbox. A trace gives the order of events, which a field of boxes can't.
  • A reason for each part. Why is there a queue? So the API can answer in milliseconds and leave the PDF for later. Reasons stop the next person from removing something that mattered.
  • What you left out, said out loud. Logging, monitoring and the deploy pipeline are named as missing on purpose.
  • In a database diagram, the fields and the keys. The booking example lists every column with its type, marks the primary and foreign keys, and labels each line one-to-many.

So it still matches production

A diagram goes stale the week someone adds a service and doesn't redraw it. Put a "checked against production" date on it, as the Snagbook map does, and change the page in the same pull request as the system. The link stays the same, so the one in your onboarding notes doesn't break.

Ten boxes can be read on a phone and forty can't. For a bigger system, draw the whole thing at low detail and give the hard part a page of its own.

For a data model, follow one real record through the tables and check the arithmetic, as the booking example does with a $105 session. A missing table shows up there first.

How to send it

To named people. A system map shows where the data lives and which outside services you lean on. Limit it to your engineers and the client's technical lead.

Every page you publish gets one link that opens in any browser. You choose who can open it: anyone with the link, anyone with the password, or only the people and company domains you name, who sign in with Google or Microsoft. Change the page later and the link stays the same.

Make yours in Claude

Add the connector once, then publish from any Claude conversation and get a link to send.

Add Claude Connector

Already have the file? Upload it here.

More in product and engineering

  • KPI dashboard: A few numbers with their changes and the reasons behind them, sent to the same readers on a schedule.
  • Product roadmap: What a product team is building now, next and later, by theme, for customers and colleagues.
  • Data visualization: One dataset drawn as a few interactive charts, each with a sentence that says what to see.
  • Flowchart: A process or user flow drawn as steps, questions and outcomes, for the people who have to follow it.
  • Product requirements document: The problem, the requirements and what's left out for one feature, for the people who will build it.
  • App prototype: A clickable phone app in one page, sent to a few people to try before anyone writes real code.
  • All use cases

Keep reading