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
saved by
related reading
- Statsig | The modern product development platformstatsig.com
- Using Statsig in Serverless Environments | Statsig Docsdocs.statsig.com
- Feature Flags troubleshooting - Docs - PostHogposthog.com
- PostHog – We make your product self-drivingposthog.com
- Flagsvercel.com
- Demystifying evals for AI agents \ Anthropicanthropic.com
- Stytch - A better way to build authstytch.com
- OpenAI Platformplatform.openai.com
- Amplitude Agent Analyticsamplitude.com
- Stripe Dot Devstripe.dev
- Why We Built Our Own Background Agentbuilders.ramp.com
- Langfuselangfuse.com