Cross-cutting concerns (the O in RADIO) · senior
Monitoring, feature flags and safe rollouts
Make the design measurable with real-user Web Vitals, error tracking with source maps and business funnel events. Ship behind feature flags with staged rollouts, A/B tests that log exposure, and a kill switch.
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
- RUM: collect LCP, INP and CLS per route, device class and country; watch p75; alert on regressions after each release.
- Errors: window.onerror and unhandledrejection, error boundaries per widget, source maps uploaded privately, grouping by release, sampling.
- Business metrics: funnel events (search → product → add to cart → pay), success rate per payment method, time-to-first-token for AI chat.
- Send telemetry with navigator.sendBeacon or fetch({ keepalive: true }) on visibilitychange/pagehide; batch and sample. Never rely on unload.
- Flag types (Martin Fowler): release (short-lived), experiment (A/B), ops (kill switch), permissioning (long-lived). Keep the toggle point separate from the toggle router; remove flags after launch (flag debt).
- A/B tests: deterministic bucketing (hash of experiment + user id) on the server or edge so the page doesn't flicker; log exposure when the variant actually renders; watch guardrail metrics (errors, latency).
- Rollouts: 1% → 10% → 50% → 100% with dashboards and automatic rollback; on mobile, staged store rollouts plus OTA updates for JavaScript with runtime-version checks.
The red pen
Common traps: mistake → fix
Mistake: console.log is monitoring
Fix: you need aggregated, sampled data from real users.
Mistake: Assign A/B variants with Math.random() after render
Fix: flicker and a different variant on every visit.
Mistake: Log assignment instead of exposure
Fix: users who never saw the feature dilute the result.
Mistake: Flags are free
Fix: each one doubles test paths; give each flag an owner and an expiry date.
Easy to hard
Questions interviewers ask, easy to hard
- How would you know in production that this feature broke?
- How do you run an A/B test on the checkout button without flicker?
- Your release made INP worse for 10% of users. What happens next?
- How do you stop feature flags from piling up?
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.