Tagged articles
83 articles
Page 1 of 1
Coder Trainee
Coder Trainee
Apr 19, 2026 · Backend Development

How to Optimize Performance and Deploy a Production‑Ready Blog System

This article walks through a complete performance‑optimization and deployment pipeline for a Spring Boot blog, covering multi‑level caching with Caffeine and Redis, database indexing and cursor pagination, read‑write splitting, asynchronous processing, rate limiting, Docker multi‑stage builds, Nginx reverse‑proxy setup, Actuator monitoring, custom metrics, health checks, alerting, JMeter load testing, and JVM tuning.

CaffeineDockerPerformance Optimization
0 likes · 17 min read
How to Optimize Performance and Deploy a Production‑Ready Blog System
Top Architect
Top Architect
Mar 25, 2026 · Backend Development

Boost API Performance 10× with a Three‑Tier Cache Pyramid in Spring Boot 3

This article explains how to design and implement a three‑level cache pyramid (Caffeine → Redis → MySQL) in Spring Boot 3, covering configuration, a reusable CacheTemplate, hot‑key handling, random TTL, warm‑up, monitoring, and load‑test results that show latency dropping from tens of milliseconds to a few milliseconds while cutting CPU and network usage dramatically.

Backend DevelopmentCaffeineJava
0 likes · 11 min read
Boost API Performance 10× with a Three‑Tier Cache Pyramid in Spring Boot 3
Architect's Guide
Architect's Guide
Mar 19, 2026 · Backend Development

Boost API Speed 10× with a Three‑Level Cache Pyramid in Spring Boot 3

This article explains why adding Redis alone may still be slow, introduces a three‑level cache pyramid (Caffeine L1, Redis L2, DB L3) built with Spring Boot 3, and provides complete configuration, code, warm‑up, monitoring, and benchmark results that reduce response time from 28 ms to 2 ms while cutting CPU usage by 35%.

CacheCaffeineJava
0 likes · 9 min read
Boost API Speed 10× with a Three‑Level Cache Pyramid in Spring Boot 3
java1234
java1234
Feb 3, 2026 · Backend Development

Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid

The article demonstrates how to achieve a ten‑fold reduction in API response time by building a three‑level cache pyramid (Caffeine L1, Redis L2, DB L3) in Spring Boot 3, covering dependencies, configuration, core template code, warm‑up, monitoring, load‑test results and common high‑concurrency pitfalls.

CacheCaffeineJava
0 likes · 8 min read
Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid
Java Architect Handbook
Java Architect Handbook
Jan 10, 2026 · Backend Development

Boost API Speed 14× with a 3‑Level Cache Pyramid in Spring Boot

By combining a local Caffeine cache, a remote Redis layer, and a MySQL database into a three‑tier cache pyramid, this guide shows how to reduce API response time from 28 ms to 2 ms, cut CPU usage by 35 %, and achieve up to 14‑fold performance gains, complete with configuration, code, and monitoring tips.

CacheCaffeinePerformance Optimization
0 likes · 12 min read
Boost API Speed 14× with a 3‑Level Cache Pyramid in Spring Boot
java1234
java1234
Jan 6, 2026 · Backend Development

Boost API Latency 10× with Spring Boot 3 and a Three‑Level Local Cache Pyramid

The article explains why adding Redis alone often remains slow, introduces a three‑level cache pyramid (L1 Caffeine, L2 Redis, L3 MySQL) built with Spring Boot 3, and shows how this design reduces request latency from 28 ms to 2 ms, cuts CPU usage by 35 % and achieves up to 14‑fold throughput improvement.

CacheCaffeineJava
0 likes · 10 min read
Boost API Latency 10× with Spring Boot 3 and a Three‑Level Local Cache Pyramid
Java Companion
Java Companion
Jan 4, 2026 · Backend Development

Achieve 10× Faster APIs with Spring Boot 3’s Three‑Level Cache Pyramid

The article demonstrates how to combine Spring Boot 3, Caffeine local cache, and Redis into a three‑level cache pyramid, reducing API response time from 28 ms to 2 ms, cutting CPU usage by 35 %, and providing detailed configuration, code examples, performance benchmarks, and mitigation strategies for common high‑concurrency pitfalls.

