A demonstration project showcasing the implementation of the Saga pattern for distributed transactions.
This project demonstrates how to implement the Saga pattern to manage distributed transactions across multiple microservices. The Saga pattern helps maintain data consistency in a distributed system by breaking down a large transaction into a series of smaller, manageable steps.
- Distributed transaction management using Saga pattern
- Event-driven architecture
- Microservices communication
- Error handling and compensation mechanisms
- .NET 6.0 or later
- Docker (optional, for containerized deployment)
- Visual Studio 2022 or VS Code
- Clone the repository:
git clone https://github.com/yourusername/SagaDemo.git
cd SagaDemo- Restore dependencies:
dotnet restore- Build the solution:
dotnet build- Run the application:
dotnet runSagaDemo.API- Main API projectSagaDemo.Services- Core business logic and servicesSagaDemo.Infrastructure- Infrastructure componentsSagaDemo.Tests- Unit and integration tests
This project is licensed under the MIT License - see the LICENSE file for details.
Project Link: https://github.com/odeyAbdulrahman/SagaDemo