Shepherd: High-Scale, Low-Latency Machine Learning with Flink at Stripe
summary
Shepherd adapts open-source Cronon to run a tiled Flink architecture that pre-aggregates events into fixed-length tiles, cutting serving work so large feature vectors serve in single-digit millisecond latency and end-to-end updates land in KV stores in <100 ms. Batch Spark jobs and streaming Flink apps both produce tiles; a fetcher merges batch and stream tiles at read time. A control plane (Temporal workflows, CLI, per-pool KV stores, per-feature-group Flink apps) auto-provisions, isolates noisy neighbors, and reduces onboarding toil while improving freshness and fraud-detection performance.
AI-written summary · about
chapters (11)
- 0:00Introduction to Shepherd
- 1:45Feature definition in Shepherd
- 3:31Shepherd's Lambda architecture
- 5:35Default vs tiled Flink architecture
- 8:27Tiled architecture benefits
- 9:53Feature serving process
- 11:19Control plane challenges
- 13:45Shepherd control plane overview
- 15:08CLI and automation benefits
- 16:53Multi-region high availability
- 17:56Future of Shepherd
