Skip to main content

Module store

Module store 

Source
Expand description

In-process GCRA state store.

Holds one value per key: the theoretical arrival time (TAT), as milliseconds since the store’s base instant. The check is synchronous and lock-free across keys (a DashMap shard lock is held only for the single key being updated), so it adds no measurable latency to the request path.

This is always the authority for the local limit decision. Cross-instance reconciliation, when enabled, sits beside it and is updated asynchronously; it never turns this check into a blocking operation.

Structs§

GcraStore
In-process per-instance GCRA store.