Tagged articles
10 articles
Page 1 of 1
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
dbaplus Community
dbaplus Community
Nov 5, 2024 · Backend Development

How a Two‑Level Cache Boosted High‑Concurrency Performance in a Kubernetes System

The article details how designing a two‑level cache architecture—combining local and distributed caches—dramatically reduced CPU usage, response time, and improved system capacity under high QPS workloads in a Kubernetes‑based container environment, while evaluating trade‑offs of several caching strategies.

Backend DevelopmentPerformance Optimizationcaching
0 likes · 11 min read
How a Two‑Level Cache Boosted High‑Concurrency Performance in a Kubernetes System
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 11, 2024 · Backend Development

How a Two‑Level Cache Boosted High‑Concurrency Container Performance

By redesigning the caching layer with a two‑level architecture combining local and distributed caches, the author dramatically reduced CPU usage, lowered response times, and increased system capacity under high QPS workloads, while evaluating trade‑offs of various cache strategies, pre‑warming, refresh mechanisms, and operational considerations.

Distributed SystemsPerformance Optimizationcaching
0 likes · 11 min read
How a Two‑Level Cache Boosted High‑Concurrency Container Performance
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
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.

CacheJavaSpring Boot
0 likes · 18 min read
Implementing a Two‑Level Cache with Caffeine and Redis in Spring Boot
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
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
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
Architect's Tech Stack
Architect's Tech Stack
Sep 8, 2020 · Backend Development

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

This article explains how to design and build a simple two‑level caching solution in Java, covering generic cache interfaces, local caching with Guava, distributed caching with Redis, configuration details, version‑controlled cache keys, and practical usage within a Spring Boot application.

GuavaSpring Bootcaching
0 likes · 25 min read
Implementing a Two‑Level Cache System with Guava and Redis in Java