https://github.com/amirdoosti6060/sagapattern
Saga design pattern in microservice
https://github.com/amirdoosti6060/sagapattern
csharp design-patterns dotnet microservice saga-pattern
Last synced: over 1 year ago
JSON representation
Saga design pattern in microservice
- Host: GitHub
- URL: https://github.com/amirdoosti6060/sagapattern
- Owner: amirdoosti6060
- Created: 2023-10-09T17:21:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T06:03:40.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T18:47:17.471Z (over 1 year ago)
- Topics: csharp, design-patterns, dotnet, microservice, saga-pattern
- Language: C#
- Homepage: https://www.linkedin.com/pulse/saga-design-pattern-cnet-amir-doosti
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SagaPattern
## Introduction
This project provide an abstraction layer and implementations for Saga Design Pattern in microservices.
I also wrote an article in the following address that completely cover **Saga Design Pattern**:
https://www.linkedin.com/pulse/saga-design-pattern-cnet-amir-doosti
## Structure of soution
The solution contains one project which provide abstraction layer for saga pattern in **IActivity**, **SagaContext** and **Saga** and also it implement an example in **SampleSetup** and **Program**.
## Technology stack
- OS: Windows 10 Enterprise - 64 bits
- IDE: Visual Studio Enterprise 2022 (64 bits) - version 17.2.5
- Framework: .Net 6
- Language: C#
## How to run
The sample is a Console application and work as a Saga Orchestrator. To be able to have a better view of how Saga work in action, I provide two methods **InteractiveExecute** and **InteractiveCompensate** which let user determine the result of each action or compensation.