CacheCaffeineJava
0 likes · 10 min read
Achieve 10× Faster APIs with Spring Boot 3’s Three‑Level Cache Pyramid
Su San Talks Tech
Su San Talks Tech
Dec 9, 2025 · Backend Development

Choosing the Right Local Cache: From ConcurrentHashMap to Caffeine

This article explains why local caches are essential in high‑performance services, outlines required cache features, compares four Java‑based local cache implementations (ConcurrentHashMap, Guava Cache, Caffeine, Ehcache), and offers practical solutions for consistency, hit‑rate improvement, and technology selection.

Backend DevelopmentCacheCaffeine
0 likes · 12 min read
Choosing the Right Local Cache: From ConcurrentHashMap to Caffeine
ITPUB
ITPUB
Oct 2, 2025 · Backend Development

Master Multi-Level Caching with JetCache: Boost Performance and Consistency

JetCache, an open‑source Java caching library, combines local (Caffeine) and distributed (Redis) caches into a multi‑level system, offering annotation‑driven lazy loading, automatic refresh, consistency strategies, cache pre‑warming, monitoring, and safeguards against penetration, avalanche, and memory leaks.

CaffeineJavaJetCache
0 likes · 13 min read
Master Multi-Level Caching with JetCache: Boost Performance and Consistency
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 14, 2025 · Backend Development

5 Common Redis Cache Anti‑Patterns and How to Fix Them

This article examines five frequent Redis cache anti‑patterns—cache avalanche, unbounded local cache, stale data, missing invalidation, and oversized objects—explaining their pitfalls with code examples and showing concrete fixes that dramatically improve latency, throughput, and memory usage.

Anti‑PatternCacheCaffeine
0 likes · 15 min read
5 Common Redis Cache Anti‑Patterns and How to Fix Them
dbaplus Community
dbaplus Community
Aug 11, 2025 · Backend Development

How to Choose and Implement a High‑Performance Local Cache in Java

This article explains why a first‑level local cache is essential for high‑performance services, outlines required cache features, compares four Java implementations (ConcurrentHashMap, Guava, Caffeine, Encache), and provides solutions for consistency, hit‑rate improvement, and technology selection, concluding that Caffeine offers the best performance.

CaffeineEhcacheGuava
0 likes · 11 min read
How to Choose and Implement a High‑Performance Local Cache in Java
JD Tech Talk
JD Tech Talk
Jul 1, 2025 · Fundamentals

How False Sharing Slows Down Multithreaded Java Apps—and How to Fix It

This article explains the hidden performance killer of cache false sharing in multicore Java applications, demonstrates its impact with benchmark code, and shows how padding, the @Contended annotation, and Caffeine's internal structures can eliminate the issue for faster execution.

CaffeineContendedJava concurrency
0 likes · 10 min read
How False Sharing Slows Down Multithreaded Java Apps—and How to Fix It
JD Cloud Developers
JD Cloud Developers
Jun 30, 2025 · Backend Development

Unveiling Guava Cache Internals: Why It Lags Behind Caffeine

This article dissects Guava Cache's source code, explaining its segment‑based locking, data structures, put/get implementations, cleanup and eviction mechanisms, and then contrasts its performance and design choices with the more modern Caffeine cache, highlighting why Guava falls short.

CacheCaffeineGuava
0 likes · 39 min read
Unveiling Guava Cache Internals: Why It Lags Behind Caffeine
Java Captain
Java Captain
Apr 23, 2025 · Backend Development

Design and Selection of Local In‑Memory Caches for High‑Performance Service Architecture

This article explains the role of local in‑memory caches in high‑performance service architectures, compares implementations such as ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache, discusses cache consistency and hit‑rate challenges, and recommends Caffeine as the preferred solution for multi‑level caching with Redis or Memcached.

CaffeineEhcacheGuava
0 likes · 11 min read
Design and Selection of Local In‑Memory Caches for High‑Performance Service Architecture
Selected Java Interview Questions
Selected Java Interview Questions
Apr 16, 2025 · Backend Development

Design and Selection of Local In-Memory Cache Solutions for High-Performance Services

