# What is a feature flag (and how it compares to remote config and A/B testing)

DevFeed: [What is a feature flag (and how it compares to remote config and A/B testing)](<https://devfeed.tech/articles/what-is-a-feature-flag-and-how-it-compares-to-remote-config-and-a-b-testing-80677.md>)

Original publisher: [Read original article](<https://posthog.com/blog/what-is-a-feature-flag>)

Author: Natalia Amorim

Published: 2026-02-16T00:00:00Z

Content type: article

Language: en

Sources: [PostHog](<https://devfeed.tech/sources/posthog.md>)

Topics: [A/B Testing](<https://devfeed.tech/topics/a-b-testing.md>), [product-experimentation](<https://devfeed.tech/topics/product-experimentation.md>), [firebase-remote-config](<https://devfeed.tech/topics/firebase-remote-config.md>)

Tags: [a-b-testing](<https://devfeed.tech/tags/a-b-testing.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai-observability](<https://devfeed.tech/tags/ai-observability.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [app-store](<https://devfeed.tech/tags/app-store.md>), [app-store-review](<https://devfeed.tech/tags/app-store-review.md>), [backend](<https://devfeed.tech/tags/backend.md>), [bandits](<https://devfeed.tech/tags/bandits.md>), [bayesian](<https://devfeed.tech/tags/bayesian.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [bug-fix](<https://devfeed.tech/tags/bug-fix.md>), [business-logic](<https://devfeed.tech/tags/business-logic.md>), [canary-release](<https://devfeed.tech/tags/canary-release.md>), [cdp](<https://devfeed.tech/tags/cdp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [feature-flags](<https://devfeed.tech/tags/feature-flags.md>), [remote-config](<https://devfeed.tech/tags/remote-config.md>)

## AI overview

Feature flags control who sees a change and when; remote config changes runtime values without a deployment; A/B tests measure whether variants improve a chosen metric. In PostHog, remote config is a JSON payload on a flag, and experiments add random assignment, event tracking, and significance calculations to flags. Flags support targeted and percentage rollouts, kill switches, and internal testing, but do not measure impact by themselves. Config changes apply when the app refreshes or the SDK fetches flags, and large payloads can become hard to manage. Experiments need enough traffic for meaningful results; the article notes PostHog lacks mutex groups for isolating overlapping experiments and supports only static cohort targeting. It recommends matching the tool to the need, or combining flags for rollout with experiments for measurement.

## Source excerpt

Feature flags, remote config, and A/B testing all exist because deploying changes to everyone is, more often than not, a terrible idea. Thoughts and...