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

A Case for Eventual Consistency

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

Contents


More Related Answers

  • Eventual consistency principle
  • welcome duplicate datas and eventual consistency
  • Handling Eventual Consistency with Distributed Systems
  • When should eventual consistency be used in a microservices architecture ?
  • Eventual Consistent Reads

  • A Case for Eventual Consistency

    0

    register a user profile

    do some automated background check that the user can actually access the system

    The second task is to ensure, for example, that this user wasn't banned from our servers for some reason.

    But it could take time, and we'd like to extract it to a separate microservice. It wouldn't be reasonable to keep the user waiting for so long just to know that she was registered successfully.

    One way to solve it would be with a message-driven approach including compensation. Let's consider the following architecture:

    the user microservice tasked with registering a user profile

    the validation microservice tasked with doing a background check

    the messaging platform that supports persistent queues

    The messaging platform could ensure that the messages sent by the microservices are persisted. Then they would be delivered at a later time if the receiver weren't currently available 

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