Hard
Microservices Eventual Consistency
Design a pattern for handling data consistency across microservices.
📝 محتوى الأمر
Design a strategy to maintain eventual consistency between an Order Service and an Inventory Service in a distributed e-commerce system. Discuss the use of the Saga pattern, specifically differentiating between Choreography and Orchestration approaches, and how to handle compensating transactions in case of failure.