An overview of two‑level caching architecture, the motivations for using local in‑memory caches, essential features of a local cache, comparative analysis of implementations using ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache, and strategies for consistency, hit‑rate improvement, and practical code examples.

CaffeineEhcacheGuava
0 likes · 11 min read
Design and Selection of Local In-Memory Cache Solutions for High-Performance Services
vivo Internet Technology
vivo Internet Technology
Mar 19, 2025 · Operations

Cache Monitoring Practices for Redis and Caffeine in High‑Traffic Game Services

The article details practical monitoring strategies for both remote Redis and local Caffeine caches in high‑traffic game services, including prefix‑based Redis key tracking, Aspect‑oriented instrumentation, Caffeine statistics collection, and real‑world case studies that illustrate how these metrics identify hot‑keys, cache‑miss spikes, and reduce system load.

Cache MonitoringCaffeineaspectj
0 likes · 19 min read
Cache Monitoring Practices for Redis and Caffeine in High‑Traffic Game Services
macrozheng
macrozheng
Feb 28, 2025 · Backend Development

Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration

This article explains how to build a two‑level cache architecture using Caffeine as a local cache and Redis as a remote cache in a Spring Boot project, covering manual implementation, Spring cache annotations, and a custom AOP‑based solution while discussing advantages, consistency challenges, and best‑practice code examples.

Cache ManagementCaffeineSpring Boot
0 likes · 20 min read
Mastering Two-Level Cache in Spring Boot: Caffeine + Redis Integration
JD Tech
JD Tech
Feb 19, 2025 · Backend Development

Understanding the Design and Implementation of Caffeine Cache

This article provides a comprehensive walkthrough of Caffeine cache's architecture, explaining its fixed-size eviction policy, underlying data structures such as ConcurrentHashMap, MPSC buffers, Count‑Min Sketch frequency tracking, and the dynamic window‑probation‑protected zones, while detailing key methods like put, getIfPresent, and maintenance.

CacheCaffeineCount-Min Sketch
0 likes · 71 min read
Understanding the Design and Implementation of Caffeine Cache
ITPUB
ITPUB
Oct 24, 2024 · Backend Development

How We Boosted a Category Tree API from 100 QPS to 500+ with 5 Optimizations

This article recounts five successive performance optimizations applied to a SpringBoot‑Thymeleaf category‑tree API—adding Redis caching, scheduled async refresh jobs, local Caffeine memory cache, gzip compression via Nginx, and Redis data slimming—transforming query latency and scaling QPS from around 100 to over 500.

CaffeineGzipSpringBoot
0 likes · 10 min read
How We Boosted a Category Tree API from 100 QPS to 500+ with 5 Optimizations
Architect
Architect
Oct 21, 2024 · Backend Development

Choosing the Right Local Cache in Java: From ConcurrentHashMap to Caffeine

This article examines why and how to use local in‑process caches in Java, compares four implementations—ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache—covers essential cache features, consistency challenges, hit‑rate optimization, and recommends Caffeine as the most performant choice for a two‑level caching architecture.

Cache ConsistencyCaffeineConcurrentHashMap
0 likes · 11 min read
Choosing the Right Local Cache in Java: From ConcurrentHashMap to Caffeine
JD Tech Talk
JD Tech Talk
Oct 18, 2024 · Backend Development

Understanding Caffeine: A High‑Performance Java Caching Library

This article introduces the Caffeine Java caching library, detailing its features, core classes and parameters, various loading strategies—including manual, automatic, and asynchronous loading—eviction policies, removal listeners, and cache statistics, accompanied by practical code examples for integration in backend applications.

AsyncCacheCaffeine
0 likes · 12 min read
Understanding Caffeine: A High‑Performance Java Caching Library
JD Cloud Developers
JD Cloud Developers
Oct 18, 2024 · Backend Development

Mastering Caffeine Cache: High‑Performance Java Caching Techniques

This guide introduces Caffeine, a high‑performance Java caching library, explains its core features, configuration options, loading strategies—including manual, automatic, asynchronous, and async loading caches—eviction policies, removal listeners, and statistics collection, providing code examples for each use case.

CaffeineJavaeviction
0 likes · 16 min read
Mastering Caffeine Cache: High‑Performance Java Caching Techniques
IT Services Circle
IT Services Circle
Sep 29, 2024 · Backend Development

