The first six chapters of this track are about mechanisms you control: schema changes, sync pipelines, backfills, verification and the cutover itself. This one is about the part you do not control. A migration of any real platform, whether a database, an RPC framework, a queue or an identity system, eventually becomes a request to a hundred teams whose roadmaps you do not own, whose code you may not be allowed to merge, and whose rational incentive is to help you as little and as late as possible. Most migrations that fail technically fail here first. This is not a people problem to be solved with charisma; it is a coordination system with measurable throughput, queues, incentives and failure modes, and it can be engineered like one.
Start with the ledger from a consumer team's point of view. The migration costs them engineer-days, a deploy they did not plan, some risk of an incident with their name on it, and the attention of whoever reviews the change. The benefit is the old system's decommission: lower cost for the platform, a retired licence, a security posture the CISO wants. Almost none of that lands on their scorecard. For each individual team the expected value of migrating this quarter is negative, and the expected value of migrating next quarter is slightly less negative, because by then someone else will have found the bugs. Every team that defers is acting rationally. Put a hundred of them together and you get the stalled 90% that chapter 01, The Anatomy of a Migration, described from the cost side.
There are exactly three levers on that ledger, and the order in which you pull them matters more than which ones you pull. You can reduce the cost of migrating (tooling, shims, doing the work for them). You can raise the cost of staying (enforcement, show-back pricing, degradation). Or you can remove the choice (a mandate with a date). Enforcement applied before cost reduction is a tax, and taxes produce exception requests, not migrations: every team argues, correctly, that the ask is unreasonable, and the sponsor grants the exceptions because the arguments are good. Cost reduction first, then enforcement, then a mandate that is credible because the path is already cheap. That is the whole strategy; the rest of the chapter is mechanics.
Google made the first lever a rule. Software Engineering at Google describes the churn rule: infrastructure teams that change an interface do the work of moving their internal users, or make the change backwards compatible, rather than pushing the cost onto every consumer. It is an efficiency argument, not generosity: the platform team does the change a hundred times and climbs a learning curve; each consumer does it once at full learning cost, and that learning is thrown away.
Central scales with tooling and removes the priority fight, but the owner reviews a diff they did not write and will be paged for.
Federated puts the work where the knowledge is, and on every team's backlog at position eleven.
Embedded is the only model that finishes the tail, and the only one that does not scale past a few dozen consumers.
The rule stops working when the change is not mechanical. Moving a service from a MySQL cluster with implicit read-after-write guarantees to a sharded store with per-shard transactions requires someone who understands which of the service's invariants depend on cross-row atomicity. That person is on the owning team. So the matrix above is not a choice of one model; it is a sequence. Central for the automatable head, federated for domain-specific but routine changes, embedded for consumers that are both hard and subtle. Programs that pick one model for the whole population end up with the wrong model for two thirds of it.
Architect's note · ask for a bounded budget, not a priority
The capped ask has a failure mode that no single program can see: it is locally reasonable and globally unaffordable. A mid-size engineering organisation typically has several platform migrations in flight at once, each run by a different team, each sizing its ask against the consumer's whole quarter rather than against the slack left after roadmap and keep-the-lights-on work. The consumer team sees the sum.
Each ask is under 5% of the quarter. Together they are 32d against 24d spare: 133% of the slack, before any incident.
The team does not refuse; it defers the program with the weakest sponsor. Which program stalls is decided by org politics, not by value.
No single program owner can see this bar. Only a portfolio view across platform teams can, which is why it is usually missing.
The mechanism that follows is predictable. The consumer cannot do all five, so it does the ones whose sponsors are loudest and quietly defers the rest, and the deferred program sees a stalled caller that looks like a deprioritised owner when it is really a capacity collision. Escalating makes it worse: the escalation wins the slot by displacing some other program's work, and the organisation's total migration throughput is unchanged. The fix sits above any one program: a migration budget declared per team per quarter (an explicit fraction of capacity, set by engineering leadership), and a shared calendar on which platform programs book consumer time against that budget. Programs that cannot get a slot learn it at planning time, not in week nine, and the question "which migration goes first" is answered once, by someone who can compare their carrying costs, instead of twenty times by team leads under pressure.
The break-even for building migration tooling is simple arithmetic, and it is worth doing explicitly because it is usually argued by feel. Let B be the build cost, m the manual effort per consumer, t the effort per consumer with the tool, and a the fraction of consumers the tool can actually handle. The tool pays for itself above N* = B / (a · (m − t)) consumers. With illustrative numbers, eight engineer-weeks to build (320 hours), 16 hours manual, 2 hours assisted and 70% coverage, N* is about 33. Most platform migrations clear that easily. The more interesting consequence is what the tool does to the rest of the program.
Tooling automates the head of the distribution and leaves the tail untouched. Chapter 01 showed that per-consumer effort is heavy-tailed, with most of the effort in a small minority of consumers. The tool takes the 70% that were cheap anyway down to near zero. What remains is the 30% that were already expensive, now with no easy wins left to mix in. The observable consequence is a velocity cliff: consumers migrated per week is excellent for the first months and then falls by an order of magnitude the week the tool's coverage is exhausted. Leadership reads that as lost focus; it is the distribution showing through. Staff for it in advance: tooling engineers early, embedded engineers late.
The cliff is forecastable before the first bulk change merges, and the forecast is the most useful number the program lead can put in front of a sponsor. Take the tracers' measured effort and the codemod's dry-run coverage on the full inventory. With illustrative numbers: 300 consumers, 70% coverage, 90 tail consumers whose tracer-calibrated mean is 4 engineer-weeks (a heavy tail, median nearer 2). That is 360 engineer-weeks of tail work. Four embedded engineers at an honest 70% focus deliver about 2.8 engineer-weeks per week, so the tail takes roughly 130 weeks, two and a half years, on top of the six months the bulk wave took. The linear extrapolation of the bulk wave said the program would be done by week 26. The two forecasts differ by a factor of five, and the difference is entirely the distribution. Three consequences follow. The embedded staffing has to be hired or reassigned a quarter before the cliff, because ramp-up on the new system's internals is itself a quarter. The tail must be shrunk rather than only worked: zombie deletion, capability-gap retirement and ownerless-service deletion (7.5) typically remove more tail consumers per engineer-week than migrating them does. And any sponsor commitment made from the bulk-wave velocity is a commitment the program will break, so it should never be made.
The largest drop is human review, not generation. Better codemods move the top bar; review policy, ownership routing and trusted tests move the third.
Report the last bar. "1,000 PRs opened" is an activity metric; the old system cannot tell the difference between an open PR and no PR.
The funnel above is the one metric the tooling team should own, and its lesson is consistent across programs: the leak is review, not generation. An owner looking at a machine-generated diff to a service they will be paged for has every reason to let it sit. Three things move that stage.
The highest-leverage piece of tooling is usually not a codemod at all. It is a dual-speaking client library: a drop-in dependency that exposes the old interface, talks to whichever backend the phase configuration says (the per-slice phase enum from chapter 01), and reports its caller identity on every call. With it, the per-team work collapses to a dependency bump, and every subsequent step of the ladder, from shadow reads to write flip, becomes a configuration change the platform team makes centrally. The server-side equivalent is a platform-owned proxy tier that every query already passes through; the Stripe: Moving Petabytes Without Downtime case study shows how much of a migration becomes a routing change once that layer exists.
Pitfall · the shim that becomes the platform
A migration program generates at least four progress numbers, and they tell different stories about the same reality. Traffic share (what fraction of requests or bytes go to the new system) moves fastest, because load is concentrated in a few large callers and those are the ones everyone migrates first. Caller count moves more slowly. Remaining effort moves slowest, because it is weighted toward the tail. And the only number that matters to the economics, whether the old system can be turned off, is binary and stays at "no" until the last caller is gone.
The status report will pick the most flattering curve unless you choose for it, and "94% migrated" by traffic at month six is how programs get their staffing cut at month seven. Chapter 01 made the point that coverage is not effort. The operational version is: publish all three curves, and make the headline the decommission-blocking set, the explicit list of callers that would break if the old system went away today, each with an owner, a class from the triage in 7.5 and a date. A sponsor who reviews a percentage will ask for it to go up. A sponsor who reviews a list will ask why a specific name has been on it for six weeks.
The data must come from the old system, not from a project tracker. Chapter 01 built the caller inventory by instrumenting every connection with caller identity. Keep that instrumentation running for the life of the program and derive every metric from it. Two details decide whether the numbers are honest.
≥ 35 d
trailing window if month-end matters
3
conditions for 'done' per caller
1 list
decommission-blocking set, reviewed weekly
0
metrics sourced from the ticket tracker
Goodhart applies: measured teams will route through a proxy that calls the old system under another identity, or copy the data once into a private store, which is a new unmanaged system rather than a migration. Track the set of credentials that can reach the old system; a new one appearing late in the program is almost always a workaround.
Once the cheap path exists, enforcement is what converts "should" into "will". It is best designed as a ladder of escalating mechanisms, each rung giving the consumer a stronger signal and costing you more if it misfires. The design principle is that a signal has value only if it reaches a person with the authority to schedule work. A deprecation warning in a log file that nobody reads is not a rung; it is a way of documenting later that you warned them.
Rungs 1 to 4 are cheap and slow; 5 to 7 are fast and expensive. The mistake is not climbing too high but arriving at 5 with nobody routed at 2: the brownout then pages an on-call engineer who has never heard of the migration, at 02:00, instead of the team lead who ignored three emails.
Runtime signals must be routed by identity. The caller identity you already collect is the routing key: map it to the owning team through the service catalogue, and turn deprecation hits into tickets in that team's own queue, with a weekly digest to the team lead. For HTTP interfaces, the Deprecation header (RFC 9745) and the Sunset header (RFC 8594) carry the deprecation and retirement dates in a machine-readable form that clients and API gateways can alert on. External consumers are the case where header-based signalling matters most, because you have no other channel into their code.
The ratchet stops the target from moving. Chapter 01 showed that net migration velocity is retirement rate minus the rate at which new usage is added. The ratchet drives the second term to zero. Commit an allowlist of every existing use of the old interface, keyed by caller and call site, and fail CI on any change that adds an entry. Removals shrink the file automatically. It costs almost nothing, breaks no running code, and is the rung most programs skip. Install it before the first consumer migrates.
Show-back makes staying visible to the budget owner. Attribute the old system's running cost to the remaining callers in proportion to their use. As callers leave, the fixed cost of the old fleet is spread over fewer of them, so each remaining team's line rises without anyone raising a price. It is honest, it lands in a document someone with budget authority reads, and it steepens exactly as the tail thins.
The published date is a currency, and every slip devalues it. Consumer teams do not read a deadline as a fact; they read it as a claim whose credibility they estimate from the organisation's history. If the last platform program moved its date twice, the rational estimate of this one is "later than stated", and the rational response is to schedule the work after the stated date. That makes the slip self-fulfilling and raises the discount on the next program's date. Three rules follow. Publish the hard date only after the tooling exists and the tracers have calibrated the tail, so it is set from a forecast rather than from a wish; set it at a high-percentile estimate (P80 or so) rather than the median, because a date you meet at P80 buys more compliance on the next program than an ambitious one you miss. Never move the global date for a single consumer: grant that consumer a register entry with an expiry (7.5) and keep the date fixed for everyone else. And if the global date must move, move it once, by a margin you are confident in, with the reason stated. Two small slips cost more credibility than one large one.
Brownouts are where most programs make their expensive mistake. A scheduled brownout makes the old path fail for a window so that anything still using it breaks visibly while it can still be restored. GitHub, for example, has run announced brownouts ahead of removing deprecated authentication and protocol paths. The problem is detection. A caller that runs every T minutes, with random phase, calls during a window of length d with probability min(1, d/T).
A 15-minute brownout finds every interactive service and a quarter of your hourly crons. A 24-hour brownout finds 3% of monthly jobs. The callers that clock-based brownouts miss are precisely the batch and reporting consumers that the inventory was weakest on, so the brownout programme reports success while the dangerous tail stays invisible. Two changes fix it. Switch from clock-based to call-count-based brownouts: fail the first call of each caller identity per day (or per run) with a clear, distinctive error, and let subsequent calls succeed. Every caller that runs at all is detected, and the damage to each is bounded to one failed run that a manual re-run clears, because only the first call of the day fails. And make the failure non-retryable and unambiguous. A brownout returned as a 503 is absorbed by the client's retry policy and never reaches a human; worse, for a periodic caller the automatic retry is the second call, which succeeds, so the brownout detects nothing. Return a status that clients treat as permanent (410 Gone for HTTP, a distinct application error code elsewhere) with a message naming the migration and the owner-facing documentation link, and log every brownout hit against the caller identity so the detection is yours even when their alerting is absent.
Pitfall · the scream test is asymmetric
Late in every program the blocking set is a few dozen callers, each stuck for a different reason, and a steering meeting that treats them all as a priority problem. Most are not, and pressure on a consumer that pressure cannot unstick produces an exception request.
Two properties of the tail change how it should be worked. First, the decommission date is the maximum of the remaining callers' completion dates, not the sum of their efforts. The tail is a critical-path problem, so order it by lead time, not by size: a two-day change for a partner with a quarterly release train and a 90-day contractual notice clause finishes later than a three-week rewrite of an internal service, and must start first. Second, the savings are all-or-nothing. Retiring 19 of 20 blockers saves almost nothing, because the fixed cost of the fleet, the on-call rotation and the compliance scope remain. The value of unsticking any single tail caller is therefore the full carrying cost multiplied by the delay it would otherwise cause. With illustrative numbers, an old fleet costing $50k a month and a straggler that would slip decommission by a quarter is a $150k problem; an embedded engineer-month to fix it, which looks absurd as a per-consumer cost, is a several-fold return. This is the arithmetic that justifies staffing the tail with your best engineers rather than whoever is left.
Total effort is under 20 engineer-weeks; the decommission date is set by two calendar waits that consume no effort at all. Worked in size order, the capability gap and the rewrite go first, the four-week regulated prep is queued until week 19, misses the week-22 window, and the next window is week 48. At $50k/month of carrying cost, six extra months make that ordering choice worth roughly $300k.
The practical consequence is that the tail needs a schedule, not a backlog. For each blocker record two numbers: the effort, and the earliest date it can possibly finish if started today, which includes notice periods, change windows, the claim window and any capability build it depends on. Sort by the second number. Anything whose earliest finish is already past the target decommission date is a date problem, not an effort problem, and no amount of staffing fixes it; either the date moves or the blocker is removed another way (a facade, a contract renegotiation, a deleted feature). A backlog sorted by effort or by consumer size hides exactly those items, because they look small.
In most programs the tail is dominated by the first three rows. Only the second responds to pressure; applying pressure to the other five produces exceptions, not migrations.
Ownerless consumers are the most common class in large organisations and the one nobody wants to name. The service exists, it calls the old system, and the team that built it was reorganised away. The tactic is an explicit adopt-or-delete notice: publish the list, give a claim window (30 days is workable), and state that on day 31 the platform team takes ownership and will either migrate or delete the service. Never migrate an ownerless service and leave it ownerless; you have then built a new dependency nobody will maintain.
Deprioritised owners are the one class pressure works on, and the pressure must be specific to move anything: the service name, the capped ask from 7.1, its current show-back line and the date its first brownout starts, sent to the lowest manager who owns both that team's roadmap and its budget. That is usually a director, rarely a VP. Escalate one team at a time. A blanket escalation covering twenty teams produces one meeting, a general exhortation and twenty exception requests.
Capability gaps need an explicit decision rule, because they are where the new system's roadmap gets hijacked. The consumer needs something the new system does not do: a secondary index on a field nobody else queries, a cross-shard transaction, a bulk export format. The options are to build the capability in the new system, to put a narrow facade in front of it that emulates the capability for this caller, or to retire the feature that needs it. Count the consumers that need it. If three or more do, it is a real requirement and belongs on the new system's roadmap with a date. If one does, the default should be to change the consumer, not the platform; a platform feature built for a single consumer carries its maintenance cost for every consumer forever. A gap nobody is working on is a blocker with a respectable excuse.
External consumers have the longest lead times and the least controllable ones: partners with quarterly release cycles, enterprise customers with change-control boards, and mobile apps whose old versions stay installed for years. Their deadlines are set by contract and notice periods, not by your plan, so they should be identified in the first month and started first, even though they look like tail work. For mobile, the lever is a minimum supported version.
Zombies are the cheapest wins in the tail and the most often missed, because the inventory shows a live caller with a healthy call rate. The test is on the caller's output, not its input: trace what it writes (tables, topics, files, reports) and check whether anything read those outputs over the same trailing window, using table access statistics, consumer-group offsets and object-store access logs. Zero downstream reads plus an owner who cannot name a user is enough to stop the caller behind a fast restore path. Migrating code whose output nobody consumes is pure waste, and a surprising fraction of the tail, often the batch jobs, turns out to be exactly that.
Frozen and regulated consumers (certified systems, vendor-managed appliances, anything with two change windows a year) respond only to calendars. Book their window the day you find them and deliver the change as their vendor would: packaged, tested, with rollback steps for their operators. Missing one window costs six months.
Architect's note · the exception register has expiry dates
The platform team's capacity to help consumers (answer questions, review hard diffs, debug the new system's behaviour under an unfamiliar workload) is a queue, and it behaves like one. The instinct to "start everyone at once to maximise parallelism" runs straight into queueing theory. Kingman's approximation for waiting time in a single-server queue is roughly W ≈ (ρ / (1 − ρ)) · ((c²ₐ + c²ₛ) / 2) · S, where ρ is utilisation, S is mean service time, and the c² terms are the squared coefficients of variation of arrivals and service. Migration help requests are heavy-tailed, since most questions take ten minutes and a few take a week, so the service-variability term is large. A mix like that easily has a squared coefficient of variation above 4, so the pink curve below is the optimistic case.
At 90% utilisation with c² of 4, a consumer waits about 22 mean service-times for help. A team of several engineers is a multi-server queue, which lowers the curve but keeps the knee: waits still climb steeply past roughly 80% utilisation, and in practice the hard questions route to the one or two people who know the new system's internals, which turns a multi-server queue back into a single-server one. At half a day per interaction, that is two weeks blocked, and blocked teams do not wait gracefully: they build workarounds, which become the tail. Keep support load around 55 to 70% of capacity; since capacity is fixed, you control arrivals, which means waves.
Little's law gives the second argument for waves. The number of consumers in flight equals throughput times the time each spends in flight. Throughput is capped by the platform team. So admitting more consumers at once does not increase throughput; it only increases how long each one spends in the half-migrated state, which is the state where dual paths, fallback code and divergence risk live. Limiting work in progress shortens every individual migration without slowing the program. A sensible wave plan follows the distribution: a first wave of two or three hard tracers (chapter 01) to find the capability gaps early, a second wave that pushes the automatable head through the tooling in bulk, since those consumers need almost no support, and then small waves through the tail with embedded engineers.
ρ 0.55–0.7
target support utilisation
≈ 22×
wait at ρ 0.9, heavy-tailed (Kingman)
L = λW
WIP ↑ ⇒ time half-migrated ↑
2–3
hard tracers before the bulk wave
Two structural choices determine whether the program survives its own length. First, it needs a single-threaded owner, in Amazon's phrase: one leader whose only job is this migration, with the authority to spend the platform team's capacity and escalate to the sponsor. Second, the program will outlive the tenure of several people on it. Its state must therefore live in systems rather than heads: the phase enum per slice, the caller inventory and its derived metrics, the blocking set, the exception register and the triage classification. If a new lead cannot reconstruct where the program is from those artefacts in a day, the handover will cost a quarter.
Decision rule · what the sponsor reviews
Design review · questions a principal asks of a migration program
The blocking set reaching zero is not the end. It is the beginning of decommission, which is itself a small migration with its own ladder, and the place where programs most often declare victory too early. The old system is still running, a senior engineer suggests keeping it read-only "just in case", and eighteen months later it is still there, fully costed, unpatched, and reachable. The zombie old system is outcome B with better press. Beyond the fleet cost, it holds credentials, stays in compliance scope, and, as Knight Capital illustrated in chapter 01, reachable retired code is a loaded path.
stage 1
writes blocked
old store read-only
restore: seconds · flip a flag
dwell: 2–4 wk
stage 2
credentials revoked
no identity can connect
restore: minutes · re-issue
dwell: 2 wk
stage 3
compute stopped
instances off, storage kept
restore: hours · start + warm
dwell: 30 d
stage 4
snapshot only
final verified snapshot in cold storage
restore: days · restore + replay
dwell: retention period
stage 5
hidden dependents cut
backups, DR runbooks, DNS, alerts, IAM, billing tags
restore: n/a
dwell: same week
stage 6
data deleted
per retention and legal hold
restore: never
dwell: the one real door
Each stage is a scream test with a bounded restore time. Stage 3 is where the quarterly job surfaces; a restore measured in hours is an annoyance, not an incident. Stage 5 is the one teams forget, and the one that produces a 03:00 page from a backup job pointed at a host that no longer exists.
The staircase turns decommission into a series of scream tests with bounded restore time. Each stage is reversible at a cost that grows by roughly an order of magnitude from the one before, and each dwell is long enough for the slowest caller class you know about to surface. A monthly job that nobody found shows up at stage 3, when restoring means starting instances and warming caches, which costs hours rather than a data recovery. The final snapshot at stage 4 should be verified by restore, not just taken, and its retention period should come from your legal and regulatory obligations rather than from comfort. If the data is under retention, an archive in a queryable format with a catalogue entry satisfies it far more cheaply than a running database.
Stage 5 is the one checklists miss, because the old system has dependents that are not callers. Backup jobs, DR runbooks, hard-coded DNS names, IAM roles and firewall rules for addresses that will be recycled, monitors whose silence will read as health, and compliance evidence that cites the old system as a control. Search every other system's configuration for the old system's names, addresses and identities, and remove each reference the week the compute goes away. Anything that points at a decommissioned hostname is a latent incident, and anything that grants access to a recycled address is a latent security incident.
Then close the loop: record the actual per-consumer effort distribution, the tracer estimate against the real total, the carrying cost against plan, and how long each enforcement rung took to move the blocking set. That is the only calibration data the next program will have. Celebrate the deletion as visibly as a launch; organisations fund what they notice.
Pitfall · the read-only old system
Track wrap-up