> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Microservices architecture diagram

> A reproducible microservices architecture diagram with complete source, rendering commands, and practical modifications.

A user reaches a gateway, which routes requests to services and storage. This is a relationship overview, not a deployment specification.

![Microservices architecture diagram rendered from the linked complete source](https://mintcdn.com/iso-topology/AUTl1kn-xtnvX7MF/assets/microservice.svg?fit=max\&auto=format\&n=AUTl1kn-xtnvX7MF\&q=85\&s=1bbdb2121c0f9ba58971e228ae8b7c2d)

[Open the full-size SVG](../assets/microservice.svg) · [Download PNG](../assets/microservice.png) to inspect the connections and labels. The image is generated from the complete source below.

## Reproduce this diagram

You need Go 1.25 or later and Git. The complete source is [`samples/topology/microservice/input.d2`](https://github.com/NexusFox88/iso-topology/blob/main/samples/topology/microservice/input.d2).

```bash theme={"system"}
git clone https://github.com/NexusFox88/iso-topology
cd iso-topology
git rev-parse HEAD
go build -o isotopo ./cmd/isotopo
./isotopo render samples/topology/microservice/input.d2 ./out-microservice
```

On Windows, build `isotopo.exe` and invoke that executable. Open `out-microservice/topology.html`. Record the revision before adapting the source; the published SVG is regenerated from this source when the renderer or sample changes.

## Make it your own

Copy the source to a separate file before editing. Use a text editor for D2 changes; Studio can preview the result.

### Rename a service

Change a node label while keeping its ID so its edges remain connected.

### Add a dependency

Add a node and an edge in D2, then render again to recompute graph layout.

### Inspect a different layout

Render with `--layout elk` and compare the resulting routes; the best arrangement depends on your graph.

## Verify and publish

```bash theme={"system"}
./isotopo validate samples/topology/microservice/input.d2
./isotopo render --projection top samples/topology/microservice/input.d2 ./out-plan
```

For your edited copy, substitute its path. Compare the top-down and isometric views, inspect remaining diagnostics, and verify the intended relationship directions. See [quality checks](https://iso-topology.mintlify.site/guides/quality.md) and [publishing](https://iso-topology.mintlify.site/getting-started/05-publishing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.