Design Messaging Spam Throttles for New WhatsApp Accounts
Last updated: November 29, 2026
Quick Overview
Design rate limits on how many messages, new-contact chats, and group adds a newly registered WhatsApp account can make, tightening for suspicious behavior and relaxing as the account earns trust, all without reading end-to-end encrypted message content.
Meta
November 29, 20260
0
0 solved
Design rate limits on how many messages, new-contact chats, and group adds a newly registered WhatsApp account can make, tightening for suspicious behavior and relaxing as the account earns trust, all without reading end-to-end encrypted message content.
WhatsApp interviews often probe integrity under end-to-end encryption, since spam must be fought with metadata only. The interviewer checks that you design trust-tiered quotas, choose signals available without content, and keep the server path simple given WhatsApp's very lean infrastructure.
What the Interviewer Expects
- Recognize content is encrypted so limits use metadata only
- Define quotas on new-contact messages, broadcast fan-out, and group adds
- Tie limits to an account trust score that rises with age and good signals
- Handle user reports and blocks as strong negative signals
- Keep enforcement in the chat server path with low cost
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 do you keep a legitimate small business from being throttled on its first day?
- How would you stop spammers who register thousands of accounts with fresh numbers?
- What happens when a throttled user appeals?
- How would forwarding limits on viral messages fit into the same system?
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: limit (a) messages to people who do not have you in contacts and have never replied, (b) total unique recipients per hour and day, (c) group creations and group adds, (d) forwards of t...
High-Level Design
The chat server (Erlang in WhatsApp's stack) already sees sender, recipient, timestamps, message size, and type. It increments counters in an in-memory per-user state that lives with the user's connec...