🎁 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

HTTP/HTTPS
The protocol used for transferring web pages and data between browsers and servers, with HTTPS adding encryption.
ICMP (Internet Control Message Protocol)
A network protocol used for diagnostic and error reporting, including ping and traceroute functionality.
IPv6
The latest version of the Internet Protocol with 128-bit addresses, designed to replace IPv4 and solve address exhaustion.
DNS (Domain Name System)
A hierarchical naming system that translates human-readable domain names into IP addresses.
Network Segmentation
The practice of dividing a network into isolated segments to improve security, performance, and management.
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.
View All Networking Terms →