Microservices with API gateway template

Clients behind an API gateway, services that each own their database, and an event bus for asynchronous work.

Use this templateFree, opens in your browser. No sign-up.

Microservices with API gateway template
Cross-cutting concerns
Web app
Mobile app
API gateway: auth, rate limits, routing
User service
Order service
Catalog service
Payment service
Users DB (PostgreSQL)
Orders DB (PostgreSQL)
Event bus (Kafka)
Catalog DB (MongoDB)
Stripe API
Notification service
Inventory service
Database per service, no shared tables
Service mesh: mTLS, retries, timeouts
Distributed tracing (OpenTelemetry)
Each service deploys independently
Microservices architecture
OrderPlaced
PaymentCaptured
The microservices with API gateway template as it opens in Kelvo: 14 boxes, 4 sticky notes and 14 links.

What's on the board

Cross-cutting concerns
Database per service, no shared tables · Service mesh: mTLS, retries, timeouts · Distributed tracing (OpenTelemetry) · Each service deploys independently

Also on the board

  • Users DB (PostgreSQL)
  • User service
  • Orders DB (PostgreSQL)
  • Web app
  • Order service
  • Notification service
  • API gateway: auth, rate limits, routing
  • Event bus (Kafka)
  • Catalog service
  • Mobile app
  • Inventory service
  • Catalog DB (MongoDB)
  • Payment service
  • Stripe API

How to use this template

  1. Click Use this template. It opens in the Kelvo app as a new board, saved in your browser.
  2. Double-click any box to change its text. Replace the examples with your own content.
  3. Sketch, then convert. Draw boxes and arrows with the pen, select the strokes and click Convert sketch: they become real boxes and links.
  4. Ask Kelvo right on the board (Pro). With Pro, type @kelvo and what you want in any box or text, for example “@kelvo add error handling”, and press Enter. The change is made there and the request disappears; ⌘Z undoes it.
  5. One page per level. Put the C4 context view on one page and the container view on the next, so each diagram stays readable.

Good for

  • architect
  • microservices
  • api gateway
  • architecture
  • backend
  • Agreeing on boundaries and responsibilities between services
  • Recording why a design was chosen (and what was rejected)
  • Comparing integration options side by side

Related templates

  • C4 system context diagram template previewC4 system context diagram

    C4 level 1: the system in scope, the people who use it and the external systems it depends on, with a legend.

  • C4 container diagram template previewC4 container diagram

    C4 level 2: the apps, APIs, databases and queues inside the system boundary, with the technology on each link.

  • Event-driven architecture template previewEvent-driven architecture

    Producers publish facts to a broker; independent consumers react — with the design rules that keep it reliable.

  • CQRS + event sourcing template previewCQRS + event sourcing

    Separate write and read paths: commands append events to an event store, projectors build read models for queries.

  • LLM application architecture template previewLLM application architecture

    Production building blocks around a model: gateway, guardrails, orchestrator, cache, vector DB, tools and observability.

  • LLM agent loop template previewLLM agent loop

    How a tool-using agent plans, calls tools, observes results and updates memory until the goal is met, with guardrails.

All solution architecture diagram templates · All templates

Use the microservices with API gateway template