How Coinbase Builds Sequence Features for Machine Learning
summary
Coinbase builds a production framework that turns Kafka and Delta Lake event streams into bounded sequence features using Spark Structured Streaming (and some Flink), Python UDFs, and a mix of tiling/compaction and a stateless streaming model for last-N windows (typically ≤1,000 events). The system registers event schemas, supports online latencies under 100 ms, offline training refreshes within an hour, serves over 500,000 online reads/sec at peak, and feeds embeddings or transformer blocks for fraud detection and recommendations.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:25Why Coinbase invests in ML platform
- 1:07Core predictive ML use cases
- 2:09Scale of feature platform
- 3:35Sequence features overview
- 6:21Constraints for sequence features
- 8:30Feature platform architecture
- 9:33Event registration and reuse
- 11:40Derived sequence features
- 12:47Optimizing sequence feature computation
- 14:54Ongoing improvements and challenges
- 16:57Future work and closing
