← Back to System Design Mind Map
🏗️ System DesignID: recsys-funnel-sla

RecSys Multi-Stage Funnel & 50ms SLA

推荐多阶段漏斗与 50ms SLA
🎯Core Definition
The Multi-Stage Recommendation Funnel is a classic industrial cascading architecture that refines global item candidates (107∼10810^7 \sim 10^8) down to final user recommendations within a strict 50ms Latency SLA; the standard pipeline enforces a strict latency budget across 4 stages: 1) Multi-Channel Retrieval (10ms budget, filtering down to ∼10,000\sim 10,000 items via ANN/collaborative filtering); 2) Pre-Ranking (5ms budget, lightweight scoring reducing to ∼1,000\sim 1,000 items); 3) Heavy Ranking (30ms budget, deep multi-task models predicting CTR/CVR for ∼100\sim 100 items); 4) Re-Ranking (5ms budget, diversity DPP, fatigue rules, yielding Top 10).
💡Use Cases
E-commerce feeds (Amazon/Taobao), short-video feeds (TikTok), visual discovery feeds (Pinterest/Xiaohongshu), and streaming media homepages (Netflix).
⚡Key Problems Solved
Heavy multi-task ranking networks cannot forward-pass millions of items within a 50ms SLA; the cascading funnel balances computational depth against candidate size at every transition, maximizing relevance under hard latency constraints.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of RecSys Multi-Stage Funnel & 50ms SLA.
Use Cases
In production engineering, what are the primary use cases for RecSys Multi-Stage Funnel & 50ms SLA and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Diagram the 4-stage funnel architecture and explain why candidate sizes exhibit exponential decay: 108→104→103→102→10110^8 \to 10^4 \to 10^3 \to 10^2 \to 10^1?
2
Break down the latency budget across Network RTT, Feature Store fetching, and Model forward passes under a 50ms SLA?
3
Why does the retrieval layer optimize for Recall@K while heavy ranking optimizes for fidelity metrics like GAUC and NDCG?
4
How to implement graceful load shedding (e.g., pruning pre-ranking output from 1000 to 300) during peak traffic spikes to preserve SLA?
5
Analyze the 'retrieval ceiling dictates ranking quality' dependency and how to monitor multi-channel cross-coverage ratios?
Updated 2026-08-14
🎯
Verify Mastery: Practice Exam Questions for "RecSys Multi-Stage Funnel & 50ms SLA"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
Next Card →DSSM Two-Tower Retrieval

🔗 More System Design Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/System_Design/card/recsys-funnel-sla
中文速览与面试要点

推荐多阶段漏斗与 50ms SLA (RecSys Multi-Stage Funnel & 50ms SLA)

定义: 推荐系统多阶段漏斗架构 (Multi-Stage Recommendation Funnel) 是一种面对亿级全量物品库 (10^7 10^8) 与高并发在线请求时,通过“漏斗式级联裁减”在严格 50ms 延迟 SLA 内逐步逼近全局最优排名的经典工业级分层架构;标准流水线分为 4 个核心阶段并严格分配延迟预算:1) 多路召回 (Retrieval: 10ms 预算,从亿级池中快速粗选 10,000 候选);2) 粗排 (Pre-Ranking: 5ms 预算,轻量打分筛选至 1,000 项);3) 精排 (Heavy Ranking: 30ms 预算,深度复杂模型预测 CTR/CVR 精细打分输出 100 项);4) 重排与多样性 (Re-Ranking: 5ms 预算,结合业务规则、类目打散与流控输出最终 Top 10 展示给用户)。 使用场景: 淘宝/Amazon 电商推荐、抖音/TikTok 短视频信息流、小红书双列 Feed 与 Netflix 流媒体个性化主页。 解决的问题: 复杂精排大模型(数百特征交叉与数十层网络)前向计算极其昂贵,绝对无法在 50ms 内对千万级物品逐一打分;漏斗架构通过在各阶段精细平衡“计算复杂度”与“候选集规模”,实现了高吞吐量与极佳推荐精度的统一。

核心要点

  • 详细画出 4 阶段推荐漏斗架构图,并解释为何各阶段的候选数量呈现 10^8 10^4 10^3 10^2 10^1 的指数级收敛?
  • 在 50ms 端到端延迟 SLA 下,网络传输 (Network RTT)、特征拉取 (Feature Fetch)、模型前向推理 (Model Forward) 的耗时分解预算?
  • 为什么在召回层追求的是高召回率 (High Recall@K),而在精排层追求的是高保真排序指标 (NDCG / GAUC)?
  • 当线上偶发突发流量(如双十一大促高峰)导致精排超时时,系统如何执行动态候选集截断(如 1000 300)的降级熔断?
  • 推荐系统中“上游召回天花板决定下游精排上限”的漏斗木桶效应与多路召回交叉覆盖率监控?