System design · 15 of 16
Mid
Senior
- Monitoring and alerting for 100 servicesSRE · Platform · DevOps
- Secrets management platformDevOps · Platform · SRE
- Multi-region active-active serviceSRE · Platform
- Distributed job scheduler (cron at scale)SRE · Platform
- Internal developer platform (IDP)Platform
- Multi-tenant Kubernetes platformPlatform · DevOps · SRE
- GitOps for a fleet of 100 clustersPlatform · DevOps
- ML training platform and feature storeMLOps · Platform
- LLM inference platformMLOps · Platform · SRE
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 →
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
- Raw data lands in a data lake (S3) and event streams.
- 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).
- An orchestrator (Kubeflow Pipelines or Airflow) runs training pipelines: pull a point-in-time-correct training set, validate the data, then train.
- 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.
- Every run logs parameters, metrics, code commit and data version to experiment tracking (MLflow).
- 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
| Decision | Choice | Why |
|---|---|---|
| Feature store | Feast or a managed one | one definition of each feature for training and serving |
| Point-in-time joins | yes | no "future" data leaks into training |
| GPU sharing | quotas per team, queueing (Kueue/Volcano) | fair, high utilization |
| Cost | spot + checkpoints | 60-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
| Item | Assumption | Result |
|---|---|---|
| Team | 50 data scientists | 64 GPUs (8 nodes × 8), quotas per team |
| Offline store | 2 years of features | ~20 TB |
| Online store | 5,000 reads/s from serving | p99 under 10 ms |
| GPU use target | queueing with Kueue/Volcano | keep GPUs over 70% busy |
High availability and disaster recovery
| Target | Number | How it is met |
|---|---|---|
| Online features (serving path) | 99.95%, p99 under 10 ms | Redis/DynamoDB online store across 3 AZs |
| Spot GPU reclaimed | lose at most 30 minutes of training | checkpoint every 30 minutes to object storage, resume automatically |
| Training platform down | RTO 4 hours | training is batch work; jobs wait and retry |
| Data lake | no loss | S3 versioning + cross-region replication; features can be recomputed from raw data |
| Model registry | RPO 1 hour | artifacts 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.