Skip to main content

Overview

A flag check is a function call: look at the in-memory snapshot, hash if needed, return a value. The SDK talks to the edge only to refresh that snapshot.

Hot path

No HTTP, no WebSocket, no Postgres. If you need rules that query “everyone we saw last week,” that is not eval — it is a future control-plane feature. Eval stays local.

Refresh path

streamEndpoint only invalidates. The snapshot still comes from HTTP.

When the edge is gone

Evaluation APIs do not throw. Unknown keys return the default and emit unregistered_flag.

Bucketing

Percentage conditions hash flagKey + userId (or attribute) into 0–10000. Same inputs → same bucket. Nothing is stored to make it sticky.

Next