Real-World Scenario: E-Commerce Checkout Across Services (Design Decisions)
Learn Real-World Scenario: E-Commerce Checkout Across Services (Design Decisions) (Worked Examples · Complete Microservices Mini Programs, Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
The scenario • Checkout touches Order , Inventory , Payment , Notification and Shipping services, each with its own database. A customer clicks "Pay": what must be synchronous (the user waits) and what can be asynchronous (events)? A common answer: the API gateway calls Order synchronously (validate, create PENDING order, return 202 with an order id); the rest of the flow runs as an orchestrated or choreographed saga and the client polls or receives a push for the final status.