On this page

On Device Client SDKs

Overview of Statsig on-device evaluation client SDKs that evaluate feature gates and experiments locally for low-latency rules evaluation on devices.

How on-device eval SDKs work

Statsig's client-side On-Device Eval SDKs provide an alternate client-side architecture. The definition of each experiment or gate is kept in memory on the device, which allows faster evaluation when the user object changes frequently. (On regular client SDKs, a frequently changing user object requires re-initialization.) The trade-off is that config definitions are exposed on the device.

Use the traditional client SDKs unless you have specific requirements that prevent doing so. If you choose to use the On-Device Eval SDKs, contact the Statsig team first to understand the privacy risks.

Alternatives

An alternative to On-Device Eval SDKs is the Local Eval Adapter, which lets you evaluate locally for only a subset of your experiments and gates that must be available at startup, rather than exposing all configs in your project.

Was this helpful?