W4: A New Release, and Four in Ten Users Drop Off
Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.
W4: A New Release, and Four in Ten Users Drop Off
| Category | Releasing software |
|---|
Scenario
Interviewer A new version of your service was released. Within three minutes, 40% of users were disconnected. Processor, memory and network graphs look normal. What happened?
In plain words
Something went wrong straight after a release, but only for some users, and the usual graphs show nothing. The question asks how you would work out which users are affected and why.
The interviewer wants a first question that cuts the problem in half, and a way to make it stop for users before the cause is fully known.
Words you need
| Word | What it means |
|---|---|
| Release | Putting a new version of the software into service. |
| Rollback | Going back to the previous version because the new one is causing harm. |
| Feature flag | A switch that turns a piece of new behaviour on or off without a release. |
| Region | A group of data centres in one part of the world. |
| Canary | Giving a new version to a small share of users first, to see whether it is safe. |
Key Insight
When trouble starts within minutes of a release, the release is the first suspect. When it affects some users and not others, find what the affected ones have in common. The most useful first question is where they are.
Stopping the harm comes before explaining it. Going back to the old version is usually the fastest way.
Explanation and Investigation
1. Ask who the 40% are
Are they all in one region, or spread across several? One region points to that region's servers, its load balancer, or a release that has reached there first.
Several regions point to something shared by all: a setting pushed everywhere, the CDN, or how users are directed to a region.
Also ask whether they share a version of the app or a kind of device. A new server that no longer understands old apps cuts off exactly the users who have not updated.
2. Why the graphs look normal
Processor, memory and network graphs show whether machines are busy. They do not show whether the answers are right. A server can cheerfully refuse every request from an old app and use almost no processor doing it.
Look at error counts and logs on the new version instead.
kubectl rollout status deployment/web # how far the release has got
kubectl logs deployment/web --since=10m | grep -ci error # how many error lines in ten minutes3. Stop the harm
kubectl rollout undo deployment/web # go back to the previous versionIf the new behaviour sits behind a feature flag, switching it off is faster still. Then confirm that users are reconnecting before you do anything else.
4. Afterwards
Find the cause on a test system, not on users. Then change the release process: a canary that stops the release by itself when disconnections rise would have limited this to a few users.
Model Answer
Interview-ready answer It began within minutes of a release, so the release is my first suspect. I would ask whether the affected users are in one region or many, and whether they share an app version. One region points to that region's rollout or load balancer. Many regions point to a shared setting or routing. The graphs look normal because the servers are running but answering wrongly. I would roll back or switch off the new feature flag, confirm users return, and then add a canary step so a bad release stops itself.
Sample Candidate Answer and Evaluation
“Is it one region or several? If one, I would check that region's load balancer and how it sends requests to the servers. If several, I would check how users are directed to regions.”
| What to look at | Assessment |
|---|---|
| What is missing | The first question is the right one. It then leaves out the release itself: nothing about going back to the old version, a feature flag, or preventing a repeat. |
| A better answer | Keep the opening question. Then say you would roll back to stop the harm, and add a canary step afterwards. |
| Level, on the 1 to 4 scale | 3 of 4 (Solid): splits the problem well but never acts on the release |