Problem
At Faire, practitioners often built their own features, custom SQL pipelines and ad-hoc notebooks for each use case. Features were duplicated, nobody could see what already existed, missing or drifting values went unnoticed, and the setup did not work online. Real-time ranking added requirements: features reused across models, low-latency access, request-time features such as a retailer's last search, and user-item interaction features that cannot be precomputed for every pair.
Example from the article: a "similar products" carousel reranks several hundred candidates using the retailer's recently viewed products and recent search queries.
Solution in brief
Faire built a feature store with two feature families. Daily batch features and embeddings are computed in the warehouse by Airflow and copied to Redis. Real-time features are computed in the backend per ranking request. Every served feature value is logged at impression time, and models train on those logs ("log-and-wait"), so training and serving features cannot differ.
Questions this case answers
- How to serve precomputed and request-time features to an online ranker when interaction features cannot be precomputed for all entity pairs
- How to make training features identical to serving features when real-time features cannot be backfilled for arbitrary dates
- How to build one feature store that serves both daily batch features and real-time features to an online ranker?
- How to compute user-item interaction features at ranking time without precomputing every user-item pair?
Tools and methods
- Apache Airflow — daily batch feature jobs through a custom operator, metadata extraction, monitoring.
- Redis — online store keyed by entity, holding all features and embeddings of that entity.
- Amazon DynamoDB — backup store for cache misses.
- Log-and-wait — record served features at impression time and train on the records.
- Embedding similarity — real-time interaction features from precomputed embeddings.
- Z-score monitoring — time-series alerts on feature values and counts.
Google or a one-time email code. No password.