Design a Feature Store Serving Real-Time Signals to Ranking Models
Last updated: November 29, 2026
Quick Overview
Design a feature platform where ranking teams define features once and get consistent values both for offline training and for online serving at millions of lookups per second, including counters updated within seconds.
Meta
November 29, 20260
0
0 solved
Design a feature platform where ranking teams define features once and get consistent values both for offline training and for online serving at millions of lookups per second, including counters updated within seconds.
Ads, Feed, and Reels at Meta depend on shared features, and training-serving skew is a known pain. Interviewers check the split between batch and streaming features, point-in-time correct training joins, and online store latency.
What the Interviewer Expects
- Define features declaratively with one definition for offline and online
- Separate batch, streaming, and request-time features
- Serve online lookups with low latency at high fan-out
- Produce point-in-time correct training data
- Monitor freshness and skew
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you avoid label leakage when building training data?
- How would you serve a 'clicks in the last 10 minutes' counter?
- What do you do when a model needs 2,000 features per item?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: register features with an entity key (user, post, ad), a source, and a transformation; materialize to online and offline stores; fetch by key at serving; generate training sets.
**Non...
High-Level Design
- Registry: feature definitions in code, owners, types, TTLs.
- Batch materialization: daily jobs compute features from warehouse tables and bulk-load them to the online store and the offline ...