skip to content

Store Rollout & Upgrades

A store release goes out in phases that can be halted, but a binary already installed cannot be rolled back. Interviewers probe roll-forward fixes, minimum-version gates and upgrade prompts.

on this pageshow

explore

questions

5

In a smart-home security app, why can't a bad store release be rolled back like a server deploy, and what does halting it do?

level: juniorimportance: must knowfreq 55%

answer

  1. who owns the machine it runs on
  2. the store only moves versions forward
  3. a sample of automatic updates, not installs
  4. halting stops new installs, not old ones
  5. the fix is version N+1

basics

~20 s

An installed app version stays on every phone that received it; no store pushes the previous build back. Halting a staged release only stops more phones getting it, so the fix is a newer version rolled forward.

solid answer

~50 s

A server team owns the machines, so a rollback is pointing traffic back at the previous build. An app version lives on phones the users own, replaced only through the store's update mechanism, which moves forward to a higher version and has no path to reinstall an older one. A staged release limits who gets the update next: on one store it reaches a random sample of users with automatic updates over 7 days and can be paused, though anyone can still download it by hand; on the other a team-chosen percentage receives it and halting stops new users receiving it while those who have it remain on it. So halting caps the damage. Households already on the bad version keep it until a fixed version, with a higher number and through review again, reaches them.

go deeper

for a junior

Recall the two facts: an installed app version stays on the phone, and halting a staged release only stops it spreading. The fix is always a newer version.

for a middle

Explain how the two stores' staged releases differ: a sample of automatic updates that can be paused while manual downloads continue, versus a percentage that can be halted with existing users staying on it.

for a senior

Show that you plan for no rollback before release: halt early because it is cheap, keep a server-side workaround and built-in switches ready, and expect review to delay the roll-forward.

for a principal

Frame the policy for many teams: every release must be survivable without rollback, which drives staged releases by default, switches around risky paths and a hotfix path whose review delay is planned for.

## Why the question matters A smart-home security app pairs door locks, arms alarm panels and shows cameras. Suppose version 6.2 changes how a new lock is paired and the new flow fails for some households. A backend engineer's reflex is "roll it back". On a phone that reflex is wrong, and an interviewer asks this question to see whether the candidate knows **why**, and what the store's staged release can and cannot do instead. ## A server deploy versus an installed binary | | Server deploy | Installed app version | |---|---|---| | Who owns where it runs | The team | Each user, on their own phone | | How a version is replaced | The team redeploys | The store's update mechanism, when the phone takes the update | | Going back | Route traffic to the previous build, in minutes | No store path to reinstall an older build | | How fast a fix lands | As fast as the pipeline | Store review, then each phone updating | | Old versions still running | None after the rollout | Every version anyone has not updated | Three things make the binary unrecallable: - **The team has no channel to the installed copy.** It cannot uninstall or replace the app; only the store's update mechanism can, and only towards a newer version. - **Updates move forward.** In common practice a store accepts an update only with a higher version number, so "the old build" can come back only as a new version that contains the old code. - **The new version may already have changed local state.** If 6.2 migrated the on-device database, even the old code shipped as 6.3 must be able to read what 6.2 wrote (the question on an older build opening a database a newer one migrated covers that half). ## What a staged release controls A **staged release** (a phased or staged rollout) hands the new version to part of the fleet first, so a defect reaches fewer homes before anyone notices. The two stores behave differently, and an answer should not teach one as the rule: - **On one store**, a phased release reaches a random sample of users who have **automatic updates** on, over 7 days (1 %, 2 %, 5 %, 10 %, 20 %, 50 %, 100 %). The team can pause it for up to 30 days in total and can release to everyone at any time. Anyone can still **download the version by hand** at any time, so a pause slows the spread without stopping it. - **On the other store**, the team sets the percentage of users who receive the update, chosen at random, and raises it by hand. **Halting** stops any additional users receiving the version; users who already received it **remain on that version**. Resuming later reaches the same set of users. The neutral summary: **a staged release limits who gets the update next; it never takes it back.** ## What halting cannot undo 1. Every phone that already installed 6.2 keeps it, and keeps running it. 2. On the store whose pause only holds back automatic updates, people who open the store page can still install 6.2 by hand. 3. Any local data 6.2 migrated stays migrated. 4. Phones with automatic updates off move only when their owners update by hand, so the staged release says nothing about when they will move. ## The only way out is forward The remedy for households on 6.2 is **6.3**: the fix (or a revert of the pairing change), with a higher version number, through store review again, and usually staged again. While it waits, the team can only use what 6.2 already contains or what the server controls: - a **server-side workaround**, such as keeping the previous pairing flow available for that version; - a **switch that 6.2 already checks**, if one was built in before release (switches themselves belong to the question on kill switches); - an **in-app notice** or support message telling affected households that existing locks still work and pairing a new one should wait. Store review time is outside the team's control, so a sensible release plan assumes the fix will take days, not minutes, to reach most of the affected phones. ## What a good answer sounds like A junior answer names the two facts: an installed version cannot be pulled back, and halting only stops it spreading. A stronger answer adds that the two stores' controls differ (automatic-update sample versus a halted percentage), that halting is cheap so it should happen early, and that every hour a bad release keeps running adds homes that can only be fixed by rolling forward.

  • If halting cannot help households already on the bad version, why halt at all?
    Because the affected population is still growing. Every hour the release runs, more phones take the version, and each of them can only be repaired by a roll-forward fix. Halting is cheap, and on one store a resumed rollout reaches the same set of users, so halting while you investigate costs little and caps the number of homes waiting on the fix.
  • Can the team ship the previous code again to undo the release?
    Yes, but only as a new version: the old code rebuilt with a higher version number, submitted through review and rolled out like any update. It is still a roll-forward. It must also cope with anything the bad version changed on the phone, such as a migrated local database, which the old code may not understand.

