Tagged articles
134 articles
Page 2 of 2
Selected Java Interview Questions
Selected Java Interview Questions
Jun 28, 2020 · Backend Development

Rate Limiting Strategies and Guava RateLimiter for High Concurrency Traffic

This article explains the concept of high traffic, compares common mitigation techniques such as caching, degradation and rate limiting, and then details four classic rate‑limiting algorithms—counter, sliding window, leaky bucket and token bucket—followed by a practical Guava RateLimiter example and a brief note on distributed scenarios.

Distributed SystemsGuavahigh concurrency
0 likes · 7 min read
Rate Limiting Strategies and Guava RateLimiter for High Concurrency Traffic
macrozheng
macrozheng
May 15, 2020 · Backend Development

Boost Your Java Code with Essential Apache Commons & Guava Utilities

This article introduces a collection of practical Java utility classes—from Apache Commons StringUtils and DateUtils to Guava's Joiner and Stopwatch—showing how to simplify string handling, date conversion, collection checks, file I/O, and performance timing with concise code examples.

Apache CommonsDateUtilsGuava
0 likes · 16 min read
Boost Your Java Code with Essential Apache Commons & Guava Utilities
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 28, 2020 · Backend Development

Master Rate Limiting: Algorithms, Guava RateLimiter, and Java Implementation

This article introduces the background and necessity of rate limiting, explains the leaky bucket and token bucket algorithms with visual diagrams, and provides a comprehensive Java implementation using Guava's RateLimiter, custom annotations, AOP interception, and controller integration to protect high‑traffic applications.

Guavaaoprate limiting
0 likes · 10 min read
Master Rate Limiting: Algorithms, Guava RateLimiter, and Java Implementation
Programmer DD
Programmer DD
Mar 9, 2020 · Backend Development

Mastering Guava‑Retrying: Build Robust Retry Logic in Java

This article explains why retry strategies are essential for unreliable external services, introduces the flexible Guava‑Retrying library, provides detailed code examples, describes its core execution flow, shows how to add the Maven dependency, and outlines the key interfaces and strategies for configuring retries.

Backend DevelopmentGuavaJava
0 likes · 7 min read
Mastering Guava‑Retrying: Build Robust Retry Logic in Java
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 22, 2020 · Backend Development

Understanding Rate Limiting: Leaky Bucket, Token Bucket, and Guava RateLimiter

The article explains the principles of traffic shaping through leaky‑bucket and token‑bucket algorithms, details how Google Guava's RateLimiter implements token‑bucket rate limiting, and provides Java code examples illustrating token generation, acquisition, and practical usage in high‑concurrency backend systems.

BackendGuavaJava
0 likes · 10 min read
Understanding Rate Limiting: Leaky Bucket, Token Bucket, and Guava RateLimiter
Java Captain
Java Captain
Feb 7, 2020 · Backend Development

Implementing a Two-Level Cache System with Guava and Redis in Java

This article explains how to build a simple two‑level caching solution in Java, covering generic cache interfaces, FIFO/LRU/LFU algorithms, implementing local Guava cache and distributed Redis cache, configuring Spring Boot, handling expiration, and providing a unified cache builder for seamless use.

Backend DevelopmentGuavaJava
0 likes · 35 min read
Implementing a Two-Level Cache System with Guava and Redis in Java
Programmer DD
Programmer DD
Dec 5, 2018 · Fundamentals

How Bloom Filters Enable Lightning‑Fast Membership Checks for Massive Datasets

This article explains why traditional HashSet approaches run out of memory on huge integer collections, introduces Bloom Filter theory, walks through a custom Java implementation and performance tests, compares it with Google Guava's built‑in version, and analyzes the underlying source code to show how Bloom Filters achieve low‑memory, high‑speed existence queries with a controllable false‑positive rate.

GuavaJavabloom-filter
0 likes · 12 min read
How Bloom Filters Enable Lightning‑Fast Membership Checks for Massive Datasets
Java Captain
Java Captain
Sep 1, 2018 · Backend Development

Thoughts on High‑Concurrency Traffic Control and Rate‑Limiting Techniques

This article shares practical insights on handling high‑concurrency traffic, explaining what constitutes large traffic, common mitigation strategies such as caching, downgrade, and focusing on rate‑limiting techniques—including counters, sliding windows, leaky‑bucket and token‑bucket algorithms—and demonstrates using Guava’s RateLimiter for Java applications.

Backend PerformanceGuavaToken Bucket
0 likes · 6 min read
Thoughts on High‑Concurrency Traffic Control and Rate‑Limiting Techniques
Architecture Digest
Architecture Digest
Aug 21, 2018 · Backend Development

Evolution of Java Caching at iQIYI: From Database Lookups to Guava and Caffeine

