Sequence: Microservice Orchestration

Complex multi-service flow with parallel calls and error handling.

sequence-microservice-orchestration.mmd
sequenceDiagram
  participant G as Gateway
  participant A as Auth
  participant U as Users
  participant O as Orders
  participant N as Notify
  G->>A: Validate token
  A-->>G: Valid
  par Fetch data
    G->>U: Get user
    U-->>G: User data
  and
    G->>O: Get orders
    O-->>G: Order list
  end
  G->>N: Send notification
  N-->>G: Queued
  Note over G: Aggregate response
Output
Sequence diagram, Zombie Mermaid par [Fetch data] Validate token Valid Get user User data Get orders Order list Send notification Queued Aggregate response Gateway Auth Users Orders Notify

More Sequence diagram examples