A publisher who finds an error in a new edition can stop the printing press and stop shipping to shops, but copies already sold stay on readers' shelves; the only fix is a corrected edition that readers choose to pick up.

  • Halting the staged release removes the bad version from phones that installed it.
  • We can roll the app back to the previous version like a server deploy.
  • A paused phased release stops anyone from installing that version.
  • Resuming the rollout will replace the broken copies already installed.
  • The store reinstalls the last good build when we unpublish the update.
open as a page

Mid staged release, a smart-home security app's update makes door-lock pairing fail for some users; how do you decide to halt and ship the fix?

level: middleimportance: must knowfreq 48%

basics

~20 s

Halt on a rule agreed before release: pairing failures by app version on the server, the crash signal, support contacts. Ship the smallest fix as a new version from the release branch, staged again; native code cannot go over the air.

open as a page

In a smart-home security app installed on phones for years, when should a minimum-version gate hard-block old builds rather than show a soft update prompt?

level: middleimportance: must knowfreq 50%

basics

~20 s

Hard-block only when running the old build causes harm, such as a flawed pairing protocol; use a dismissible soft prompt for everything else. Both checks must already be in the binary, using cached thresholds and never blocking on a failed fetch.

open as a page

A smart-home security app must hard-block builds with a flawed lock-pairing protocol; what must the blocked app still let a homeowner do, and why?

level: seniorimportance: should knowfreq 42%

basics

~20 s

A blocked security app must still show and handle the alarm, reach the emergency contact, send any unsent data, and lead to the update. The real protection is the server refusing the flawed protocol; the client block only explains it.

open as a page

For a smart-home security app, how do you set a minimum-version gate's threshold from the fleet's adoption curve, and what does supporting the long tail cost?

level: seniorimportance: nice to knowfreq 38%

basics

~20 s

A hard threshold blocks exactly the share of active installs the adoption curve shows below it. Set soft thresholds soon after a release and hard ones only once the curve flattens, weighed against the cost of keeping old builds working.

open as a page