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
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
trust tiers
metadata-only signals
new contact limits
end-to-end encryption
abuse feedback loops
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 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 Problems
Sample 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...


Submit Your Answer
Markdown supported