Skip to content
$ lynuxpro
← All system designs

SENIOR · 14 MIN · MLOPS · PLATFORM

ML training platform and feature store

Feature pipelines feeding offline and online stores, orchestrated GPU training, experiment tracking and a model registry that hands off to serving.

Peak load
64 GPUs, 5,000 feature reads/s
Availability target
99.95% (serving)
RTO: back up within
15 min serving / 4 h training
RPO: data you can lose
30 min (checkpoints)

← Swipe sideways to see the whole diagram →

Data storeServiceInfrastructureMLasync / background

The question

"Design a platform where data scientists train, track and ship models, and where the features used in training match the features used in production."

Requirements

  • Reproducible training: the same code, data and settings give the same model.
  • Shared GPU capacity with fair quotas and low cost.
  • Features computed once and used for both training and live predictions.
  • A clear path from experiment to production with approval.

How it works

  1. Raw data lands in a data lake (S3) and event streams.
  2. Feature pipelines (Spark or Flink) compute features and write them to an offline store (full history, for training) and an online store (latest values in Redis or DynamoDB, for live serving).
  3. An orchestrator (Kubeflow Pipelines or Airflow) runs training pipelines: pull a point-in-time-correct training set, validate the data, then train.
  4. GPU training jobs run on Kubernetes or a managed service, on spot instances where possible, with checkpoints so an interrupted job resumes instead of restarting.
  5. Every run logs parameters, metrics, code commit and data version to experiment tracking (MLflow).
  6. The best model is registered in the model registry, evaluated against the current production model, approved, then deployed to serving, which reads live features from the online store.

Remember it: the feature store's main job is to stop training-serving skew: the model must see the same kind of data live as it saw in training.

Key decisions

DecisionChoiceWhy
Feature storeFeast or a managed oneone definition of each feature for training and serving
Point-in-time joinsyesno "future" data leaks into training
GPU sharingquotas per team, queueing (Kueue/Volcano)fair, high utilization
Costspot + checkpoints60-90% cheaper GPUs for training

What breaks and how it heals

  • Spot GPU reclaimed: resume from the last checkpoint.
  • Bad data upstream: data validation fails the pipeline before training.
  • New model is worse: the evaluation gate keeps the current model in production.

Load and capacity

ItemAssumptionResult
Team50 data scientists64 GPUs (8 nodes × 8), quotas per team
Offline store2 years of features~20 TB
Online store5,000 reads/s from servingp99 under 10 ms
GPU use targetqueueing with Kueue/Volcanokeep GPUs over 70% busy

High availability and disaster recovery

TargetNumberHow it is met
Online features (serving path)99.95%, p99 under 10 msRedis/DynamoDB online store across 3 AZs
Spot GPU reclaimedlose at most 30 minutes of trainingcheckpoint every 30 minutes to object storage, resume automatically
Training platform downRTO 4 hourstraining is batch work; jobs wait and retry
Data lakeno lossS3 versioning + cross-region replication; features can be recomputed from raw data
Model registryRPO 1 hourartifacts in replicated object storage, metadata DB backed up hourly

What interviewers listen for

  • Reproducibility (code, data, environment versions).
  • Training-serving skew and how a feature store solves it.
  • GPU scheduling and cost, and the path from registry to production.