Design a Content Moderation System

Quick Overview

Design an automated content moderation system for a social platform. Cover ML-based classification pipelines, human review queues, appeal workflows, real-time vs batch processing trade-offs, and handling false positives at scale.

Meta
System Design
Software Engineer
Meta
Software Engineer
Onsite
System Design
Hard

0


Design an automated content moderation system for a social platform. Cover ML-based classification pipelines, human review queues, appeal workflows, real-time vs batch processing trade-offs, and handling false positives at scale.

Content moderation is core to Meta's integrity work across Facebook and Instagram, at the scale of billions of posts per day. The interviewer looks for a layered design that combines ML classifiers with human review, handles appeals, and manages the cost of false positives and false negatives.

What the Interviewer Expects
  • Define the content types, policy categories, and latency targets for blocking versus review
  • Estimate volumes for posts, classifier calls, and human review capacity
  • Design a pipeline with fast pre-publish checks and slower asynchronous deep models
  • Explain how confidence thresholds route content to auto-action, human review, or no action
  • Design review queues and an appeals workflow that feed labels back into training
  • Discuss precision and recall trade-offs per policy and how to measure them
Key Topics to Cover
ML classification pipeline
Human-in-the-loop review
Appeals workflow
Precision and recall trade-offs
Real-time versus batch processing
Queue prioritization
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 prioritize the human review queue when it is far larger than reviewer capacity?
  • How would you handle a viral post that goes from zero to millions of views in minutes?
  • How do you detect a new kind of harmful content that the current classifiers miss?
  • How do appeal outcomes flow back into model training without introducing bias?
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 Requirements

  1. Content Classification: Automatically classify user-generated content (text, images, videos) into categories (e.g., hate speech, nudity, spam).
  2. **Human Review Que...
Capacity Estimation

Assuming Meta's platform has around 2 billion active users, we can estimate content submissions:

  • Daily Content Posts: 1 post/user/day = 2 billion posts.
  • Moderation Load: Assuming 30% of co...

Submit Your Answer
Markdown supported