Skip to content

Advanced & Production

Running GrowthBook locally is easy. Running it in production — where real users, real revenue, and real engineering workflows depend on it — requires a higher standard of care.

This module covers the five pillars that separate a proof-of-concept GrowthBook install from a production-grade one:

PillarWhat you will learn
Namespaces & holdoutsKeep overlapping experiments from contaminating each other; measure long-term impact
PrerequisitesGate one flag on the value of another to build safe dependency chains
REST API & webhooksAutomate flag changes from CI/CD; invalidate SDK caches on change
Environments & secretsSecure your self-hosted stack with strong secrets, per-env SDK connections, and MongoDB backups

Treating flags as code-adjacent infrastructure

Section titled “Treating flags as code-adjacent infrastructure”

A feature flag that no one reviews is a liability. A flag that no one audits has unknown blast radius. An experiment that no one monitors could silently corrupt your metrics.

In production, GrowthBook flags and experiments deserve the same discipline as the code they gate:

  • Review — flag changes should go through a lightweight approval process (GrowthBook has comment threads and audit logs built in).
  • Audit — use the built-in audit log (Settings → Audit Log) to track who changed what and when.
  • Automate — the REST API and webhooks let you wire flag changes into your CI/CD pipeline so deployments can activate or deactivate flags without a human in the loop.

Work through the lessons in order — each one builds on the last:

  1. Namespaces & holdouts — prevent experiment overlap at the bucket level.
  2. Prerequisites — chain flags so that a dependent feature only activates when its dependency is on.
  3. REST API & webhooks — programmatic control and real-time change propagation.
  4. Environments & secrets — lock down the self-hosted stack before you go live.
Which GrowthBook feature prevents two overlapping experiments from assigning the same user to both?
Where in the GrowthBook UI can you review who changed a flag and when?
What is the primary benefit of wiring GrowthBook webhooks into your CI/CD pipeline?