๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout 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

VLAN (Virtual LAN)
A logical grouping of network devices that creates separate broadcast domains on the same physical network infrastructure.
Latency
The time delay between sending a request and receiving a response, measured in milliseconds.
HTTPS Everywhere
The practice of securing all web traffic with TLS encryption, ensuring data integrity and privacy between browsers and servers.
BGP (Border Gateway Protocol)
The routing protocol that makes the internet work by exchanging routing information between autonomous systems.
Network Segmentation
The practice of dividing a network into isolated segments to improve security, performance, and management.
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 โ†’