1. Tell us who you are and what you’ve built!
We’re GrowthBook, an open source A/B testing and feature flagging platform, and we’ve built a public SDK for Fastly Compute. The SDK deploys GrowthBook at the edge, allowing teams to run A/B tests without the performance degradation and other negatives usually associated with front-end experimentation.
2. What problem are you solving?
While experimentation in the browser is easier to set up and allows non-technical team members to implement A/B tests, it has its drawbacks:
- Pages flicker or flash while experiments are fetched and rendered
- Networking problems and ad blockers can prevent experiments from running
- Networking / ad blockers can cause event tracking dropoff, leading to underpowered or biased test results
With our Fastly Edge SDK, we solve these problems by rendering experiments at the edge. Users receive the control or variant HTML directly — without the flash, flicker, and latency. We support both URL redirect tests and visual/no-code tests created with our Visual Editor Chrome extension.
Our edge SDK has a few other benefits:
- Inject our standard JavaScript SDK with hydrated feature and experiment definitions onto your page, allowing the front-end to pick up where the edge left off
- Synchronize feature and experiment changes to the SDK via Fastly’s KV store, avoiding network overhead
3. Who are the ideal users for this product?
Product teams, growth teams, and anybody interested in front-end experimentation without incurring the common network costs, visual jank, and measurement gaps.
4. How are you using Fastly within the product?
The GrowthBook Fastly SDK works seamlessly with Fastly’s Compute worker to proxy traffic and render experiments on the edge .
Install our turnkey Fastly SDK onto your Compute worker, set up a few config variables, and optionally connect a Fastly KV store (GrowthBook will push changes to your KV to keep features and experiments in sync without request-time overhead).
Once your worker is set up, point your traffic (DNS records) at the worker, let it proxy your public site and automatically run experimentation on edge.
5. How can people get started right now, and what’s a good “hello world” example?
- Sign up for GrowthBook. Bring your own data warehouse and event tracking (or just default to using GA4 and BigQuery to get started quickly)
- Create a visual experiment or URL redirect test for your website
- Create a Compute worker
Steps 4-7: See our walkthrough here:
- Install our SDK
- Implement our request handler
- Configure the edge app using config vars
- Optionally connect Fastly KV to your edge app and to GrowthBook
6. Where can people learn more?
- Our docs for the GrowthBook Fastly SDK:
- The Fastly SDK public repo:
- …which has a sample project you can reference:
7. Do you have any screenshots, gifs, or videos that should be embedded in the post?