Saga pattern

Manage a business transaction across services as a sequence of local transactions with compensating actions.

When a workflow spans several services that each own their data, a distributed ACID transaction is usually impractical. A saga breaks it into local steps; if one fails, previously completed steps are undone with compensating transactions. Sagas can be choreographed via events or orchestrated by a coordinator. Designers must handle the lack of isolation and make steps idempotent.

Type
Architecture pattern
Category
Architecture
License
Free
Pricing
Free
Level
Advanced
Technologies
architecture, distributed-systems, microservices
Last verified
26 Nov 2026

What Saga pattern is used for

  • Orders/payments/inventory across services
  • Long-running business processes

Strengths

  • Consistency without distributed locks
  • Works with independent databases

Limitations

  • Compensation logic is complex
  • No isolation between concurrent sagas

How it relates to other tools

Built with the same technologies

Official links

Sources

Explore