0% found this document useful (0 votes)
25 views10 pages

Modeling Workflows With Sagas: Roland Guijt

The document discusses modeling workflows with sagas. It introduces what sagas are, how they work, and an example saga. It also covers using sagas with MassTransit and the Automatonymous library, including separating saga state from behavior.

Uploaded by

Phuc Vinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views10 pages

Modeling Workflows With Sagas: Roland Guijt

The document discusses modeling workflows with sagas. It introduces what sagas are, how they work, and an example saga. It also covers using sagas with MassTransit and the Automatonymous library, including separating saga state from behavior.

Uploaded by

Phuc Vinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Modeling Workflows with Sagas

Roland Guijt
INDEPENDENT SOFTWARE DEVELOPER AND TRAINER

@rolandguijt www.rmgsolutions.nl
Module
Overview Use case for sagas
How a saga works
Using a saga with MassTransit
Refactor FireOnWheels solution
The Need for Sagas

UI

Notification

Finance

Registration
The Need for Sagas

UI
Finance

Notification

Reporting Marketing
Registration
Benefits of Sagas

A central truth
Coordination of Workflow
in your
message flow management
distributed system
Long-running business processes
State machine

Sagas Defines states and events


State of process persisted
Correlation is a must
Example Saga

Registration
Service
OrderSaga

OrderSagaState
Received
Example Saga

OrderSaga

Complete

OrderSagaState
Registered
Automatonymous
MassTransitSaga
Sagas in
MassTransit.Automatonymous
MassTransit NuGet package
Separates state from behavior
The need for sagas

Summary What a saga is


An example saga
Automatonymous
The saga state class
Constructing the saga
Setting up the saga

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy