This question evaluates expertise in distributed systems and system design, focusing on real-time inventory management, concurrency control for reservations and oversell prevention, backorder handling, API and data model design, consistency models, and operational scalability.
You are designing the inventory subsystem for a large e-commerce marketplace with multiple fulfillment locations (warehouses/stores). Product availability must reflect real-time stock changes, support cart reservations, prevent overselling under high concurrency, and allow backorders when enabled.
Design a system that:
Provide architecture, key invariants, APIs, data schemas, and operational strategies addressing the above.
Login required