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
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

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
sliding window counters
TTL keys
trust tiers
acceptance rate
user warnings
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
  • 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 Problems
Sample 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...


Submit Your Answer
Markdown supported