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 device keeps the definition of each experiment or gate in memory, 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 the device exposes config definitions.
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 the subset of experiments and gates you need at startup, rather than exposing all configs in your project.Was this helpful?