Five‑Step Optimization of a Category‑Tree Query in a SpringBoot Application

This article details a step‑by‑step performance improvement journey for a category‑tree query in a SpringBoot‑Thymeleaf system, covering Redis caching, scheduled jobs, local Caffeine cache, Gzip compression, and data slimming with byte‑array storage to resolve latency and large‑key issues.

CaffeineGzipPerformance Optimization
0 likes · 8 min read
Five‑Step Optimization of a Category‑Tree Query in a SpringBoot Application
Su San Talks Tech
Su San Talks Tech
Sep 29, 2024 · Backend Development

5 Proven Optimizations That Supercharged Our Category Tree API Performance

This article walks through five successive performance optimizations—adding Redis caching, scheduling async updates, introducing a Caffeine local cache, enabling Nginx GZip compression, and compressing Redis data—to dramatically reduce the size and latency of a category‑tree API in a SpringBoot application.

CaffeineGzipPerformance Optimization
0 likes · 10 min read
5 Proven Optimizations That Supercharged Our Category Tree API Performance
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 21, 2024 · Backend Development

Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage

This article introduces the high‑performance Caffeine caching library for Spring Boot 3.2, explains its core features, demonstrates detailed performance benchmarks, and provides practical code examples covering synchronous and asynchronous operations, eviction policies, removal listeners, refresh mechanisms, and statistics collection.

AsyncCacheCaffeine
0 likes · 12 min read
Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage
Top Architect
Top Architect
Aug 3, 2024 · Backend Development

Optimizing a High‑Concurrency Transaction Statistics Interface from 30 seconds to Sub‑Second Performance

This article presents a real‑world case study of a high‑concurrency data‑processing interface whose response time was reduced from 30 seconds to under one second by diagnosing SQL bottlenecks, refactoring MyBatis code, applying PostgreSQL array aggregation, and introducing a Caffeine cache, while also discussing the limits of relational databases and promoting related AI services.

Backend DevelopmentCaffeineMyBatis
0 likes · 13 min read
Optimizing a High‑Concurrency Transaction Statistics Interface from 30 seconds to Sub‑Second Performance
Top Architect
Top Architect
Jul 10, 2024 · Backend Development

Optimizing a High-Concurrency Interface: Reducing Response Time from 30 s to 0.8 s with SQL Refactoring and Caffeine Caching

This article presents a real‑world case of optimizing a high‑concurrency transaction‑statistics API, detailing diagnosis of a 30‑second latency, SQL refactoring with array_agg and unnest, Java‑level improvements, and Caffeine caching, while also sharing promotional offers for ChatGPT services and a developer community.

CaffeineJavaPerformance Optimization
0 likes · 13 min read
Optimizing a High-Concurrency Interface: Reducing Response Time from 30 s to 0.8 s with SQL Refactoring and Caffeine Caching
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2024 · Backend Development

Caffeine Cache Introduction, Basics, and Spring Boot Integration

This article introduces the Java Caffeine caching library, explains its manual, loading, and async cache APIs, details eviction and refresh strategies, shows how to collect statistics, and demonstrates full integration with Spring Boot using Maven dependencies, cache annotations, constant definitions, configuration classes, and usage examples.

BackendCacheCaffeine
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
FunTester
FunTester
Apr 10, 2024 · Backend Development

Why Caffeine’s Default Scheduler Skips Expired Eviction and How to Enable It

This article explains why Caffeine’s default scheduler (disabledScheduler) does not trigger RemovalListener on expired entries, details the three cache cleanup strategies, compares the four built‑in schedulers, and shows how to configure a functional scheduler with code examples.

CacheCaffeineJava
0 likes · 9 min read
Why Caffeine’s Default Scheduler Skips Expired Eviction and How to Enable It
FunTester
FunTester
Mar 25, 2024 · Backend Development

Implementing Dynamic Rate Limiting with Caffeine Cache in Java

This article explains how to build a high‑performance, dynamically configurable rate‑limiting utility for Java applications using Caffeine cache with a 1‑second refresh interval, covering data structures, limit‑checking logic, dynamic configuration, and sample code with test results.

