VFlash: Fast, Accurate Visual Planning via Flash Primitive Decoding
u_Unrolled
D22: AI System Design Bank · Case Study: Spam Filtering — Tiered Actions, Cascades and Campaigns at Staff Level

Case Study: Spam Filtering — Tiered Actions, Cascades and Campaigns at Staff Level

25 min read·Staff+ Tier· Unrolled Pro
Case Study: Spam Filtering — Tiered Actions, Cascades and Campaigns at Staff Level

You already know: classification with imbalanced classes and threshold choice (D3); the fraud case in this bank (adversaries, delayed labels, rules plus models); event streaming and feature stores (D16, D11). This case adds spam at platform scale: hundreds of millions of messages a day, two very different costs of error, adversaries who adapt within hours, and labels shaped by the filter itself. The design questions: which actions to take at which confidence, how to stay fast where users wait, how to catch campaigns instead of single messages, and how to keep labels honest.

How to read this lesson. No code, on purpose. Numbers marked assumed are assumptions you state out loud.


1. The prompt, and the questions that change the design

A mid-level answer: "train a text classifier, block what it flags". A staff candidate asks first what each mistake costs (a legitimate message blocked versus spam delivered), which surfaces need an inline decision (direct messages are seen at once; posts can be checked just after publishing), and how the adversary behaves (campaigns of near-identical messages from many new accounts). The answers turn one classifier into a system of tiered actions, a cascade of checks, campaign detection and a label pipeline.

Assumptions you state:

That's the preview. The full lesson, with its code and exercises, is part of Unrolled Pro.
Staff AI & Pro Tier Lesson

Unlock "Case Study: Spam Filtering — Tiered Actions, Cascades and Campaigns at Staff Level"

The foundations are free forever. Unrolled Pro unlocks the complete lesson, production architectures, and 55 battle-tested ML system design case studies.

Everything included with Pro:
All 234+ Deep-Dive Lessons across transformer internals, inference, RAG & agents
55 Staff-Level ML & System Design Case Studies with mathematical capacity estimates
AI Engineer Sheet & Exercises with worked solutions, self-checks, and code
100 Landmark Research Papers guided walkthroughs & progress tracking
14-Day Money-Back Guarantee — 100% full refund if you aren't satisfied
View Plans & Unlock All Lessons

From ₹167/mo (~$2/mo) · Cancel anytime · Instant activation

100% Risk-Free: 14-day no-questions-asked money-back guarantee