Local Eval Adapter
A common limitation of experimentation systems is the dependence on an upfront network requests to fetch experiment configurations. While concepts like Bootstrapping and Synchronous Initialization can provide alternatives, both have caveats that are sometimes prohibitive: Bootstrapping still requires an upfront request (though it can be made synchronous with other requests), and Synchronous Initialization Strategies can result in out-of-date configs (by one session). The Local Eval Adapter solves this by enabling you to ship your experiment configurations inline with your application, meaning you can run experiments before initialization completes. The adapter expects a ruleset explaining your experiments, similar to Statsig’s Server SDKs - see the Example Ruleset below.Limitations
Shipping with a ruleset presents security concerns, but given that the experiment set can be scoped to only an experiment or two occurring before any network requests, those concerns are often minimal. However, we expect users to take caution shipping a ruleset in their production code, vetting the contents are correct and safe.Usage & Functionality
The Local Eval Adapter, with proper attention to security, and maintenance of the ruleset in your application, addresses the downsides of other experiment-at-launch strategies.The local evaluation adapter is for Enterprise and Pro Tier companies only. If you are trying to follow these instructions but do not meet that criteria, some of the setup steps may not work.
- iOS
- Android
- JavaScript