Microservices Architecture Map
How an API gateway fans out to independent services, each with its own datastore, plus the async event bus wiring billing and notifications to order events.
Mermaid source
graph TD
Client[Client] --> Gateway[API Gateway]
Gateway --> Auth[Auth Service]
Gateway --> Orders[Order Service]
Gateway --> Catalog[Catalog Service]
Auth --> AuthDB[(Auth DB)]
Orders --> OrdersDB[(Orders DB)]
Catalog --> CatalogDB[(Catalog DB)]
Orders -->|order.created| Bus[[Event Bus]]
Bus --> Notify[Notification Service]
Bus --> Billing[Billing Service]
Billing --> BillingDB[(Billing DB)]Category: Architecture · Tags: microservices, architecture, flowchart
How to use this template
Choose Open in editor under the diagram to load this template into Mermaid Studio. Rename the boxes and arrows to match your own system, either in the code or on the visual canvas, then export it as PNG, SVG or JPEG, or copy the Mermaid code into a Markdown file. GitHub, GitLab, Notion and Obsidian all render Mermaid code blocks.
The Mermaid Flowchart Syntax reference explains every construct this template uses, and the Flowchart Maker page has more examples.
Related templates
- CI/CD Pipeline — Commit through build, test, and deploy, with the failure path back to the author.
- OAuth Login Flow — The authorization-code exchange between a browser, your app, and an identity provider.
- Role-Based Access Control Model — Users belong to teams and hold roles; roles bundle the permissions that actually gate an action — the object model behind most RBAC implementations.