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

Microservices Transactional Boundaries Order Fulfillment - Success

Pragya Keshap answered on February 3, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Microservices Transaction Management
  • Microservices Distributed Transaction Patterns
  • Microservices Transactional Boundaries
  • Transactional Outbox Pattern in Microservices
  • Microservice Development: Creating Order-Service which contacts user-service and product-service for order fulfillment.
  • Avoiding Transactions Across Microservices

  • Microservices Transactional Boundaries Order Fulfillment - Success

    0

    It is crucial to address these two problems while designing microservices-based applications. Below are the two approaches to address these problems:

    Two-phase commit (2PC)

    Saga architectural pattern

    Two-phase commit (2PC)

    Two-phase commit is a well known pattern in database systems. This pattern can also be used for microservices to implement distributed transactions. In a two-phase commit, there is a controlling node that houses most of the logic and participating nodes (microservices) on which the actions are performed. It works in two phases:

    Prepare phase (Phase 1): The controlling node asks all of the participating nodes if they are ready to commit. The participating nodes respond with yes or no.

    Commit phase (Phase 2): If all of the nodes replied in the affirmative, then the controlling node asks them to commit. Even if one node replies in the negative, the controlling node asks them to roll back.

    https://medium.com/@pradeep_thomas/distributed-transaction-boundaries-and-microservices-8905aef82efe

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 03 2023
    Pragya Keshap
    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.