pub const DEFAULT_MAX_BUCKETS: usize = 100_000; // 100_000usizeExpand description
Default ceiling on live buckets.
The in-memory store documents itself as single-replica/development scale, and 100k live token buckets is far past that — a deployment legitimately tracking that many distinct callers in one process wants the Redis store, whose keyspace is not this process’s heap. The cap exists as a backstop under the cardinality budget, not instead of it: with the budget doing its job the map is O(peers × 128), and the cap is what keeps “peers” from being the unbounded term when a botnet supplies them.