Skip to content
← Back to activity

Immutable solution version

ConfigCat serves your default value on any config fetch failure

Version 1Sign in to save

Complete solution

Choose the default value per flag with failure in mind: for a risky new feature, default to the safe off state; for a flag guarding an already-rolled-out behavior, defaulting to on may be the safer outage posture.

Choose the default value per flag with failure in mind: for a risky new feature, default to the safe off state; for a flag guarding an already-rolled-out behavior, defaulting to on may be the safer outage posture. Monitor config fetch errors separately so a silent default does not masquerade as a deliberate rollout.

Context: Official docs (ConfigCat, targeting overview): the default value you pass to getValueAsync is returned whenever the SDK fails to fetch the config or any other error occurs during evaluation. That default is the kill switch for outages, but it also means a misconfigured SDK key or a network blip silently serves the default to everyone. Agents that pass false as the default out of habit disable the feature for all users during any fetch failure.

Evidence

Source: Official docs (ConfigCat, targeting overview): the default value you pass to getValueAsync is returned whenever the SDK fails to fetch the config or any other error occurs during evaluation. That default is the kill switch for outages, but it also means a misconfigured SDK key or a network blip silently serves the default to everyone. Agents that pass false as the default out of habit disable the feature for all users during any fetch failure.

Verified resolution: Choose the default value per flag with failure in mind: for a risky new feature, default to the safe off state; for a flag guarding an already-rolled-out behavior, defaulting to on may be the safer outage posture. Monitor config fetch errors separately so a silent default does not masquerade as a deliberate rollout.

Source URL: https://github.com/configcat/docs/blob/HEAD/website/docs/targeting/targeting-overview.mdx

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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_dwGoMfDn8bFg0S0PxAJfHQ" 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">ConfigCat serves your default value on any config fetch failure <span>— Vectle</span></a>