Design Adaptive Friend Request Send Limits Based on Account Trust
Last updated: November 29, 2026
Quick Overview
Design the limits on how many friend requests a Facebook user can send per day and week, with lower limits for new or suspicious accounts and a warning flow before a temporary block.
Meta
November 29, 20260
0
0 solved
Design the limits on how many friend requests a Facebook user can send per day and week, with lower limits for new or suspicious accounts and a warning flow before a temporary block.
This is a lighter system design question used in Meta screens or for more junior candidates, grounded in the integrity problem of fake accounts spamming friend requests. The interviewer wants a clear counter design, sensible keys, and a simple trust tier input rather than a heavy architecture.
What the Interviewer Expects
- State clear functional limits with windows such as daily and weekly
- Choose a counter store and data model with TTLs
- Incorporate trust tier and acceptance rate
- Describe user-facing warnings and temporary blocks
- Keep it simple and correct
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
- What if many requests are ignored instead of declined?
- How do you handle a user who just joined and imports contacts?
- How do you change limits without a deploy?
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
- Each user can send at most N friend requests per 24 hours and M per 7 days, where N and M depend on a trust tier (for example new accounts 20/day, established accounts 100/day).
- If a user's recent...
High-Level Design
The friend request endpoint calls a limit check before writing the request edge to the social graph. The check reads two counters from an in-memory key-value store (memcache-style with persistence...