Skip to main content

Module ratelimit

Module ratelimit 

Source

Constantsยง

RATELIMIT_MAP_CAP ๐Ÿ”’
Cap on each bucket table; fully refilled buckets are pruned past it so a spray cannot grow the table without bound.
RC_BURST ๐Ÿ”’
RC_PER_SECOND ๐Ÿ”’
Refills per second on each requestToken bucket; a generous burst absorbs a real clientโ€™s retries while bounding sustained spray.

Functionsยง

check_bucket ๐Ÿ”’