Services, links, and where they run
An architecture diagram shows services, the dependencies between them, and the zones they run in. Use it when a reader needs the deployment picture: which API talks to which database, and which boxes sit in a public zone or a private one.
C4 is the neighbor to leave for a different question. C4 places people and external systems around a software system, in context, container, and component views. It does not draw the zones and service links this page is for.
Choose it over a C4 view
Pick this page when the subject is infrastructure and dependencies. Pick C4 when the subject is who uses the system and which outside systems it trusts. A block diagram is a third option when you only need named inputs and outputs of modules.
Clean the draft in three passes
1. Name every zone
Say public, private, or the real environment names in the prompt. If two services share a zone, the draft should group them.
2. Keep dependencies one-way and real
Check each arrow. If the draft linked a service that never calls the other, delete that edge in the editor.
3. Pull people out
If a box is a person or an outside company, that item belongs on a C4 context view. Remove it here and keep services only.
How to phrase the prompt
List the services, the zone for each, and the call each one makes. Mention data stores by name. Skip login screens and function-level steps. Those belong in a flowchart or a sequence diagram, and they crowd this map.
Before you regenerate
- Why did the draft look like a flowchart?
- The prompt was probably a procedure. Put the word architecture in the first line and list services with zones, not steps in time.
- Should one diagram hold every microservice?
- No. Keep one product path, such as checkout, and its direct dependencies. Move the rest to a second diagram.
- What do I fix most often after the draft?
- Zone names and arrow direction. Rename vague boxes such as backend, and reverse any dependency that points the wrong way.