MLCrack

    ML SYSTEM DESIGN & MLOPS · INTERVIEW QUESTION

    What are ML design patterns? Explain the Feature Store pattern.

    🔴 advanced · System Design Patterns

    Hint: Think about reusable solutions for common ML engineering challenges.

    Answer

    ML design patterns are reusable solutions for recurring ML engineering problems. Feature Store pattern: centralized repository for feature engineering that serves both training and serving.

    Components:

    1. Offline store: historical features for training (data warehouse, S3/Parquet).

    2. Online store: low-latency features for serving (Redis, DynamoDB).

    3. Feature registry: metadata, lineage, documentation.

    4. Transformation engine: consistent feature computation.

    Benefits: feature reuse across teams, training-serving consistency (prevents skew), point-in-time correctness (avoid future data leakage), feature discovery.

    Tools: Feast, Tecton, Hopsworks. Other key patterns: Transform (preprocessing pipeline), Embeddings (learned representations), Cascade (chain of models), Two-phase prediction (candidate generation + ranking), Stateless serving function.