G10 · Design YouTube View Count G10 · 设计 YouTube 观看数
Verified source经核实出处
Classic SD; YouTube engineering blog confirms techniques. Credibility A.
Key decisions关键决策
- **Approximate + reconciliation**: fast HLL/counter for UI + slow batch for authoritative count.**近似 + 对账**:前端 HLL/计数服务快显;后端离线批量定最终值。
- **Anti-fraud filter**: throttles per IP/device/account; doesn't count auto-play bots.**反刷量过滤**:按 IP/设备/账号限流;不计 autoplay bot。
- **Per-video sharded counter** to avoid hot-key contention.**按视频分片计数**,避免热 key 争用。
- **Eventual consistency**: creator dashboard may lag UI; that's OK.**最终一致**:创作者面板可比 UI 延迟。
Follow-ups追问
- Milestones (1M views)? hysteresis + manual override for announcements.里程碑(100 万)?加滞后 + 宣发手工校正。