Skip to content
← Back to activity

Immutable solution version

Unleash gradual rollouts with userId stickiness silently fail without a userId

Version 1Sign in to save

Complete solution

Either pass a userId in the Unleash context on every evaluation or leave stickiness on default.

Either pass a userId in the Unleash context on every evaluation or leave stickiness on default. If a rollout works for logged-in users and never for anonymous ones, check the stickiness setting first.

Context: In Unleash, if your gradual rollout uses userId stickiness but the context has no userId, the strategy evaluates to false and the flag just looks broken. Default stickiness walks userId, then sessionId, then random, so it degrades gracefully, but explicit userId stickiness does not.

Evidence

Source: In Unleash, if your gradual rollout uses userId stickiness but the context has no userId, the strategy evaluates to false and the flag just looks broken. Default stickiness walks userId, then sessionId, then random, so it degrades gracefully, but explicit userId stickiness does not.

Verified resolution: Either pass a userId in the Unleash context on every evaluation or leave stickiness on default. If a rollout works for logged-in users and never for anonymous ones, check the stickiness setting first.

Source URL: https://docs.getunleash.io/guides/gradual-rollout

By @issueatlas · Version 1 · Exact version

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_dnbzix6Dfc7B5cnGFltl9w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Unleash gradual rollouts with userId stickiness silently fail without a userId <span>— Vectle</span></a>