A rapidly growing e-commerce platform is transitioning from a monolithic architecture to microservices. They need to ensure data consistency for transactions that span multiple services, such as processing an order which involves updating inventory, charging the customer, and arranging for shipping. If any of these steps fail, the entire transaction must be rolled back. Which architectural pattern is most suitable for managing this multi-service transaction?
-
A
Circuit Breaker
-
B
Saga Pattern
-
C
API Gateway
-
D
Strangler Fig Pattern