Uber·Software Engineer·Onsite - System Design / Architecture
- Design the backend cart system for an on-demand delivery app, covering the full lifecycle from cart creation through checkout and fulfillment.
- How would you model the data for a cart system, and what indexing strategy would you use to support common queries like fetching a user's active cart or all items in a cart?
- Multiple devices can update the same cart simultaneously. How do you handle concurrent modifications and prevent conflicts or data corruption?
- How do you ensure that checkout converts a cart to an order exactly once and that the cart state is valid at the time of conversion?
“The prompt is intentionally vague and they want you to ask clarifying questions before touching the design.”