Designing the library powering Netflix's QoE with Scala 3
summary
Centralized Measures Library defines 750+ concrete measures, implemented in Scala 3 using Opaque Types, given wiring and the boundary API, runs on Spark and Flink, and reuses the AC simulator to replay ~1M sessions in 30–60 minutes; heavy parsing is done once per session. A compile‑time macro called summonCached eliminates runtime hashmaps and cuts CPU by ~20–25%. The pipeline produces a JSON dependency graph for an interactive UI. The library is direct‑style, composable, and deployed across multiple apps.
AI-written summary · about
chapters (9)
- 0:00Netflix video streaming QOE
- 2:23Data collection and analysis
- 7:35Challenges in metrics design
- 9:51The measures library design
- 20:26Direct style and API ergonomics
- 22:03Inside the boundary API
- 25:50Optimization and caching
- 30:50Future work and conclusions
- 32:20Q&A session








