๐ŸŽ 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

Load Balancer
A device or software that distributes network traffic across multiple servers to ensure reliability and performance.
NAT (Network Address Translation)
A method of mapping private IP addresses to public IP addresses, allowing multiple devices to share a single public IP.
IP Address
A unique numerical label assigned to each device on a computer network for identification and communication.
HTTP Keep-Alive
An HTTP mechanism that reuses a single TCP connection for multiple requests, reducing the overhead of establishing new connections.
Network Topology
The physical or logical arrangement of nodes and connections in a computer network, such as star, mesh, ring, or bus configurations.
WireGuard
A modern, lightweight VPN protocol that uses state-of-the-art cryptography and minimal code for fast, secure tunneling.
View All Networking Terms โ†’