Key takeaways
- “Flag propagation check” has no standard definition. In this guide it means confirming that a changed feature flag value has reached every place that evaluates it, using a harmless “test query” to read the value back.
- Propagation delay is the sum of several layers, not one number: polling intervals, CDN caching, SDK caches and any downstream service that reads the flag on its own schedule.
- Vendors differ by minutes. Eppo documents an average update latency of about 4 minutes, while Harness says streaming updates arrive within a few hundred milliseconds.
- Check every environment, not just the dashboard. A flag can be correct in the admin UI and still stale in the SDK, the edge cache or a second service.
- Test both directions, off to on and on to off, and time each one.
If you landed here searching for that exact phrase, one note on what I found: the only direct match I could locate was an internal MongoDB test file named for flag propagation, not a documented concept. So this article explains the underlying mechanics from vendor documentation and shows a practical way to run the check. Where a point is my own advice rather than a cited fact, it says so.
What a flag propagation check actually tests
When you flip a feature flag, you change a value in one place, usually a dashboard or API. Your application reads that value somewhere else, often through an SDK that keeps a local copy. A propagation check asks one question: how long until the new value is what the code sees?
The “test query” is the probe. It can be a request to a diagnostic endpoint, a log line, or a test that evaluates the flag and returns the value with a timestamp. It should do nothing except report.
A real-world example of why this matters comes from MongoDB’s issue tracker, where a sub-task fixed a test named for flag propagation. The old version did not actually confirm that a flag’s value reached the shards. In that design the router rewrote a stage before sending it on, so the shard never needed to check the flag at all, and the test could pass without proving what its name promised. The lesson carries over: a propagation check is only as good as the place it reads from.
What happens behind the scenes when a flag changes
The path from a dashboard toggle to your code usually passes through four stops: the flag service stores the change, a delivery layer (often a CDN) serves it, the SDK keeps a local copy, and your code evaluates against that copy. Delay can hide at any stop.
Three delivery models
| Model | How updates arrive | Documented figures |
|---|---|---|
| Polling | The SDK asks for the latest rules on a timer | Harness polling defaults to 60 seconds; Eppo defaults to 5 minutes |
| Streaming | The server pushes changes over a held-open connection (Server-Sent Events) | Harness says updates arrive within a few hundred milliseconds |
| Silent push (mobile) | A push notification tells the app to fetch fresh config | Seconds at best, and the OS may delay it, according to Educative’s mobile system design course |
Why polling delay adds up
Eppo documents two settings that govern update speed. The SDK polls on an interval (5 minutes by default, with jitter added to avoid synchronized spikes), and the CDN treats a cached copy as valid for 3 minutes. Eppo puts average update latency at about 4 minutes, roughly half of each setting, and describes it as a deliberate tradeoff for evaluation times under 100 ms in most regions.
The same figures imply a worst case. By my own arithmetic, a client that polls just before the CDN refreshes could wait close to the full 5 minutes plus the full 3 minutes, about 8 minutes. Treat that as a reasoning aid, not a vendor guarantee.
Why vendors moved toward streaming
LaunchDarkly explains that polling forced a tradeoff: poll often and waste round trips and mobile battery, or poll rarely and serve stale data. Frequent polling through a CDN also grew costly as usage rose. Its first streaming design only told clients to poll, which risked everyone asking at once, and adding random jitter fixed the load but slowed delivery to all users. It later moved to sending already-evaluated flags over per-user streams.
Streaming is not free either. Educative notes that it needs real infrastructure to fan changes out and uses more battery, and that mobile operating systems often close background connections, so it should not be the only path for urgent changes.
How to run a flag propagation check, step by step
This procedure is my own recommended approach, built on the mechanics above. It is not taken from a single vendor’s guide.
- Create a dedicated test flag. Use a boolean flag that no real feature depends on, so flipping it repeatedly is safe.
- Add a read-only probe. Expose an internal endpoint, log line or test helper that evaluates the flag and returns its value plus a server timestamp. It must go through the same SDK and cache your production code uses, or the check proves nothing.
- Record the baseline. Confirm the probe returns the current value in every environment you care about: each region, each service, and the browser or mobile client if flags reach them.
- Flip the flag and note the exact time. Write down the moment you saved the change, ideally from the API response, not from memory.
- Poll the probe from each location until it shows the new value, and record when each one flipped.
- Calculate the gap between the change time and each location’s flip time, and compare it with what your vendor documents.
- Repeat in the other direction and several times. Polling and cache timing vary, so one run can look better or worse than normal.
A minimal polling loop
This shell template prints the probe’s answer once per second. Replace the URL with your own diagnostic endpoint; it is a placeholder, not a real service.
while true; do
printf '%s ' "$(date -u +%H:%M:%S)"
curl -s https://your-app.example.com/internal/flag-probe
echo
sleep 1
done
Run it in one terminal per environment, flip the flag, and watch the line where the value changes. The timestamp difference is your observed propagation time for that location.
What a good result looks like
| Observation | What it suggests |
|---|---|
| Every location flips within the vendor’s documented window | Propagation is healthy |
| One location lags the rest by a full polling interval | Its SDK polls on its own timer or sits behind another cache |
| Values flip back and forth briefly | Different servers hold different cached copies |
| A location never flips | It is not reading from the flag service, or its connection has failed |
Troubleshooting: why the new value isn’t showing up
| Symptom | Likely cause | What to check |
|---|---|---|
| Dashboard shows the change, the app doesn’t | The SDK is still using its cached copy | Compare the SDK’s polling interval with the time elapsed; Harness documents a 60-second default |
| Delay is longer than the polling interval | A CDN cache sits in front of the flag file | Look up the vendor’s cache lifetime; Eppo’s is 3 minutes on top of its polling interval |
| One service updates, another doesn’t | Services use different SDK settings or different environment keys | Compare configuration and the environment each service connects to |
| Streaming is enabled but updates are slow | The stream connection may have dropped | Check SDK logs and the vendor’s reconnection docs; Harness’s overview page does not say what happens when a stream drops |
| Flag looks correct but behavior is wrong | The flag is evaluated on a different tier than the one you probed | See the MongoDB example above, where the router decided and the shard never consulted the flag |
| Mobile users lag behind servers | Background connections closed or push throttled | Educative notes that the OS may delay or throttle silent pushes |
Mixed states are the real risk
Kameleoon points out that infrequent polling can leave different parts of the same application showing different flag states, which makes for a poor customer experience. A propagation check should therefore look for disagreement between components, not only for the first moment one of them updates.
Best practices
- Match the delivery method to the stakes. Educative says kill switches typically need to propagate in under 10 seconds and that polling alone cannot meet that. It recommends polling as a reliable baseline with streaming or push layered on for critical changes.
- Write down your expected latency. Take the vendor’s documented figures, add your own settings, and record the number. A check without an expected value cannot fail.
- Probe through production code paths. A separate test client can pass while the real service stays stale.
- Re-run the check after infrastructure changes, such as a new CDN, region, proxy or SDK upgrade.
- Keep a permanent test flag. It lets you repeat the check in minutes instead of rebuilding the setup each time.
- Don’t treat the dashboard as proof. It shows what was saved, not what each service currently believes.
FAQ
What is a flag propagation check?
It is a test that confirms a changed flag value has reached every system that evaluates it. The term is informal, so teams may use it slightly differently.
How long should flag propagation take?
It depends on the vendor and settings. Harness documents streaming updates within a few hundred milliseconds and a 60-second default polling interval; Eppo documents about 4 minutes on average with its defaults.
What is a “test query” in this context?
A read-only request that returns the flag’s current value as the application sees it, so you can time when it changes.
Is streaming always better than polling?
Not always. Streaming is faster but needs more infrastructure and can be interrupted, especially on mobile, so many designs combine both.
Why does my flag work in one service but not another?
Usually a different polling interval, cache, environment key or evaluation tier. Probe each service separately.

