Running a frontend incident · core
Rollbacks and feature flags in the browser
A rollback or a flag stops damage fast, but browsers cache flag values and saved data. You must know how flags are read on the client and on the server, and what the safe default is.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Turn the flag off first (the kill switch) and confirm with real traffic, not only the flag dashboard.
- Clients cache flag values: local storage, a long polling interval, a cached server-rendered page, CDN-cached HTML that contains the variant, or a mobile app that reads flags only on launch. Check how flags are read on both sides.
- Find what changed from the flag audit log and history: rule order (a "serve true to everyone" default above the percentage rule), an environment mix-up, or a config-as-code change.
- Log the variant with each order. Then you can list affected users, fix prices or refund the difference.
- If the flag service is down, the SDK default must be the safe value (the old checkout), with a cached copy of the last values. Rendering must never wait on flags.
- Control the change: review and approval for production flag changes, percentage rollouts with sticky bucketing by user id, unfinished features off by default, and cleanup of old flags.
- A rollback reverts code, not what the new code saved in the browser. After rollback, old code may fail on new saved data.
- Tell product, support (coupon complaints) and finance when money was affected.
The red pen
Common traps: mistake → fix
Mistake: Flag off means everyone sees the old page at once
Fix: cached values and CDN HTML can keep the new variant for a long time.
Mistake: The flag dashboard is the truth
Fix: check what real users get.
Mistake: A flag service outage is rare, so ignore it
Fix: choose a safe default and cache values.
Easy to hard
Questions interviewers ask, easy to hard
- A half-built feature reached all users through a flag. What do you do?
- You turned the flag off but some users still see the new page. Why?
- How do you make flag changes safer in production?
- What should the SDK do when the flag service is down?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.