Skip to content
D2 templates

D2 — saga (booking)

Hotel + flight + car saga with compensating actions.

Template previewD2
Rendering…

Make it your own.

client -> orchestrator: book trip
orchestrator -> hotel: reserve
orchestrator -> flight: book
orchestrator -> car: rent
hotel -> orchestrator: ok
flight -> orchestrator: ok
car -> orchestrator: fail
orchestrator -> hotel: cancel (compensate)
orchestrator -> flight: cancel (compensate)
orchestrator -> client: trip aborted