API Testing · Senior · Question 25 of 75

How do you test a saga that spans several services?

Show the answer

Correct answer: Check each step, compensations on failure and the final consistent state

Explanation

Inject a failure in step three and confirm steps one and two are compensated, e.g. reservation released and payment refunded.

Further reading

Problem with a question

API Testing · Senior · question 25

Test yourself

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

Take this quiz