KatInterview

Architecting a Scalable, Fault-Tolerant Enterprise Feature Store

System DesignModel answer
HardModel answerSystem Designmachine-learningsystem-designdata-engineering

Last updated

Design a production ML feature store supporting streaming and batch ingestion, low-latency online serving, point-in-time correctness, and CI/CD feature governance.

Design an enterprise-grade ML Feature Store capable of serving real-time inference engines and offline training pipelines at scale.

Your solution should address the following requirements:

  1. Ingestion & Computation: Support dual-path ingestion (streaming for real-time aggregation, batch for high-throughput warehouse features).
  2. Serving Layer: Provide an online low-latency lookup API alongside an offline point-in-time correct dataset generator.
  3. Point-in-Time Correctness & Consistency: Detail how to eliminate data leakage during training set creation and how to prevent online-offline feature skew.
  4. CI/CD & Governance: Define how feature definitions are managed as code, versioned, tested, and safely deployed without breaking downstream models.
  5. Reliability & Performance: Detail caching strategies, circuit breaking, fallback mechanisms, SLOs, and scaling strategies for high-throughput online serving.

Hints

Hint 1

Break your system into clear planes: Definition/Registry, Ingestion & Materialization, Online Storage & Serving, and Offline Storage & Querying.

Hint 2

Point-in-time correctness requires tracking both when an event occurred (event timestamp) and when it arrived in the system (ingestion timestamp) to prevent label leakage.

Hint 3

To guarantee offline-online consistency, favor dual-writing transformed streaming outputs or logging online-served vectors to form the offline training log.