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

Two-phase commit pattern

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

Contents


More Related Answers

  • What is two-phase commit pattern(2PC)
  • failed two-phase commit
  • Successful two phase commit
  • What is the problem of two-phase commit protocol?
  • Why is the two-phase commit algorithm used in distributed transactions?
  • Two-Phase Commit Protocol

  • Two-phase commit pattern

    0

    Widely used in databases. 

    Sometimes useful in microservices(only a few services in the system. _
    It has 2 phases:-

    1. Prepare Phase

    2. Commit Phase. 


    MIcroservices are asked to prepare for changes

    Create a record in database adn set its status field or column to 0(NOT Stable)

    Microservices are asked to make final and actual changes.

    Set the value of actual field column as 1

    A coordinator microservice is needed in order to maintain lifecycle

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