| [ Web Proxy ] |
| Viewing: https://www.docs.developers.amplitude.com/experiment/general/evaluation/local-evaluation/ | [Back] [Original] |
Products
For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Local evaluation happens outside of Amplitude, so it doesn't support advanced targeting and identity resolution from Amplitude Analytics. Local evaluation does support consistent bucketing with target segments, which is often enough.
Client-side local evaluation
Client-side local evaluation includes all targeting data in the flag configuration that loads on the client. For example, if you target a specific user by their email, all clients can see that email, regardless of user.
| Feature | Remote evaluation | Local evaluation |
|---|---|---|
| Consistent bucketing | ||
| Individual inclusions | ||
| Targeting segments | ||
| Amplitude ID resolution | ||
| User enrichment | ||
| Sticky bucketing |
Server-side SDKs can target cohorts when you configure them to do so. Local evaluation cohorts can target only User IDs.
[Diagram describing the local evaluation workflow.]
On startup, the SDK loads flag configuration updates from the server and stores them in memory for access before each evaluation. After startup, the SDK polls the server for flag configuration updates.
Edge evaluation
The local evaluation Node.js SDK can run in edge workers or functions that support JavaScript and a distributed store. Contact your representative or email experiment@amplitude.com to learn more.For server-side local evaluation experiments, use the assignment event as the exposure event in your experiment analysis.
The following results reflect a single flag evaluation. Amplitude collected them over 10 executions of 10,000 evaluation iterations. Each iteration used randomized user inputs against 1 flag configuration, selected at random from 3 possible configurations.
Was this helpful?
On this page
Platform
Resources
Partners & Support
20122026 Amplitude, Inc.. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.
| Web Proxy Viewer | New URL | Original Page |