Design a Multimedia Content Moderation Platform
Design a post-upload video and image moderation pipeline that combines 20–30 versioned text and vision risk scores, exposes pending and final user states, and executes auditable video or account actions.
Problem statement
Design the moderation pipeline after a video or image has already been uploaded. The user first sees a pending-review state and later receives an approval or removal result. Media bytes live in object storage, and durable work fans out to roughly 20 to 30 heterogeneous text and vision models.
Each model emits a risk score from 0 to 1 with its model version. A configurable, versioned policy engine combines those scores into violation decisions and may invoke downstream video or account actions such as removal or suspension.
Every decision must retain an auditable record of the model scores, model versions, rules, policy version, and action basis.
Workers and queues may retry, redeliver, time out, or finish out of order. One logical asset and policy version must converge to one decision, one user-visible notification outcome, and idempotent downstream actions. Low-confidence or policy-sensitive cases may enter human review.
Operators can inspect failures, retry incomplete stages, and intentionally reprocess an asset under a newer policy without overwriting historical evidence.
For practice, support 10 million new assets per day with a ten-times burst, videos up to 2 GB, and up to 100,000 model tasks per second after fan-out. Return 95% of automated decisions within two minutes and route unresolved cases to human review within five minutes. Retain evidence and policy references for 90 days.
Exclude media serving, recommendation ranking, model training, and authoring the underlying moderation policy.
What to build
- A product registers an already-uploaded image or video once by logical asset identity and exposes a pending-review state to the user.
- The platform fans out roughly 20–30 heterogeneous text and vision models, validates each 0–1 risk score, and records the model and input versions.
- A configurable versioned policy engine combines scores into one auditable allow, restrict, remove, or needs-review decision, notifies the user of the final outcome, and drives idempotent video or account actions.
- Operators can inspect, retry, reconcile, and reprocess an asset under a newer policy without overwriting historical decisions, scores, rules, or actions.
At scale
- Source-backed fan-out: roughly 20 to 30 heterogeneous text and vision models produce 0-to-1 risk scores for a configurable policy engine, which can trigger video and account actions.
- Practice assumption: the platform receives 10 million new assets per day with a ten-times traffic burst, video objects may be as large as 2 GB, and fan-out produces up to 100,000 analysis tasks per second.
- Practice assumption: 95% of automated decisions complete within two minutes, while unresolved cases reach the human-review queue within five minutes.
- Practice assumption: work delivery is at least once, analyzers may time out, and object bytes may be temporarily unavailable after registration; retries must converge without duplicate decisions.
- Practice assumption: decision evidence, policy references, analyzer versions, and review history remain queryable for 90 days.