Search⌘ K
AI Features

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.

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 ddd and am packages so that they include the new Command and Reply message types.

  • We will create a new sec package that will be the home for an orchestrator and saga definitions and implementations.

Now, let’s dive into ...