Evaluating Feature Gates in the Statsig SDK
Background: This post assumes some prior knowledge of Statsig Feature Gates (Feature flags). You can read more in our article: What are Feature Flags? To evaluate Feature Gates on your servers or in your clients, Statsig provides SDKs in a number of different languages. Let’s explore how they work. Statsig SDKs target two different types of environments: Single-user/client-side environments (check Feature Gate values and experiments for the current user) Multi-user/server-side environments (check Feature Gate values and experiments for the user associated with the current request) All SDKs expose a similar API: initialize() — setup the SDK checkGate() — gets the value of a Feature Gate for the user. The gate may be open to everyone, or in a partial rollout state where only certain users pass the gate, based on some predefined criteria or random assignment getConfig() — gets the json blob of data we call a Dynamic Config for the user logEvent() —send log data to Statsig, which is used t
Evaluating Feature Gates in the Statsig SDK Products Solutions Resources Docs Pricing Sign In Contact Us Products Solutions Resources PRODUCTS Experimentation Feature Flags Product Analytics Session Replay Web Analytics Infra Analytics Marketing Experiments PLATFORM Warehouse Native Infrastructure SDKs Integrations ROLES Engineering Dev Ops Data Science Product Management INDUSTRIES Gaming B2B Saas E-Commerce Blog Customer Stories Partner Program Product Updates Support Sample Size Calculator Statsig Lite Statsig University Products Solutions Resources Docs Pricing Sign In Contact Us PRODUCTS
Explore this link on the map →saved by
related reading
- Using Statsig in Serverless Environments | Statsig Docsdocs.statsig.com
- Feature Flags troubleshooting - Docs - PostHogposthog.com
- Flagsvercel.com
- Demystifying evals for AI agents \ Anthropicanthropic.com
- SF Privately Owned Public Open Spacessfpopos.com
- Stevey's Google Platforms Rant · GitHubgist.github.com
- Stytch - A better way to build authstytch.com
- Stripe Dot Devstripe.dev
- Cookbookcookbook.openai.com
- OpenAI Platformplatform.openai.com
- Boxer: Data Analytics on Network-enabled Serverless Platformsresearch-collection.ethz.ch
- Spotify’s New Experimentation Platform (Part 1) | Spotify Engineeringengineering.atspotify.com