Search, explore and find the perfect course for you
Giving your saga a happy ending
A saga, traditionally, is a story, a heroic tale, or telling of events. The word comes from old Norse and originally meant "what is said".
In a message-based setting, a saga is a message handler. It can help uphold inter-aggregate consistency, or mediate between bounded contexts. Sagas absorb much of the complexity that was previously encoded in the domain model as foreign keys and immediate consistency — which often led to rigid, unmanageable systems.
As sagas grow in size and complexity, however, they themselves need external management. This is the point where sagas show their real strength: we get to analyze and improve the business workflow on the story level. Business concerns live directly in the code.
This talk shows how to build sagas from scratch, how they fit in a message-based application, how they can be used to highlight business workflows, and how to manage complex sagas.