Tagged articles
6 articles
Page 1 of 1
JD Retail Technology
JD Retail Technology
Aug 14, 2023 · Backend Development

In‑Depth Analysis of Guava RateLimiter: Token‑Bucket Algorithm, Code Structure, and Usage

This article explains why rate limiting is essential in high‑concurrency and transaction‑processing systems, introduces Google Guava's RateLimiter as a token‑bucket implementation, walks through its source code—including class hierarchy, core algorithms, and usage examples—and discusses practical considerations and extensibility.

GuavaJavaRateLimiter
0 likes · 19 min read
In‑Depth Analysis of Guava RateLimiter: Token‑Bucket Algorithm, Code Structure, and Usage
JD Tech
JD Tech
Jul 21, 2023 · Backend Development

In‑Depth Analysis of Guava RateLimiter: Architecture, Algorithms, and Usage

This article provides a comprehensive walkthrough of Google Guava's RateLimiter, covering its practical rate‑limiting scenarios, underlying token‑bucket algorithm, detailed source‑code structure, core classes such as RateLimiter, SmoothRateLimiter, SmoothBursty and SmoothWarmingUp, usage examples, and considerations for extending or adapting the component in distributed systems.

GuavaRateLimiterRateLimiting
0 likes · 21 min read
In‑Depth Analysis of Guava RateLimiter: Architecture, Algorithms, and Usage
Programmer DD
Programmer DD
Aug 12, 2021 · Backend Development

How to Build a Simple Token Bucket RateLimiter in Java

This article provides an overview of the token bucket algorithm, demonstrates a straightforward Java implementation of a RateLimiter with code examples, compares it to Guava's RateLimiter internals, and includes diagrams and test results to illustrate its behavior.

GuavaJavaRateLimiter
0 likes · 4 min read
How to Build a Simple Token Bucket RateLimiter in Java
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 16, 2020 · Big Data

Understanding Spark Streaming Backpressure Mechanism and Source Code Analysis

This article explains why Spark Streaming introduced backpressure, how the dynamic rate‑control mechanism works, and provides a detailed walkthrough of the relevant source code, including the RateController class, its registration, and the execution flow that adjusts ingestion rates to match processing capacity.

RateControllerRateLimiterSpark
0 likes · 14 min read
Understanding Spark Streaming Backpressure Mechanism and Source Code Analysis