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

Subnet
A logical division of an IP network into smaller segments to improve performance, security, and management.
DNS Propagation
The time it takes for DNS record changes to spread across all DNS servers worldwide, typically taking up to 48 hours.
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.
SNMP (Simple Network Management Protocol)
A protocol for monitoring and managing network devices like routers, switches, servers, and printers remotely.
DNS (Domain Name System)
A hierarchical naming system that translates human-readable domain names into IP addresses.
Load Balancer
A device or software that distributes network traffic across multiple servers to ensure reliability and performance.
View All Networking Terms โ†’