Design a Shared Household Shopping List Synced With Alexa
Last updated: November 29, 2026
Quick Overview
Design a shopping list that several household members edit from the Amazon app, the web and Alexa voice commands, with changes appearing on every device within seconds and offline edits merging cleanly.
Amazon
November 29, 20260
0
0 solved
Design a shopping list that several household members edit from the Amazon app, the web and Alexa voice commands, with changes appearing on every device within seconds and offline edits merging cleanly.
A gentle sync question in the style of Amazon devices and retail teams. The interviewer checks that you pick a simple conflict strategy, model items so concurrent adds and removes work, and push updates to active clients.
What the Interviewer Expects
- Model the list as a set of items with IDs rather than one blob
- Resolve concurrent edits per item, for example last write wins on fields
- Handle offline edits with a change log and sync on reconnect
- Push updates to online clients via WebSocket or push notifications
- Map voice commands to list operations
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- What happens if two people check off and rename the same item at once?
- How would you handle 'add milk' when milk is already on the list?
- How do you sync a phone that was offline for a week?
- How would you add 'add to cart' from the list?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
A household list has up to a few hundred items, shared by up to 6 members. Operations: add, edit text or quantity, check off, delete. Clients: mobile app (can be offline), web, Alexa. Changes should s...
High-Level Design
- List service: stores items in a table keyed by
(list_id, item_id)with fields text, quantity, checked,updated_at,deletedflag, and a per-list monotonically increasingversion. - **Chan...