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

Alternative Approach Without Transactions

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

Contents


More Related Answers

  • How is distributed transactions handled

  • Alternative Approach Without Transactions

    0

    We can alter our microservice architecture and remove the field lastMessageTime from the User entity.

    Then we could display this time in the user profile by issuing a separate request to the messages microservice and finding the maximum messageTimestamp value for all messages of this user.

    Probably, if the message microservice is under high load or even down, we won't be able to show the time of the last message of the user in her profile.

    freestar

    But that could be more acceptable than failing to commit a distributed transaction to save a message just because the user microservice didn't respond in time.

    There are of course more complex scenarios when we have to implement a business process across multiple microservices, and we don't want to allow inconsistency between those microservices.

    Popularity 1/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.