BackendCaffeineJava
0 likes · 5 min read
Implementing Dynamic Rate Limiting with Caffeine Cache in Java
Code Ape Tech Column
Code Ape Tech Column
Mar 22, 2024 · Backend Development

Comparison of Java Local Caching Solutions: Guava, Caffeine, and Ehcache

This article reviews three popular Java in‑process caching libraries—Guava, Caffeine, and Ehcache—explaining their configuration options, performance characteristics, monitoring capabilities, advantages and disadvantages, and provides a side‑by‑side comparison to help developers choose the most suitable local cache for their applications.

CaffeineEhcacheGuava
0 likes · 10 min read
Comparison of Java Local Caching Solutions: Guava, Caffeine, and Ehcache
macrozheng
macrozheng
Mar 8, 2024 · Backend Development

Two-Level Cache in Spring Boot: Boost Performance with Caffeine & Redis

Learn how to implement a two‑level caching architecture in Spring Boot using Caffeine as a local cache and Redis as a remote cache, covering manual implementations, annotation‑driven approaches with @Cacheable/@CachePut/@CacheEvict, and a custom @DoubleCache annotation to minimize code intrusion while improving response times.

Aspect Oriented ProgrammingCache AnnotationCaffeine
0 likes · 21 min read
Two-Level Cache in Spring Boot: Boost Performance with Caffeine & Redis
Su San Talks Tech
Su San Talks Tech
Feb 12, 2024 · Backend Development

How to Warm Up Your Cache for High‑Concurrency Systems

Cache warming, a technique used in high‑concurrency systems to preload frequently accessed data before traffic spikes, improves hit rates, reduces latency, prevents cache breakdowns, and eases backend load, with methods ranging from startup loading and scheduled jobs to Spring Boot listeners, Redis tools, and Caffeine loaders.

Backend PerformanceCaffeineJava
0 likes · 10 min read
How to Warm Up Your Cache for High‑Concurrency Systems
ITPUB
ITPUB
Feb 10, 2024 · Backend Development

How to Warm Up Your Cache to Boost High‑Concurrency System Performance

Cache warming, a technique used in high‑concurrency systems, involves preloading frequently accessed data into memory before traffic spikes to improve hit rates, reduce cold‑start latency, prevent cache breakdowns, and lessen backend load, with various strategies such as startup loading, scheduled jobs, manual triggers, Redis tools, and Caffeine loaders demonstrated through Spring Boot code examples.

BackendCacheCaffeine
0 likes · 10 min read
How to Warm Up Your Cache to Boost High‑Concurrency System Performance
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 22, 2024 · Backend Development

Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine

This guide walks through implementing a two‑level cache in Spring Boot 2.7 using Lettuce’s CacheFrontend together with Caffeine, covering dependency setup, configuration, custom CacheAccessor, bean definitions, and sample endpoints that demonstrate automatic synchronization and eviction between local JVM cache and Redis.

CacheFrontendCaffeineSpring Boot
0 likes · 7 min read
Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine
JD Cloud Developers
JD Cloud Developers
Jan 16, 2024 · Backend Development

Choosing the Right Java Local Cache: Guava vs Caffeine vs Ehcache

An in‑depth comparison of popular Java in‑process caching solutions—Guava, Caffeine, and Ehcache—covers their expiration policies, capacity limits, eviction strategies, monitoring features, performance optimizations, and ideal use cases, helping developers select the most suitable cache for their applications.

CacheCaffeineEhcache
0 likes · 10 min read
Choosing the Right Java Local Cache: Guava vs Caffeine vs Ehcache
IT Services Circle
IT Services Circle
Jan 16, 2024 · Backend Development

Cache Prewarming Techniques and Implementation in Spring Boot and Redis

This article explains cache prewarming—its purpose, benefits, and various strategies such as startup loading, scheduled tasks, manual triggers, and cache loaders—while providing concrete Spring Boot and Redis examples, including code snippets for ApplicationReadyEvent, CommandLineRunner, InitializingBean, @PostConstruct, @Scheduled, and Caffeine cache loader.

