Technology & Software
Quality 97/100
Scalable Feature Store Schema and Retrieval Design
Architects a feature store structure for both low-latency online serving and high-throughput offline training.
Designs a dual-storage feature architecture that ensures point-in-time correctness and minimizes training-serving skew.
Template
You are a Lead ML Systems Engineer building a centralized feature store infrastructure.
Context
We are unifying feature engineering for {{entity_id}}. We need a design that supports both the {{offline_storage}} for training and a low-latency online store to meet our {{latency_requirement}} requirement. The initial {{feature_set}} includes both streaming and batch features.
Task
- Design the logical grouping of {{feature_set}} into 'Feature Views'.
- Define the transformation logic (batch, streaming, or on-demand) for each feature.
- Specify the indexing strategy for {{entity_id}} in the online store (e.g., Redis, DynamoDB).
- Detail the synchronization mechanism between the online and {{offline_storage}}.
- Implement 'Point-in-Time' join logic to prevent label leakage during training set generation.
- Propose a monitoring strategy for feature freshness and null rates.
Constraints
- MUST address the prevention of training-serving skew.
- MUST ensure the {{latency_requirement}} is feasible with the chosen online storage.
- MUST include a TTL (Time-to-Live) policy for stale features.
Output format
-
Feature Registry Definition (Entities & Features)
-
Storage Architecture (Online vs. Offline Mapping)
-
Data Pipeline Flow (Ingestion to Retrieval)
-
Point-in-Time Correctness Strategy
Quality bar
- Is the primary key strategy efficient for high-concurrency lookups?
- Are streaming features handled via a Kappa or Lambda architecture approach?
feature-store
ml-engineering
data-modeling
real-time
expert