ML Systems Lab Open interactive version →
Advanced 25 min read ML platformMLOpsfeature storeinfrastructure

ML Platform Design

Feature store, training infra, model registry, serving, observability

Two teams build separate models and both need "user purchase history." One computes it in Spark, the other in Python, with slightly different null-handling and timezone logic. Their models already see *different* values for the "same" feature at training time — and at serving time the real-time versions drift further apart. A third team starts building the same feature for a third model. Three teams, three subtly different implementations, each debugging its own copy of one problem.


What a platform actually fixes. It makes the *feature* the shared thing: computed once, registered centrally, consumed by any model. Training pulls point-in-time-correct history; serving pulls the identical computation at low latency. One definition, one source of truth, no three-way skew. A model registry with versioning and lineage turns rollback from a manual artifact hunt into one API call — it connects a deployed model to its training run, data, and metrics.


But it only pays off at scale. For one model and two data scientists, hand-rolled infra is genuinely simpler — build the platform then and you've built abstraction with no users. For ten models across teams, the platform amortizes fast and the hand-rolled path becomes a coordination disaster. The skill is knowing which side of that line you're on; the common failure is building platform infrastructure before any model is in production.

Key points

Takeaway

An ML platform is a coordination technology, not a modeling one: the feature store kills training-serving skew by making each feature a single point-in-time-correct definition, and the registry makes rollback one call — but both only amortize past roughly 5–10 models, so building them for the first model is premature abstraction.

Recap

Check your understanding

Q1. Select the two correct statements about whether a 3-data-scientist startup shipping its first model should build a full ML platform now.

Q2. What specific failure does point-in-time correctness in a feature store prevent?

Q3. A production model's quality silently dropped last night. With a model registry + lineage, what does the response look like versus without one?

Try it interactively

ML Systems Lab is a free interview-prep platform for ML engineers — work through the full interactive module, quizzes, and drills.

Open ML Systems Lab →