This article traces iQIYI's five‑stage journey of Java caching—from simple database queries and in‑process HashMap caches, through Guava's advanced features addressing lock contention, expiration, and refresh, to the high‑performance Caffeine library with its W‑TinyLFU algorithm—while providing code examples and architectural insights.

CaffeineGuavaLRU
0 likes · 20 min read
Evolution of Java Caching at iQIYI: From Database Lookups to Guava and Caffeine
Senior Brother's Insights
Senior Brother's Insights
Aug 21, 2018 · Backend Development

From Redis to Caffeine: iQIYI’s Journey Through Java Caching Strategies

This article traces iQIYI’s five‑stage evolution of Java caching—from simple database lookups and Redis synchronization to Guava Cache enhancements and finally to Caffeine’s W‑TinyLFU implementation—explaining each approach, its advantages, drawbacks, and the underlying algorithms that drive modern cache performance.

CaffeineGuavaJava
0 likes · 20 min read
From Redis to Caffeine: iQIYI’s Journey Through Java Caching Strategies
Java Backend Technology
Java Backend Technology
Aug 20, 2018 · Backend Development

From Redis to Caffeine: Evolution of Java Caching Strategies at iQIYI

This article traces iQIYI’s five‑stage Java caching journey—from early database lookups, through Redis synchronization, in‑process HashMap and Guava caches, to modern Caffeine with W‑TinyLFU—explaining each phase’s advantages, drawbacks, eviction algorithms, and implementation details such as segment locking, expiration queues, and multi‑queue data structures.

Cache EvictionCaffeineGuava
0 likes · 21 min read
From Redis to Caffeine: Evolution of Java Caching Strategies at iQIYI
Architects' Tech Alliance
Architects' Tech Alliance
Aug 11, 2018 · Industry Insights

Mastering Cache Architecture: From CDN to Distributed Systems

This article provides a comprehensive overview of caching in large distributed systems, covering CDN, reverse‑proxy, local and distributed caches, popular implementations such as Ehcache, Guava, Memcached and Redis, common pitfalls like consistency and avalanche, and practical solutions with real‑world case studies.

Distributed SystemsEhcacheGuava
0 likes · 11 min read
Mastering Cache Architecture: From CDN to Distributed Systems
Programmer DD
Programmer DD
Jul 10, 2018 · Backend Development

How Guava Cache Works Under the Hood: Expiration, LRU, and Implementation Details

This article explains the design and inner workings of Google Guava's Cache library, covering JVM‑level caching, the advantages over simple maps, a real‑world Kafka alerting scenario, code examples, expiration policies, LRU handling, concurrency mechanisms, and the builder pattern used to configure caches.

ExpirationGuavaJava
0 likes · 10 min read
How Guava Cache Works Under the Hood: Expiration, LRU, and Implementation Details
Java Captain
Java Captain
Jun 27, 2018 · Backend Development

High Concurrency Traffic Control and Rate Limiting Techniques

This article discusses practical approaches to handling massive traffic spikes—defining high‑traffic scenarios, common mitigation methods such as caching, degradation, and various rate‑limiting algorithms (counter, sliding window, leaky bucket, token bucket), including Guava's RateLimiter and brief notes on distributed implementations.

Backend PerformanceGuavaJava
0 likes · 6 min read
High Concurrency Traffic Control and Rate Limiting Techniques
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 18, 2018 · Backend Development

Rate Limiting Demystified: Token Bucket, Leaky Bucket & Counter Algorithms in Java

During high‑traffic scenarios, services can become unavailable, so implementing rate‑limiting techniques like token bucket, leaky bucket, and counter algorithms—illustrated with Java code examples using Guava RateLimiter, AtomicInteger, and Semaphore—helps smooth bursts, control concurrency, and prevent system overload.

GuavaToken Bucketcounter algorithm
0 likes · 6 min read
Rate Limiting Demystified: Token Bucket, Leaky Bucket & Counter Algorithms in Java
Architecture Digest
Architecture Digest
Feb 12, 2018 · Backend Development

Handling High Traffic: Common Rate‑Limiting Techniques and Guava RateLimiter

This article discusses the definition of high traffic, common mitigation methods such as caching, degradation, and especially various rate‑limiting algorithms—including counters, sliding windows, leaky bucket, and token bucket—and demonstrates using Guava's RateLimiter for practical throttling.

Backend PerformanceGuavaToken Bucket
0 likes · 7 min read
Handling High Traffic: Common Rate‑Limiting Techniques and Guava RateLimiter
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.

BackendDistributed SystemsGuava
0 likes · 7 min read
How to Implement Effective Rate Limiting with Guava and Redis
Architecture Digest
Architecture Digest
Oct 12, 2017 · Backend Development

