You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid EC identity-graph KV reads when post-send pull sync has no work to perform.
dispatch_pull_sync currently reads the EC row before it checks whether any partners have pull sync enabled. When pull-enabled partners do exist, it reads the row on every eligible real-browser response even when every partner UID is already present. The work happens after response delivery, so it does not gate response bytes, but it still consumes KV operations and extends Compute instance time.
Proposed direction
Resolve pull-enabled partners before reading KV and return immediately when the set is empty.
Add a bounded completeness mechanism, such as a short-lived browser marker, so fully synced users can skip no-op KV checks.
Preserve the current consent gate, missing-UID-only behavior, partner rate limits, and best-effort post-send failure policy.
Out of scope
Request-scoped reuse of (KvEntry, generation) across auction, finalize, and pull sync belongs exclusively to #851. This issue must not introduce another request-scoped EC cache or duplicate that work.
Acceptance criteria
No pull-enabled partners results in zero EC KV operations.
Summary
Avoid EC identity-graph KV reads when post-send pull sync has no work to perform.
dispatch_pull_synccurrently reads the EC row before it checks whether any partners have pull sync enabled. When pull-enabled partners do exist, it reads the row on every eligible real-browser response even when every partner UID is already present. The work happens after response delivery, so it does not gate response bytes, but it still consumes KV operations and extends Compute instance time.Proposed direction
Out of scope
Request-scoped reuse of
(KvEntry, generation)across auction, finalize, and pull sync belongs exclusively to #851. This issue must not introduce another request-scoped EC cache or duplicate that work.Acceptance criteria
Relevant code
crates/trusted-server-core/src/ec/pull_sync.rscrates/trusted-server-adapter-fastly/src/main.rs