Lesson 6 of 9 · 24m
Measuring Adoption and Running Migration Waves
Instrument version usage, identify integration owners, segment migration cohorts, and drive adoption with evidence instead of wishful deadlines.
A sunset date without adoption telemetry is just a threat. You need to know who still uses the old behavior, what operations they depend on, whether they have tried the new version, and which customers will be hurt if enforcement starts. Migration is operational work: measurement, segmentation, outreach, verification, and repeat.
Instrument the version decision
Every request should emit a small, consistent telemetry record:
{"api":"invoices","route_family":"invoice_detail","version":"v1","client_id":"cli_8f29","sdk":"acme-python/1.9.2","status":200,"compatibility_shim":true}Do not build this from raw path parsing alone. Version can arrive through headers, media types, hostnames, or routing rewrites. Record the effective negotiated version after normalization. Store client identity separately from payload data, and respect privacy constraints.
Measure active integrations, not request volume
One cron job can dwarf the traffic of a thousand real customers. Track distinct active credentials, integration owners, user agents, SDK versions, operations used, and last-seen timestamps:
SELECT client_id, count(*) AS requests, max(created_at) AS last_seen
FROM api_request_facts
WHERE api = 'invoices' AND version = 'v1'
AND created_at >= now() - interval '30 days'
GROUP BY client_id ORDER BY last_seen DESC;Segment migration waves
Do not treat all stragglers as one bucket. A practical segmentation is:
already migrated no v1 use in trailing 30 days
hybrid uses v2 for some routes, v1 for others
untouched no observed v2 use
unsupported SDK old SDK cannot express v2 behavior
contracted exception legal or product-approved extended window
unknown owner usage cannot be attributed; investigate before enforcementEach segment gets a different action. Hybrid users need route-specific gaps. Unsupported SDK users need upgrade instructions. Unknown-owner traffic is a discovery problem, not a migration failure.
Create a migration dashboard that drives action
A good dashboard answers: percentage of traffic migrated, percentage of active clients migrated, operations blocking migration, newest SDK adoption, upcoming enforcement milestones, and exceptions. Vanity percentages hide concentrated risk; show both traffic-weighted and client-weighted numbers.
v1 share of requests 8.4%
active integrations still on v1 31 of 412
unmigrated critical operations invoice_export, webhook_register
clients with no owner mapping 4
exceptions approved 2 until 2026-06-30Run waves, not one heroic cutoff
Start with internal consumers and cooperative design partners. Fix the migration guide based on their friction, then move to low-risk self-service users, then enterprise or high-touch customers. Every wave should produce concrete improvements: missing mappings, SDK bugs, confusing errors, undocumented behavioral differences.
Field notes
- Last-seen dates lie when clients are episodic; annual jobs need longer lookback windows.
- Counting requests by IP is useless once customers rotate egress or use shared platforms.
- Make "no v1 use for N days" an explicit graduation criterion before declaring a client migrated.
Was this lesson helpful?