Back to docsRecipe

Recipe: Progressive delivery + feature gating

Roll features to percentage-based cohorts, gate by license tier, and measure adoption before full release — all through Meridian's feature-flag pipeline.

1. Define the flag

Create a boolean flag in the Meridian dashboard. Attach targeting rules: license_tier >= pro and a rollout percentage starting at 5%.

2. Instrument the loader

In your C++ loader, call the Meridian flag-evaluation endpoint during startup. Cache the result locally with a 60-second TTL. Gate the new code path behind the flag value.

3. Ramp with confidence

Monitor crash rate and session duration in the Meridian analytics panel. Increase the rollout percentage in 10% increments every 24 hours. If error rate exceeds 0.5%, the circuit breaker automatically disables the flag.

4. Full ship

Once at 100% for 48 hours with no regressions, remove the flag check and ship the code unconditionally in the next signed payload update.

Pro tip

Combine progressive delivery with Meridian's offline grace cache so gated features remain available during temporary connectivity loss.