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

Failure Scenarios

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

Contents


More Related Answers

  • what is failure
  • Failure management
  • Failure Management:
  • One reason for failure#

  • Failure Scenarios

    0

    if the validation microservice is not accessible, then the messaging platform with its persistent queue functionality ensures that the validation microservice would receive this message at some later time

    suppose the messaging platform fails, then the user microservice tries to send the message again at some later time, for example, by scheduled batch-processing of all users that were not yet validated

    if the validation microservice receives the message, validates the user but can't send the answer back due to the messaging platform failure, the validation microservice also retries sending the message at some later time

    if one of the messages got lost, or some other failure happened, the user microservice finds all non-validated users by scheduled batch-processing and sends requests for validation again

    Even if some of the messages were issued multiple times, this wouldn't affect the consistency of the data in the microservices' databases.

    By carefully considering all possible failure scenarios, we can ensure that our system would satisfy the conditions of eventual consistency. At the same time, we wouldn't need to deal with the costly distributed transactions.

    But we have to be aware that ensuring eventual consistency is a complex task. It doesn't have a single solution for all cases. 

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