Tag

counter algorithm

0 views collected around this technical thread.

IT Architects Alliance
IT Architects Alliance
Nov 1, 2021 · Backend Development

Rate Limiting Algorithms: Counter, Sliding Window, Leaky Bucket, and Token Bucket

This article explains four common rate‑limiting algorithms—fixed‑window counter, sliding window, leaky bucket, and token bucket—detailing their mechanisms, advantages, drawbacks such as the critical‑window problem, and how they can be implemented simply using Redis in backend systems.

Rate LimitingSliding Windowbackend
0 likes · 4 min read
Rate Limiting Algorithms: Counter, Sliding Window, Leaky Bucket, and Token Bucket
Byte Quality Assurance Team
Byte Quality Assurance Team
Jul 14, 2021 · Backend Development

Understanding Rate Limiting Algorithms: Counter, Sliding Window, Token Bucket, and Leaky Bucket

This article explains the purpose, scenarios, and detailed implementations of common rate‑limiting algorithms—including counter (fixed window), sliding window, token bucket, and leaky bucket—highlighting their advantages, drawbacks, and sample Python code for each.

Distributed SystemsRate LimitingSliding Window
0 likes · 12 min read
Understanding Rate Limiting Algorithms: Counter, Sliding Window, Token Bucket, and Leaky Bucket
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 15, 2021 · Backend Development

Understanding Rate Limiting: Counter, Sliding Window, Leaky Bucket, and Token Bucket Algorithms

The article introduces the concept of rate limiting, explains why it is needed both offline (e.g., crowded theme parks) and online (e.g., flash sales), and details four common algorithms—counter, sliding window, leaky bucket, and token bucket—along with their implementation considerations and trade‑offs.

Rate LimitingSliding Windowbackend
0 likes · 9 min read
Understanding Rate Limiting: Counter, Sliding Window, Leaky Bucket, and Token Bucket Algorithms
JD Retail Technology
JD Retail Technology
May 25, 2020 · Backend Development

Understanding Rate Limiting: Counter, Leaky Bucket, and Token Bucket Algorithms

This article explains the fundamentals of rate limiting for high‑concurrency systems, covering why it is needed, the conditions that trigger it, and detailed introductions to the three main algorithms—counter (fixed and sliding windows), leaky bucket, and token bucket—along with their advantages, drawbacks, and sample pseudo‑code implementations.

Rate Limitingbackendcounter algorithm
0 likes · 13 min read
Understanding Rate Limiting: Counter, Leaky Bucket, and Token Bucket Algorithms