Mermaid StudioEditor

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)]
Microservices Architecture MapOpen in editor →

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