A practical guide to implementing the Saga pattern in .NET using Wolverine, demonstrated through a user onboarding workflow. Covers Wolverine configuration with RabbitMQ and PostgreSQL, defining saga messages including timeout messages, building a complete saga class with Start/Handle/NotFound methods, cascading messages via return values, and handling compensation logic when timeouts occur. Highlights Wolverine's convention-based approach that avoids the state machine DSL ceremony found in MassTransit or Rebus.
Table of contents
Configuring WolverineThe Saga MessagesThe Saga State DiagramBuilding the SagaThe Sequence FlowSummarySort: