PrepCity

Saga pattern

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 6 pages · about 4 min

Saga pattern

A booking spans services that each commit locally; when a later step fails, earlier ones are undone by compensating actions.

Words you’ll learn

  • Event
  • Service
  • Database
  • Span
  • Commit
  • Rollback
  • Saga
  • Compensating step

Page by page