Design Buyer-Seller Messaging With Contact Information Redaction
Last updated: November 29, 2026
Quick Overview
Design the marketplace messaging channel that lets a buyer and a third-party seller exchange messages about an order, while automatically redacting emails, phone numbers and off-platform payment links before delivery.
Amazon
November 29, 20260
0
0 solved
Design the marketplace messaging channel that lets a buyer and a third-party seller exchange messages about an order, while automatically redacting emails, phone numbers and off-platform payment links before delivery.
A scoped design question used in Amazon phone screens for marketplace teams, where buyer trust and keeping transactions on-platform matter. The interviewer checks that you can lay out a simple, durable message path and place a policy filter in it without blocking delivery for minutes.
What the Interviewer Expects
- Clarify volume, latency targets and whether attachments are allowed
- Model conversations keyed by order and participant pair
- Insert a synchronous redaction step with an asynchronous review queue
- Store both raw and redacted copies with access controls
- Notify the recipient by email and app push with a masked relay address
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
- How would you handle a seller who encodes a phone number as words to evade the filter?
- How do you let Trust and Safety audit raw messages without exposing them to support agents?
- What changes if Amazon must retain messages for seven years for disputes?
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
Functional: a buyer opens a thread from an order page; seller replies from Seller Central; text plus image attachments; each message is scanned and personal contact data is masked before the other sid...
High-Level Design
Clients call a Messaging API that writes to a Conversations table (partition key order_id#buyer_id#seller_id, sort key message_ts). The write path calls a Redaction service before commit: regex an...