Design Patterns · Senior · Question 47 of 75

Why is the Saga pattern (orchestration) in distributed processes relevant to the frontend?

Explanation

Placing an order: reserve the item → pay → ship; if payment fails, the reservation must be cancelled. The frontend should reflect intermediate statuses and the outcome of compensations rather than treating the operation as atomic.

Further reading

Problem with a question

Design Patterns · Senior · question 47

Test yourself

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

Take this quiz