System Design · Middle · Question 33 of 75

How do you gradually enable a new feature for 10% of users?

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.

Further reading

Problem with a question

System Design · Middle · question 33

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz