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

How to avoid dual write problems in microservices ?

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

Contents


More Related Answers

  • How can the dual write problem be avoided in a microservice architecture ?

  • How to avoid dual write problems in microservices ?

    0

    Monolith applications use the 2 phase commit protocol.

    ● It splits the commit process of the transaction into 2 steps and ensures the ACID principles for all systems.

    ● Can't use 2-phase commit transactions when building microservices.

    ● These transactions require locks and don’t scale well.

    ● Need all systems to be up and running at the same time. Solutions

    ● Transactional Outbox Pattern

    ● CDC - Change Data Capture

    Best Practice

    ● Use Red Hat Apache Kafka and CDC using Debezium in eventdriven applications.

    ● Use New databases like CockroachDB which has built-in

    Change Data Capture feature

    https://www.cockroachlabs.com/blog/message-queuing-database-kafka/

    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.