Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

benefits of saga design pattern over distributed transaction

Anjali Sharma answered on January 4, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Transaction Management? SAGA.
  • saga pattern for distributed transactions
  • saga design pattern sample code
  • saga pattern benefits over distributed transaction management using two phase commit
  • benefits of saga design pattern
  • How do you implement a Saga pattern?
  • Why do we use saga patterns?
  • Saga Pattern for Distributed Transactions - Choreography and Orchestration
  • Benefits and Drawback of Orchestration-based SAGA Implementation
  • What is the advantage of using the saga pattern for implementing distributed transactions in microservices architecture ?
  • Which one is true about SAGA pattern?
  • Distributed transaction: Saga

  • benefits of saga design pattern over distributed transaction

    0

    Problems With 2PC

    Although 2PC is useful to implement a distributed transaction, it has the following shortcomings:

    The onus of the transaction is on the coordinator node, and it can become the single point of failure.

    All other services need to wait until the slowest service finishes its confirmation. So, the overall performance of the transaction is bound by the slowest service.

    The two-phase commit protocol is slow by design due to the chattiness and dependency on the coordinator. So, it can lead to scalability and performance issues in a microservice-based architecture involving multiple services.

    Two-phase commit protocol is not supported in NoSQL databases. Therefore, in a microservice architecture where one or more services use NoSQL databases, we can’t apply a two-phase commit.

    https://www.vinsguru.com/orchestration-saga-pattern-with-spring-boot/

    Popularity 1/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Jan 04 2023
    Anjali Sharma
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.