GithubHelp home page GithubHelp logo

abdullahoztuurkk / saga-orchestration Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 42 KB

Saga Orchestration Implementation with ECommerce Theme in .NET 6

C# 93.83% Dockerfile 6.17%
ecommerce masstransit microservices rabbitmq saga saga-orchestration onion-architecture

saga-orchestration's Introduction

Saga Orchestration

Saga orchestration is a pattern used in distributed systems for managing long-lived transactions that span multiple services or components. It involves coordinating a sequence of actions or compensating actions to ensure the consistency of data across these distributed systems.

Key Concepts:

  • Atomicity: Sagas ensure that either all the steps in a transaction are completed successfully or, if a failure occurs, appropriate compensating actions are taken to revert the changes made by the preceding steps.

  • State Management: Sagas maintain state information to track the progress of the transaction and determine which actions need to be performed next.

  • Compensating Actions: If a failure occurs during the execution of a saga, compensating actions are executed to undo the changes made by previous steps, ensuring that the system returns to a consistent state.

Benefits:

  • Scalability: Sagas allow distributed transactions to be broken down into smaller, more manageable units of work, which can be executed independently and in parallel, leading to better scalability.

  • Fault Tolerance: By incorporating compensating actions, sagas provide resilience against failures, ensuring that transactions can recover from errors without leaving the system in an inconsistent state.

  • Flexibility: Sagas enable complex business processes to be modeled and executed in a distributed environment, offering flexibility in designing workflows that span multiple services.

saga-orchestration's People

Contributors

abdullahoztuurkk avatar

Stargazers

Nuri Can ÖZTÜRK avatar Emre AKA avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.