🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Networking Advanced

What is Token Bucket Algorithm?

A rate limiting algorithm that allows burst traffic by accumulating tokens at a fixed rate and consuming them per request.

The token bucket fills with tokens at a constant rate (e.g., 10 tokens/second) up to a maximum capacity. Each request consumes one token. If the bucket is empty, requests are rejected or queued. When traffic is low, tokens accumulate, allowing controlled bursts.

This is more flexible than fixed-rate limiting because it handles bursty traffic naturally. It is used in network traffic shaping, API rate limiting, and cloud services. Variations include the leaky bucket algorithm which enforces a strict constant rate.

Related Terms

Content Delivery Network (CDN)
A geographically distributed network of servers that caches and delivers web content from locations closest to users for faster load times.
WireGuard
A modern, lightweight VPN protocol that uses state-of-the-art cryptography and minimal code for fast, secure tunneling.
Anycast
A network routing technique where the same IP address is announced from multiple locations, directing users to the nearest server.
TCP/IP
The fundamental communication protocol suite of the internet that defines how data is packaged, addressed, transmitted, and received.
Network ACL
A set of rules that control inbound and outbound traffic at the subnet level, acting as a stateless firewall in cloud and enterprise networks.
CIDR Notation
A compact method for specifying IP addresses and their associated routing prefix using a slash followed by the prefix length.
View All Networking Terms →