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

Microservices with SAGA, Transactional Outbox and CDC Pattern

Anjali Sharma answered on February 2, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers

  • What is the purpose of the saga pattern in microservices ?
  • Saga design pattern microservices example
  • Transactional Outbox Pattern in Microservices
  • Adapt: Microservice Architecture with SAGA, Transactional Outbox and CDC Pattern
  • Evaluate: Microservice Architecture with SAGA, Transactional Outbox and CDC Pattern
  • How can CDC and the transactional outbox pattern be used together in a microservice architecture ?

  • Microservices with SAGA, Transactional Outbox and CDC Pattern

    0

    Sending reliable notifications to other services: The sender can guarantee that the message will be delivered to the receiver at least once.

    Sending event notifications in choreography-based Sagas: One service can reliably notify others about its state change.

    Updating query-side materialized views: To reliably notify query-side Microservices about the state changes on the command side so that they can update their materialized views.

    Takeaways

    When sending notifications amongst microservices, use an asynchronous, event-driven approach for better reliability and scalability.

    While doing so, dual writes are inevitable. Hence use the Outbox pattern to avoid that and introduce reliable delivery for notifications.

    There are few implementation choices for the pattern, but a log-based CDC approach seems the popular choice.

    The pattern might deliver duplicate notifications. But you should make the consumers idempotent to avoid that.

    https://fullstackdeveloper.guru/2022/05/19/how-to-implement-transactional-outbox-design-pattern-in-spring-boot-microservices/

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