Design a Shared Household Shopping List With Offline Edits

Last updated: November 29, 2026

Quick Overview

Design a shopping list that several household members can edit at the same time from the Walmart app, including in a store with poor connectivity, with changes merging cleanly when devices reconnect.

Walmart Labs
System Design
Software Engineer
Walmart Labs
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design a shopping list that several household members can edit at the same time from the Walmart app, including in a store with poor connectivity, with changes merging cleanly when devices reconnect.

Shared lists tie into the cart, store aisle locations and pickup orders, and shoppers often edit them in stores where signal is weak. Interviewers want to see a sync model that handles concurrent and offline edits, a reasonable conflict strategy, and how the list stays linked to real catalog items.

What the Interviewer Expects
  • Define list operations (add, remove, check off, change quantity, reorder)
  • Choose a merge model such as per-field last-writer-wins or CRDTs
  • Use an operation log with client sequence numbers for sync
  • Push live updates to online members
  • Link items to catalog entries and store aisle data
Key Topics to Cover
Offline-first sync
CRDTs
Operation logs
Conflict resolution
Real-time push
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Two people change the quantity of milk offline at the same time. What does the list show?
  • How do you handle one person deleting an item another person just checked off?
  • How do you convert the list to a cart when some items are out of stock?
  • How would you add list sharing permissions?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Lists have a few to a few hundred items and up to about 10 members. Edits apply instantly on the device, sync within a second or two when online, and merge without losing intent after hours offline. I...

High-Level Design
  • Client store: local database holding the list state plus a queue of pending operations.
  • Sync API: client sends ops since server_version, server returns ops it has not seen. Each op carri...

Submit Your Answer
Markdown supported

Related Questions