Skip to content

Percentage-based gating against a non-consecutive range of Flipper ID's #519

Answered by jnunemaker
harrylewis asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah. Good questions.

The hash (crc32) is consistent given a particular string and returns an integer. We include the feature name along with the flipper id to ensure that the same actors aren't enabled for every feature at the same time.

Given the same actor id and percentage value, the same result is returned.

As the percentage is increased more are allowed in. If you decrease it then some are removed.

Regardless of what you use for flipper_id and the variability of which ids are actually active you should get very close to the percentage.

The larger the number of actors (and active actors) in your system, the more accurate this will be.

In practice at GitHub, if we enabled for a percen…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@harrylewis
Comment options

@jnunemaker
Comment options

Answer selected by harrylewis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants