On this page

Akamai Edge KV

Run Statsig feature gate and experiment evaluations at the edge with Akamai EdgeWorkers for low- latency rules evaluation in your CDN layer.

How the Akamai Edge KV integration works

Statsig’s Akamai Edge KV integration pushes Statsig Configs to Edge KV, providing low latency for gate and experiment evaluations directly in Akamai Edge KV. With the correct prerequisites in place, setup takes approximately 60 minutes.

Prerequisites

  1. An Akamai account with EdgeWorkers added to your contract and a Statsig account
  2. The Akamai CLI

Set up Akamai EdgeWorker

  1. Create an EdgeWorker ID
  2. Add the EdgeWorker Behavior
  3. Install the Akamai CLI
  4. Install the Edgeworkers CLI
  5. Generate EdgeGrid credentials

Configure integration

First, enable the Akamai integration in the Statsig Console.

Navigate to Project Settings > Integrations at https://console.statsig.com/integrations and select Akamai.

Authentication

Enter the following EdgeGrid credentials from the previous section:

Authentication

Configuration

Finalize the configuration by selecting a namespace and environment.You can also filter the configs synced into your KV namespace by a Target App. Enable this option if your config payload grows. Leave this unchecked for now.

Configuration

After filling this out, click Enable.

Within a minute, the Statsig backend generates a config payload from your project and pushes it into your KV namespace. Navigate to KV Pairs under your KV namespace. You should see an entry with the prefix statsig-. The next segment is your project ID. Copy it; you'll need it later.

Add Statsig SDK to worker

  1. Create a Statsig server secret key and configure it on Akamai
  2. Clone the Statsig Akamai Edge KV repo (or if you already have an Edge KV package, apply these changes to it)
  3. Follow instructions in the repo
Akamai EdgeWorkers Statsig Akamai Edge KV Repo

Was this helpful?