Backend PerformanceCacheCaffeine
0 likes · 9 min read
Cache Prewarming Techniques and Implementation in Spring Boot and Redis
Liangxu Linux
Liangxu Linux
Dec 18, 2023 · Operations

How to Stop Ubuntu from Auto‑Locking and Sleeping After Inactivity

This guide explains why Ubuntu locks the screen after a few minutes of idle and provides three practical methods—adjusting power settings, using the Caffeine app, and editing UPower configuration—to prevent automatic sleep, along with step‑by‑step commands and warnings about energy efficiency.

CaffeineUPowerUbuntu
0 likes · 4 min read
How to Stop Ubuntu from Auto‑Locking and Sleeping After Inactivity
IT Xianyu
IT Xianyu
Dec 10, 2023 · Backend Development

Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration

This article provides a comprehensive overview of the Caffeine local cache library, covering its fundamentals, configuration options, loading strategies, eviction policies, statistics, and detailed steps for integrating Caffeine with Spring Boot using annotations and custom cache managers.

CacheCaffeineJava
0 likes · 17 min read
Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration
Architecture Digest
Architecture Digest
Jul 20, 2023 · Backend Development

Comprehensive Guide to Using Caffeine Cache in Java and Spring Boot

This article provides an in‑depth overview of the Caffeine local cache library for Java, covering its concepts, configuration options, loading strategies, eviction policies, asynchronous usage, statistics collection, and step‑by‑step integration with Spring Boot including annotations and practical code examples.

BackendCacheCaffeine
0 likes · 15 min read
Comprehensive Guide to Using Caffeine Cache in Java and Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jul 11, 2023 · Backend Development

Design and Implementation of a High‑Performance Distributed Cache with Redis and Caffeine for Spring Boot Services

This article outlines the design goals, architecture, and implementation details of a high‑performance distributed caching solution for Spring Boot applications, combining Redis as a first‑level cache with Caffeine as a second‑level cache, and provides configuration, usage examples, and future enhancement plans.

CaffeineJavaSpring Boot
0 likes · 11 min read
Design and Implementation of a High‑Performance Distributed Cache with Redis and Caffeine for Spring Boot Services
IT Services Circle
IT Services Circle
May 16, 2023 · Backend Development

Multi‑Stage Optimization of Category Tree Queries in a SpringBoot Application

This article details a step‑by‑step performance optimization of a category‑tree query in a SpringBoot‑Thymeleaf e‑commerce system, covering initial Redis caching, periodic job updates, local Caffeine cache, Gzip compression, data slimming, and byte‑level compression to dramatically improve response times and reduce Redis key size.

CaffeineGzipSpringBoot
0 likes · 9 min read
Multi‑Stage Optimization of Category Tree Queries in a SpringBoot Application
Su San Talks Tech
Su San Talks Tech
May 14, 2023 · Backend Development

How We Boosted a Classification Tree API 10× Faster with 5 Smart Optimizations

In this article we walk through five successive optimizations—adding Redis caching, scheduling asynchronous jobs, introducing local Caffeine cache, enabling Nginx GZip compression, and slimming Redis data—to dramatically improve the performance of a SpringBoot‑Thymeleaf classification‑tree query, reducing response size from 1 MB to 100 KB and raising QPS from 100 to over 500.

CaffeineNginxSpringBoot
0 likes · 10 min read
How We Boosted a Classification Tree API 10× Faster with 5 Smart Optimizations
Architecture Digest
Architecture Digest
Mar 14, 2023 · Backend Development

Design and Selection of Local In-Memory Cache Solutions for Two-Level Cache Architecture

An overview of two-level cache architecture explains why local in-memory caches are needed, outlines essential cache features, compares implementations using ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache with code examples, and discusses consistency, hit-rate improvement, and technology selection, recommending Caffeine for best performance.

CaffeineEhcacheGuava
0 likes · 11 min read
Design and Selection of Local In-Memory Cache Solutions for Two-Level Cache Architecture
Top Architect
Top Architect
Mar 6, 2023 · Backend Development

Using Caffeine Cache in Spring Boot: Features, Configuration, and Code Examples

This article introduces Caffeine Cache as a modern local caching solution, explains its W‑TinyLFU algorithm advantages over Guava, demonstrates various loading and eviction strategies, and provides detailed Spring Boot integration examples with Maven dependencies, configuration, annotations, and custom bean setups.