Cache Eviction Strategies and Java Cache Implementations

This article explains various cache eviction strategies, compares heap, off‑heap, disk and distributed cache types, and provides concrete Java implementations using Guava Cache, EhCache 3.x and MapDB with code examples and usage patterns such as Cache‑Aside and Cache‑As‑SoR.

CacheCache EvictionEhcache
0 likes · 18 min read
Cache Eviction Strategies and Java Cache Implementations
Programmer DD
Programmer DD
Aug 19, 2017 · Backend Development

Decoupling Business Logic with Domain Events Using Guava EventBus

This article explains how to apply Domain‑Driven Design's domain events to separate reply handling from push notification logic, discusses the shortcomings of embedding side‑effects directly, compares Spring and Guava event mechanisms, and provides a custom Guava‑based publisher implementation with synchronous and asynchronous buses.

Domain EventsDomain-Driven DesignEventBus
0 likes · 8 min read
Decoupling Business Logic with Domain Events Using Guava EventBus
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.

Distributed SystemsGuavaToken Bucket
0 likes · 28 min read
Mastering Rate Limiting: Algorithms, Application, Distributed and Edge 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
Architecture Digest
Architecture Digest
May 29, 2016 · Backend Development

Refactoring a Message Bus with Guava EventBus: Improving Broadcast Notifications and Replacing Chain‑of‑Responsibility

This article describes how to redesign a Java‑based message bus by integrating Guava EventBus to streamline broadcast notifications and replace the traditional chain‑of‑responsibility pattern with an event‑driven approach, providing code examples and deployment considerations.

BackendEvent-drivenEventBus
0 likes · 10 min read
Refactoring a Message Bus with Guava EventBus: Improving Broadcast Notifications and Replacing Chain‑of‑Responsibility
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.

BackendGuavaToken Bucket
0 likes · 7 min read
Implementing Token‑Bucket Rate Limiting with Guava RateLimiter in Java
Qunar Tech Salon
Qunar Tech Salon
Dec 3, 2014 · Backend Development

Guava ListenableFuture and Service Framework: Asynchronous Futures and Service Lifecycle Management

This article explains Guava's ListenableFuture abstraction for callback‑enabled futures, demonstrates how to create and compose them with listeners, callbacks, and transformation functions, and introduces the Guava Service framework for managing service lifecycles, including abstract service implementations and ServiceManager utilities.

BackendGuavaJava
0 likes · 13 min read
Guava ListenableFuture and Service Framework: Asynchronous Futures and Service Lifecycle Management
Qunar Tech Salon
Qunar Tech Salon
Dec 1, 2014 · Backend Development

Guava Range API: Concepts, Construction, Operations, and Discrete Domains

This article explains Guava's Range class, covering its mathematical definition, how to construct open, closed, and bounded ranges, perform containment, connectivity, intersection, span, and query operations, and use DiscreteDomain for enumerating values, with extensive Java code examples throughout.

APIBackendDiscreteDomain
0 likes · 12 min read
Guava Range API: Concepts, Construction, Operations, and Discrete Domains
Qunar Tech Salon
Qunar Tech Salon
Nov 27, 2014 · Backend Development

Guava I/O Streams, Sources and Sinks Overview

This article explains Guava’s terminology for streams, the ByteStreams and CharStreams utility methods, the deprecation of InputSupplier/OutputSupplier, and introduces the source and sink abstractions with their creation methods, common operations, and practical code examples for handling byte and character data in Java.

ByteSourceCharSourceGuava
0 likes · 14 min read
Guava I/O Streams, Sources and Sinks Overview
Qunar Tech Salon
Qunar Tech Salon
Nov 25, 2014 · Fundamentals

Guava Immutable Collections and Advanced Collection Types Overview

This article explains why immutable collections improve safety and performance, how to create them with Guava's copyOf, of, and Builder methods, and introduces Guava's extended collection types such as Multiset, Multimap, BiMap, Table, ClassToInstanceMap, RangeSet, and RangeMap with usage examples.

Data StructuresGuavaImmutable Collections
0 likes · 16 min read
Guava Immutable Collections and Advanced Collection Types Overview
Qunar Tech Salon
Qunar Tech Salon
Nov 21, 2014 · Backend Development

Using Guava to Avoid Null, Enforce Preconditions, and Simplify Optional, Ordering, and Throwables in Java

The article explains how Guava helps Java developers avoid null-related bugs, enforce method preconditions, replace cumbersome Object methods with utilities like Optional, Objects, and Ordering, and provides concise patterns for exception propagation using Throwables, all illustrated with clear code examples.

GuavaJavaPreconditions
0 likes · 18 min read
Using Guava to Avoid Null, Enforce Preconditions, and Simplify Optional, Ordering, and Throwables in Java