Problem
Predictive models usually run on thousands of hand-crafted aggregates. Coinbase keeps more than 5,000 of them in its ML platform, for example "purchases of digital assets in the last 30 days". Such a count drops detail: which asset, how much, and when each purchase happened. Adding features for each missing detail takes expert time and may not improve the model. Models that read raw action sequences avoid this, but they need sequences that are fresh, long and cheap to serve for hundreds of millions of users.
Example from the article: a sequence of one user's sign-ins, buys, sells and crypto sends.
Solution in brief
Coinbase built a framework where an ML engineer declares the Kafka topics, the event schema and the sequence semantics. The framework generates stateless Spark streaming pipelines that only standardize and store each event. The sequence is assembled at read time, where extra transformations can also be applied.
Questions this case answers
- How to turn heterogeneous event streams into reusable ordered-history features for online and offline models without hand-built streaming pipelines
- How to set the freshness, length and latency budget of per-user event sequences served to models in real time
- How to serve raw user event sequences as model features with second-level freshness?
- How to let ML engineers declare a sequence feature without writing streaming code?
Tools and methods
- Event sequence features — ordered user events as model input (Transformers, LSTMs) instead of hand-made aggregates
- ML Event Registry — explicit list of events approved for ML, each with its own schema
- Tecton on Databricks Spark — feature views, streaming materialization, real-time feature views
- Kafka, Delta Lake, DynamoDB — streaming source, batch and backfill source, online store
Google or a one-time email code. No password.