CacheCaffeineJava
0 likes · 24 min read
Using Caffeine Cache in Spring Boot: Features, Configuration, and Code Examples
Sanyou's Java Diary
Sanyou's Java Diary
Feb 20, 2023 · Backend Development

Mastering Spring Cache: From Hard‑Coded to Multi‑Level Redis Integration

This tutorial walks through the evolution from manual Redis calls to Spring Cache abstraction, explains AOP‑based proxying, details core annotations, demonstrates Caffeine and Redisson integration, explores list caching, and shows how to build a custom two‑level cache for high‑performance Java back‑ends.

Backend DevelopmentCaffeineMulti-level Cache
0 likes · 18 min read
Mastering Spring Cache: From Hard‑Coded to Multi‑Level Redis Integration
Code Ape Tech Column
Code Ape Tech Column
Jan 16, 2023 · Backend Development

Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis

This article explains how to replace manual cache handling with Spring Cache annotations, introduces the concepts of L1 (Caffeine) and L2 (Redis) caches, discusses design considerations for consistency, null handling, eviction, and provides practical Maven and configuration examples for Java backend applications.

CacheCaffeineredis
0 likes · 18 min read
Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis
Sohu Tech Products
Sohu Tech Products
Dec 7, 2022 · Backend Development

Comprehensive Guide to Using Caffeine Cache in Java

This article provides an in‑depth tutorial on configuring and using the Caffeine caching library in Java, covering cache creation, property settings such as initial capacity, maximum size, weight, expiration policies, statistics collection, custom listeners, and advanced features like removal listeners and cache writers.

BackendCacheCaffeine
0 likes · 18 min read
Comprehensive Guide to Using Caffeine Cache in Java
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 18, 2022 · Backend Development

Diagnosing HTTP Timeout Issues in Spring Boot Microservices Caused by Caffeine Cache Eviction Lock Contention

The article analyzes a weekend outage of a Spring Boot microservice where all HTTP requests timed out, tracing the root cause to Caffeine's synchronous cache eviction lock being blocked by a long‑running compute operation, and proposes using AsyncCache with a dedicated thread pool to avoid similar contention.

Cache EvictionCaffeineJFR
0 likes · 11 min read
Diagnosing HTTP Timeout Issues in Spring Boot Microservices Caused by Caffeine Cache Eviction Lock Contention
Code Ape Tech Column
Code Ape Tech Column
May 11, 2022 · Backend Development

Implementing Two-Level Cache with Caffeine and Redis in Spring Boot

This article explains the design and implementation of a two‑level caching architecture using local Caffeine cache as L1 and remote Redis as L2 in Spring Boot, covering manual cache handling, annotation‑based management with Spring Cache, and a custom annotation with AOP to minimize code intrusion.

Cache AnnotationCaffeineSpring Boot
0 likes · 17 min read
Implementing Two-Level Cache with Caffeine and Redis in Spring Boot
NetEase Yanxuan Technology Product Team
NetEase Yanxuan Technology Product Team
Apr 6, 2022 · Backend Development

Server-Side Caching: Local, Distributed, and Multi-Level Cache Architecture Practices

Server‑side caching improves performance by trading space for time, using local caches like HashMap, Guava, Ehcache, and Caffeine, distributed caches such as Redis, and multi‑level architectures that combine in‑process, distributed, and database layers, while employing consistency patterns, monitoring, and hot‑key detection.

Cache ConsistencyCaffeineHot Key Detection
0 likes · 16 min read
Server-Side Caching: Local, Distributed, and Multi-Level Cache Architecture Practices
Sohu Tech Products
Sohu Tech Products
Sep 8, 2021 · Backend Development

Hot Data Detection and Optimized Caching with Caffeine and HotCaffeine

This article explains the concept of hot data, categorizes its types, discusses caching trade‑offs, introduces LFU, LRU and TinyLFU algorithms, describes the HotCaffeine system architecture and features, and presents performance improvements and practical deployment considerations for Java backend services.

CaffeineHotCaffeineJava
0 likes · 12 min read
Hot Data Detection and Optimized Caching with Caffeine and HotCaffeine
Top Architect
Top Architect
Jun 27, 2021 · Backend Development

