API Testing · Middle · Question 55 of 75

How do you test eventual consistency between two services after an API call?

Show the answer

Correct answer: Poll the second service until the change appears, with a timeout

Explanation

Polling with a limit is stable and fails clearly when the change never arrives. Fixed sleeps are slow and flaky.

Further reading

Problem with a question

API Testing · Middle · question 55

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz