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

DNS over HTTPS (DoH)
A protocol that encrypts DNS queries by sending them over HTTPS, preventing eavesdropping and manipulation of DNS traffic.
DNS (Domain Name System)
A hierarchical naming system that translates human-readable domain names into IP addresses.
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.
TCP vs UDP
Two transport layer protocols: TCP provides reliable, ordered delivery while UDP provides fast, connectionless delivery without guarantees.
BGP (Border Gateway Protocol)
The routing protocol that makes the internet work by exchanging routing information between autonomous systems.
HTTP Keep-Alive
An HTTP mechanism that reuses a single TCP connection for multiple requests, reducing the overhead of establishing new connections.
View All Networking Terms โ†’