Using Caffeine Cache in Spring Boot: Algorithms, Configuration, and Code Examples

This article introduces Caffeine Cache, explains its W‑TinyLFU eviction algorithm, compares it with Guava, and provides detailed usage examples—including manual, synchronous, and asynchronous loading, eviction policies, Spring Boot integration, annotations, and configuration snippets—for building high‑performance backend caches.

CacheCaffeineJava
0 likes · 20 min read
Using Caffeine Cache in Spring Boot: Algorithms, Configuration, and Code Examples
DeWu Technology
DeWu Technology
May 14, 2021 · Backend Development

Local and Distributed Caching: Concepts and Implementations

In high‑traffic e‑commerce systems, caching—ranging from simple in‑JVM HashMap caches to Guava, Caffeine, and Redis distributed stores—reduces latency by applying eviction policies such as FIFO, LRU, LFU, or W‑TinyLFU, while employing consistency strategies like expiration, write‑through, and cache‑aside to mitigate breakdown, avalanche, and penetration issues.

CaffeineGuavaJava
0 likes · 20 min read
Local and Distributed Caching: Concepts and Implementations
ZhiKe AI
ZhiKe AI
Mar 15, 2021 · Backend Development

Building a Standalone In-Memory Cache with Expiration Support

This article explains how to create a simple single‑node in‑memory cache that supports per‑entry expiration by defining a generic cache interface and implementing it with Caffeine, using ConcurrentHashMap to store multiple caches keyed by expiration time.

CacheCaffeineExpiration
0 likes · 5 min read
Building a Standalone In-Memory Cache with Expiration Support
Top Architect
Top Architect
Jan 28, 2021 · Backend Development

Deep Dive into Caffeine Cache: High‑Performance Design, W‑TinyLFU Algorithm, and Implementation Details

This article explains Caffeine, a high‑performance Java local cache, comparing it with Guava Cache, detailing its W‑TinyLFU eviction policy, asynchronous read/write buffers, timer‑wheel expiration, and provides extensive source code analysis to illustrate its design and optimization techniques.

AlgorithmsCacheCaffeine
0 likes · 36 min read
Deep Dive into Caffeine Cache: High‑Performance Design, W‑TinyLFU Algorithm, and Implementation Details
vivo Internet Technology
vivo Internet Technology
Jan 27, 2021 · Backend Development

Caffeine Cache: Principles, High‑Performance Read/Write, and Practical Usage in Java

Caffeine is a high‑performance Java 8 local‑cache library that replaces Guava by using the W‑TinyLFU algorithm with three‑queue LRU structures and lock‑free read/write buffers, offering extensive configuration, dynamic runtime adjustments, and safe back‑source loading with distributed locks to prevent cache‑stampede.

CacheCaffeineJava
0 likes · 13 min read
Caffeine Cache: Principles, High‑Performance Read/Write, and Practical Usage in Java
Architecture Digest
Architecture Digest
Dec 17, 2020 · Backend Development

Deep Dive into Caffeine Cache: High‑Performance Design and Source‑Code Analysis

This article explains Caffeine, a high‑performance Java local cache that supersedes Guava Cache, by detailing its design principles such as the W‑TinyLFU eviction algorithm, FrequencySketch implementation, adaptive window sizing, asynchronous read/write buffers, and timer‑wheel expiration, accompanied by extensive code examples.

CacheCaffeineFrequencySketch
0 likes · 37 min read
Deep Dive into Caffeine Cache: High‑Performance Design and Source‑Code Analysis
Programmer DD
Programmer DD
Jul 15, 2020 · Backend Development

Why Caffeine Outperforms Guava: Deep Dive into Java Caching, Benchmarks & Migration

This article explains Caffeine's high‑performance local cache features, presents JMH benchmark results that show it beating Guava, ConcurrentMap and ehcache, details its expiration, refresh and eviction mechanisms, compares memory usage and eviction algorithms, and provides migration code for Guava users.

BenchmarkCacheCaffeine
0 likes · 13 min read
Why Caffeine Outperforms Guava: Deep Dive into Java Caching, Benchmarks & Migration
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