Tag

caffeine

1 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Apr 24, 2025 · Backend Development

Combining Redis and Caffeine for Multi‑Level Caching: Strategies and Best Practices

Combining Redis’s distributed, high‑capacity cache with Caffeine’s ultra‑fast local cache creates a two‑level strategy where most reads hit the in‑process cache, fall‑backs use Redis, and only rare misses query the database, dramatically cutting latency, boosting throughput, and easing DB load.

JavaRediscache strategy
0 likes · 12 min read
Combining Redis and Caffeine for Multi‑Level Caching: Strategies and Best Practices
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.

EhcacheGuavaJava
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.

EhcacheGuavacaching
0 likes · 11 min read
Design and Selection of Local In-Memory Cache Solutions for High-Performance Services
JD Tech Talk
JD Tech Talk
Mar 27, 2025 · Backend Development

Deep Dive into Caffeine Cache: getIfPresent, ReadBuffer, and Maintenance Mechanisms

This article explains the inner workings of Caffeine's cache, covering the getIfPresent method, the design of ReadBuffer and StripedBuffer, eviction policies, the maintenance cycle, and the climb algorithm that dynamically adjusts window and protected partitions for optimal performance.

BufferCacheJava
0 likes · 31 min read
Deep Dive into Caffeine Cache: getIfPresent, ReadBuffer, and Maintenance Mechanisms
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.

AspectJCache MonitoringGame Services
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 ManagementJavaRedis
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.

CacheCount-Min SketchJava
0 likes · 71 min read
Understanding the Design and Implementation of Caffeine Cache
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.

CacheJavaasync
0 likes · 12 min read
Understanding Caffeine: A High‑Performance Java Caching Library
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.

RedisSpringBootThymeleaf
0 likes · 8 min read
Five‑Step Optimization of a Category‑Tree Query in a SpringBoot Application
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.

CacheJavaSpring Boot
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.

MyBatisPerformance TuningPostgreSQL
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.

JavaPostgreSQLSQL
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.

CacheJavaSpringBoot
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
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.

CacheJavaRate Limiting
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.

EhcacheGuavaJava
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 AnnotationRedis
0 likes · 21 min read
Two-Level Cache in Spring Boot: Boost Performance with Caffeine & Redis
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 29, 2024 · Backend Development

Mastering Two-Level Caching in Spring Boot with J2Cache: A Hands‑On Guide

This article introduces J2Cache, a two‑level caching framework for Spring Boot, explains its L1 (Caffeine/Ehcache) and L2 (Redis/Memcached) architecture, and provides a complete hands‑on example covering Maven dependencies, configuration, core service classes, REST controller, and testing procedures.

J2CacheJavaRedis
0 likes · 9 min read
Mastering Two-Level Caching in Spring Boot with J2Cache: A Hands‑On Guide
Code Ape Tech Column
Code Ape Tech Column
Feb 26, 2024 · Backend Development

Implementing a Two‑Level Cache with Caffeine and Redis in Spring Boot

This article explains how to design and implement a two‑level caching architecture in Spring Boot by combining a local Caffeine cache with a remote Redis cache, covering manual approaches, annotation‑driven management with Spring Cache, and a custom AOP solution to minimize code intrusion.

CacheJavaRedis
0 likes · 18 min read
Implementing a Two‑Level Cache with Caffeine and Redis in Spring Boot