Implementing Distributed Transactions with Sagas
Explore how to implement distributed transactions with sagas in event-driven architecture using Golang. Learn to update packages to support command and reply messages, handle command outcomes, and organize order creation as a saga with orchestrated operations.
We'll cover the following...
We'll cover the following...
To organize the order creation process as a saga, we will be introducing additional functionality in the form of an SEC. These are the items we will be building or modifying to accomplish this task:
We will update the
dddandampackages so that they include the new Command and Reply message types.We will create a new
secpackage that will be the home for an orchestrator and saga definitions and implementations.
Now, let’s dive into ...