Overview
On server SDKs (shipdit and Go), a flag check is a function call: look at the in-memory snapshot, hash if needed, and return a value. The SDK talks to the edge only to refresh that snapshot. Browser SDKs (shipdit/client) instead evaluate targeting at the edge via POST /sdk/v1/evaluate and keep only resolved values in memory so snapshots and targeting rules stay server-side; see Client vs. server evaluation.
See SDK benchmarks for measured evaluation latency, throughput, and update propagation, including behavior during snapshot replacement.
Hot path
Refresh path
stream: true only invalidates. Go refreshes by polling or manual Refresh(ctx). Refreshes fetch snapshots over HTTP; startup can instead use a supplied bootstrap snapshot or, in TypeScript, a cached snapshot. See Snapshots for version and rollback rules.
What happens if shipd is down?
Flag checks keep working. Each part of shipd fails independently:
TypeScript clients starting while the edge is unreachable use the first available source below. Go serves its
Bootstrap snapshot if you set one, otherwise configured defaults, until its first valid snapshot. Go has no persisted cache in this release.
TypeScript’s
ready() resolves after readyTimeoutMs (5 seconds by default) and never rejects for network errors. Evaluation methods never throw. An unknown key returns your default and emits an unregistered_flag event.
Go’s Ready(ctx) returns when a snapshot loads, when the initial fetch fails, or when the context expires. An initial fetch failure returns immediately without waiting for the deadline; handle the error and decide whether to accept traffic with defaults. Go uses RefreshInterval for polling (30 seconds by default), and DisablePolling leaves updates to manual refreshes.
Related: Reliability and data handling · SDK.
Bucketing
Percentage conditions hashflagKey + userId (or a chosen attribute) into one of 10,000 buckets (0 to 9999). The same inputs always land in the same bucket, so nothing is stored to make assignments sticky. Without a userId (or the chosen attribute), a percentage condition never matches. See Roll out a flag to a percentage of users.