Tagged articles

token bucket

109 articles · Page 2 of 2
21CTO
21CTO
Nov 26, 2017 · Backend Development

How to Implement Effective Rate Limiting with Guava and Redis

This article explains why rate limiting is essential for high‑traffic services, describes the token‑bucket algorithm, shows how to use Guava's RateLimiter and Cache for single‑node limits, and presents a Redis‑based solution that works across distributed instances.

BackendGuavaRedis
0 likes · 7 min read
How to Implement Effective Rate Limiting with Guava and Redis
ITPUB
ITPUB
Nov 24, 2017 · Backend Development

How to Build a Redis‑Powered Rate Limiter Using Token Bucket and Lua

This article explains the design of a Redis‑based rate‑limiting system, covering core concepts, token‑bucket and window‑based algorithms, Java and Lua implementations, engineering choices, performance benchmarks, and practical lessons learned.

BackendLuarate limiting
0 likes · 12 min read
How to Build a Redis‑Powered Rate Limiter Using Token Bucket and Lua
21CTO
21CTO
Jun 20, 2017 · Backend Development

Mastering API Rate Limiting with Token Bucket and Redis

This article explains how to protect API servers from abuse by implementing rate limiting using the Token Bucket algorithm, discusses its drawbacks, and provides practical Java and Redis-based solutions with code examples and performance considerations.

BackendJavaRedis
0 likes · 14 min read
Mastering API Rate Limiting with Token Bucket and Redis
Qunar Tech Salon
Qunar Tech Salon
Apr 19, 2017 · Backend Development

Rate Limiting Strategies for API Services: Design, Implementation, and Load Shedding

This article explains why availability and reliability are critical for web APIs, outlines four common rate‑limiting techniques used at Stripe, describes how to choose and implement request, concurrent, usage‑based, and worker‑utilization limiters, and provides practical guidance for safely deploying them in production.

APIload sheddingoperations
0 likes · 11 min read
Rate Limiting Strategies for API Services: Design, Implementation, and Load Shedding
High Availability Architecture
High Availability Architecture
Apr 6, 2017 · Backend Development

Four Common API Rate Limiting Strategies and Their Implementation at Stripe

This article explains why availability and reliability are essential for web APIs, outlines four common rate‑limiting approaches used by Stripe—including request, concurrent, usage‑based, and worker‑utilization limiters—and provides practical guidance on implementing token‑bucket limiters with Redis while ensuring safe error handling and gradual rollout.

APIRedisStripe
0 likes · 9 min read
Four Common API Rate Limiting Strategies and Their Implementation at Stripe
dbaplus Community
dbaplus Community
Jun 23, 2016 · Backend Development

Mastering Rate Limiting: Algorithms, Application, Distributed and Edge Strategies

This article provides a comprehensive guide to rate limiting in high‑concurrency systems, covering core concepts, token‑bucket and leaky‑bucket algorithms, application‑level techniques with Guava, distributed implementations using Redis+Lua and Nginx+Lua, and edge‑layer controls via Nginx modules, complete with configuration examples and test results.

Guavadistributed systemsleaky-bucket
0 likes · 28 min read
Mastering Rate Limiting: Algorithms, Application, Distributed and Edge Strategies
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jun 19, 2016 · Backend Development

Master Rate Limiting: Token & Leaky Buckets, Distributed Strategies

This article explains how caching, degradation, and especially rate limiting—using token bucket, leaky bucket, and counter‑based methods—protect high‑concurrency systems, covering algorithm basics, application‑level techniques, and distributed implementations with Redis+Lua and Nginx+Lua.

distributed systemsleaky-bucketrate limiting
0 likes · 18 min read
Master Rate Limiting: Token & Leaky Buckets, Distributed Strategies
21CTO
21CTO
Jun 12, 2016 · Backend Development

Mastering Rate Limiting: Token Bucket, Leaky Bucket, and Real‑World Implementations

This article explains why caching, degradation, and rate limiting are essential for high‑concurrency systems, details token‑bucket and leaky‑bucket algorithms, shows application‑level, distributed, and edge‑level throttling techniques, and provides practical Java, Guava, Redis‑Lua, and Nginx‑Lua code examples.

GuavaJavaNginx
0 likes · 17 min read
Mastering Rate Limiting: Token Bucket, Leaky Bucket, and Real‑World Implementations
Architect
Architect
Oct 23, 2015 · Backend Development

Implementing Token‑Bucket Rate Limiting with Guava RateLimiter in Java

The article explains how to protect high‑traffic systems during events like Double 11 by using token‑bucket rate limiting, describes the algorithm, compares Guava's SmoothBursty and SmoothWarmingUp implementations, and provides a simple Java TrafficShaper example with code.

BackendGuavarate limiting
0 likes · 7 min read
Implementing Token‑Bucket Rate Limiting with Guava RateLimiter in Java