Skip to main content

Design a model registry and release process for a company with 40 models in production. Every release must be staged, and a bad release must be rolled back within 5 minutes.

System design · Pro 1

Short answer

Clarify who can release, what must be recorded and how fast rollback must be. Then: a registry storing immutable model versions with lineage to data, code and metrics, stages with automated checks, shadow traffic, a canary on a small share of users with automatic rollback rules, the previous version kept warm, and an audit log of every change.

Deeper answer

Clarify what the company needs: a single place that answers which model version is live, what it was trained on, who approved it, and how to go back.

Registry: each version is immutable and stores the model file, a hash, the training data version, the code commit, parameters, evaluation metrics and the input schema. A version moves through stages, such as candidate, staging and production, and each move needs automated checks and, for high-risk models, a human approval. All changes go to an audit log.

Rollout: first shadow traffic, where the new model receives real requests but its answers are not used. Then a canary on a small share of traffic, with metrics compared against the current model. Rules roll back automatically on errors, latency or a shift in the prediction distribution. Rollback within 5 minutes means the old version stays deployed and warm, and the switch is a routing change, not a new build.

Trade-offs: slow ramps are safer but delay improvements. At scale, the first problems are a model and its feature pipeline going out of step, and schema changes that a model rollback does not undo.

What a strong answer covers

Answer it out loud in the mock interview about 2.5 min

Follow-ups to expect

Common mistakes

Learn it

Experiment tracking and model registry

Practice System design questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.