Advanced & Production
From playground to production
Section titled “From playground to 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:
| Pillar | What you will learn |
|---|---|
| Namespaces & holdouts | Keep overlapping experiments from contaminating each other; measure long-term impact |
| Prerequisites | Gate one flag on the value of another to build safe dependency chains |
| REST API & webhooks | Automate flag changes from CI/CD; invalidate SDK caches on change |
| Environments & secrets | Secure 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.
Module structure
Section titled “Module structure”Work through the lessons in order — each one builds on the last:
- Namespaces & holdouts — prevent experiment overlap at the bucket level.
- Prerequisites — chain flags so that a dependent feature only activates when its dependency is on.
- REST API & webhooks — programmatic control and real-time change propagation.
- Environments & secrets — lock down the self-hosted stack before you go live.