System Design · Middle · Question 33 of 75
How do you gradually enable a new feature for 10% of users?
- ✓Correct answer: A flag with rollout by user id hash
- 2A separate deploy for every tenth user
- 3
Math.random() < 0.1on every page load
Explanation
A hash of the user id gives stable group membership across sessions and devices. Math.random() would toggle the feature on every load. Flags are evaluated on the server or at the edge to avoid UI flicker.