Design Customer and Shopper Chat With Replacement Approvals

Last updated: November 29, 2026

Quick Overview

Design the in-app messaging between a customer and their shopper during an active order, including structured replacement suggestions the customer can approve or reject with one tap.

Instacart
System Design
Software Engineer
Instacart
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the in-app messaging between a customer and their shopper during an active order, including structured replacement suggestions the customer can approve or reject with one tap.

Live chat during shopping is a defining Instacart experience, and replacement approvals must reach the shopper in the aisle within seconds. Interviewers check real-time delivery, ordering and offline handling, and how structured actions stay consistent with the order state.

What the Interviewer Expects
  • Scope conversations to an order with two or three participants
  • Use persistent connections for live delivery with push notification fallback
  • Guarantee per-conversation ordering and idempotent message sends
  • Model replacement approvals as structured messages tied to order line state
  • Handle poor in-store connectivity and reconnect with catch-up
Key Topics to Cover
real-time messaging
websockets
ordering guarantees
push notifications
state consistency
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
  • How do you prevent a customer approving a replacement after the shopper already checked out?
  • How would you add automatic translation between shopper and customer?
  • How would support agents join a conversation?
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

Functional: text and photo messages, read receipts, replacement suggestion cards with approve, reject or choose another; conversation closes some time after delivery. Non-functional: median delivery u...

High-Level Design

Clients hold a WebSocket to a gateway fleet. A chat service owns conversations keyed by order id and writes messages to a store partitioned by conversation (Cassandra or DynamoDB, sort key = s...


Submit Your Answer
Markdown supported