Token bucket

A rate limiter that lets short bursts through up to a cap while holding sustained traffic to a steady refill rate.

Think of it as A ticket dispenser that refills two tickets a second and holds at most five.

Each player gets a bucket per remote. A valid request spends one token, and tokens refill at a fixed rate up to the bucket's capacity. Unlike a rigid per-call cooldown, a token bucket lets an honest player click two shop buttons in a row while blocking a flood of automated requests.

Official reference: create.roblox.com

Related terms