Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.37 KB

File metadata and controls

45 lines (30 loc) · 1.37 KB

Choreography with Azure Event Grid

The Choreography pattern coordinates a workflow through events rather than a central orchestrator. Each participant reacts to events and emits new events.

Azure Event Grid often acts as the event router in a choreography-based integration.


When to use

Use choreography when:

  • you want loose coupling across services,
  • steps can be handled independently,
  • you can model the process as a sequence of events.

Avoid it when:

  • you require a single place to own the end-to-end flow and error handling (orchestration may be better).

Reference flow

flowchart LR
  A[Service A] -->|Event: ACompleted| EG[Event Grid]
  EG --> B[Service B]
  B -->|Event: BCompleted| EG
  EG --> C[Service C]
Loading

Key considerations (L200–L300)

  • Observability: distributed flows are harder to trace; use correlation IDs in events.
  • Failure handling: decide how to handle partial completion (often needs compensating actions).
  • Ownership: each component owns its reaction logic; avoid hidden coupling via undocumented events.

References