API Testing · Senior · Question 25 of 75
How do you test a saga that spans several services?
- 1Check each step, compensations on failure and the final consistent state
- 2Check only the first service, since the others follow automatically
- 3Sagas can't be tested and are verified only by monitoring
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.