Skip to content
GenAI Learn/LLMOps & Release Engineering
Browsing as a guest. Sign in to save your progress and earn XP as you complete chapters.

Registries: Versions, Aliases and Rollback

4 min readChapter 2 of 3

You'll learn to

  • -Describe a registry as immutable numbered versions plus movable aliases
  • -Explain how an alias like champion turns a promotion or a rollback into one small change
  • -Say what lineage records and why it matters when something goes wrong
  • -Name the limits: caching of aliases and who may move one

Tip: the highlighter is on - just select any text below to mark it. Use the highlighter button up top to change color or turn it off. Highlights are saved on this device only. Log in to save them to your account instead.

Once you have a manifest, you need a place to keep releases and a safe way to say which one is live. That place is a registry. The idea is the same for a trained model, a tuned adapter or a prompt: each saved item gets a name and a version number, the version never changes after it is saved, and a separate label says which version is serving.

An Analogy: Shelf Numbers and the Staff Picks Sign

A library gives every book a fixed shelf number. Separately, a small sign says 'Staff pick this month' and points at one of those books. When the pick changes, the library moves the sign. No book is touched, and moving the sign back takes seconds. The shelf numbers are versions and the sign is an alias.

What a Registry Holds

  • -A name for the thing, such as support-bot.
  • -Numbered versions. Version 2 is saved once and never edited. A fix is a new version.
  • -Aliases such as champion for the version serving traffic and challenger for the one being tried.
  • -Lineage: what produced the version, such as the prompt, the data, the code and the evaluation results it passed.
  • -Tags and notes, and an audit log of who registered and who moved which alias.

The MLflow documentation describes the same structure: a registered model has a unique name and holds versions, aliases, tags and metadata, and you can point an alias such as champion at version 1 and then refer to that version as MyModel@champion. The code below is a tiny registry that does just that, then promotes, then rolls back.

Press Run: register two versions, promote one and roll back, all without a deploy

Serving starts on version 1 through the champion alias. Promoting is one change: champion now points at version 2. Rolling back is the same change in the other direction, and the application resolves champion to version 1 again. Nothing was rebuilt or redeployed. The log at the bottom records every registration and every alias move, with the old and new version, which is the audit trail you will want after an incident. Version 2 also carries its lineage, the evaluation result it earned before it was ever promoted.

Where Registries Bite

  • -Caching: if every server caches what the alias points to for five minutes, a rollback takes up to five minutes to reach everyone. Choose the time to live on purpose.
  • -Permissions: moving an alias is a production change. Restrict who may do it and require the evaluation gate to pass first.
  • -Immutability: if a version can be edited, an old rollback target can quietly change. Treat saved versions as read only.
  • -Dependencies: a prompt version may only work with a certain model version. Record that pairing in the manifest, not in someone's head.

The same structure works for prompts. A prompt kept as a versioned file with a champion alias can be reviewed, tested in CI, promoted and rolled back, instead of being edited live in a dashboard.

Interview Signal is part of Pro

See a real weak answer next to a real strong one for this exact topic.

Quiz is part of Pro

Test what you just read with a short quiz, and bank the XP.

Discussion0

Join the Discussion

Sign in to leave comments, reply to others, or like insights.

Sign In to ScaleDojo

No comments yet. Be the first to start the thread!