Tagged articles
27 articles
Page 1 of 1
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.

CacheCaffeineEhcache
0 likes · 12 min read
Choosing the Right Local Cache: From ConcurrentHashMap to Caffeine
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
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
JD Cloud Developers
JD Cloud Developers
May 28, 2024 · Backend Development

Mastering Ehcache: A Deep Dive into Java Local Caching Strategies

This article introduces Ehcache, an open‑source Java local‑cache framework, explains its layered storage options, flexible expiration policies, eviction strategies, and provides comprehensive code examples for configuring in‑memory, off‑heap, and disk‑persistent caches, along with practical usage tips and performance considerations.

Cache PersistenceEhcachecaching
0 likes · 15 min read
Mastering Ehcache: A Deep Dive into Java Local Caching Strategies
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
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
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
ITPUB
ITPUB
Oct 31, 2022 · Backend Development

Master MyBatis Caching: First- and Second-Level Cache Explained

This article explains MyBatis caching fundamentals, detailing first- and second-level cache concepts, configuration, cache invalidation scenarios, and custom cache integration with EHCache, supplemented by practical code snippets and quiz questions to illustrate cache behavior across SqlSessions.

CacheEhcacheMyBatis
0 likes · 12 min read
Master MyBatis Caching: First- and Second-Level Cache Explained
Senior Brother's Insights
Senior Brother's Insights
Dec 14, 2021 · Backend Development

Beyond Redis: When to Choose EhCache for Java In‑Process Caching

With hardware costs dropping, many default to Redis for caching, but it isn’t always optimal; this article examines EhCache—a pure‑Java, in‑process cache—covering its architecture, eviction policies, API and XML configurations, and step‑by‑step Spring Boot integration, helping you decide when to prefer it.

BackendCache EvictionEhcache
0 likes · 15 min read
Beyond Redis: When to Choose EhCache for Java In‑Process Caching
IT Architects Alliance
IT Architects Alliance
Aug 23, 2021 · Backend Development

Mastering Cache Strategies: From CDN to Distributed Systems

This article provides a comprehensive overview of caching in large distributed systems, covering theory, common components, classification, CDN and reverse‑proxy caches, local application caches, popular implementations like Ehcache, Guava, Memcached and Redis, and a detailed comparison of their features and trade‑offs.

BackendDistributed SystemsEhcache
0 likes · 12 min read
Mastering Cache Strategies: From CDN to Distributed Systems
macrozheng
macrozheng
Jul 5, 2021 · Backend Development

Master Spring Cache: Simplify Caching Across Redis, Ehcache, and More

This article introduces Spring Cache as a unified caching solution that abstracts away the specifics of Redis, Ehcache, and other providers, explains its core concepts, annotations, configuration, and demonstrates practical usage with code examples to eliminate manual cache handling.

EhcacheSpring BootSpring Cache
0 likes · 16 min read
Master Spring Cache: Simplify Caching Across Redis, Ehcache, and More
Wukong Talks Architecture
Wukong Talks Architecture
Jun 29, 2021 · Backend Development

Comprehensive Guide to Spring Cache: A Unified Caching Solution for Redis, Ehcache and Other Middleware

This article introduces Spring Cache as a framework‑agnostic caching abstraction that eliminates manual cache code, explains its core concepts, annotations, configuration options, and demonstrates practical usage with Redis and custom key, condition, and eviction strategies in Spring Boot applications.

BackendCacheEhcache
0 likes · 15 min read
Comprehensive Guide to Spring Cache: A Unified Caching Solution for Redis, Ehcache and Other Middleware
JavaEdge
JavaEdge
Feb 12, 2021 · Backend Development

Mastering Ehcache: A Deep Dive into Java’s Lightweight Local Cache Framework

This article provides a comprehensive overview of Ehcache, covering its core components, data‑flow mechanisms, XML configuration options, persistence behavior, and key features such as multi‑level storage, monitoring interfaces, and cache‑manager scalability for Java applications.

Cache ManagementEhcacheXML Configuration
0 likes · 7 min read
Mastering Ehcache: A Deep Dive into Java’s Lightweight Local Cache Framework
Programmer DD
Programmer DD
Aug 14, 2020 · Backend Development

Switching Spring Boot Cache from EhCache to Redis for Strong Consistency

This tutorial explains why in‑process caches like EhCache can cause consistency problems in clustered environments and demonstrates step‑by‑step how to replace EhCache with Redis in a Spring Boot 2.x application, including dependency setup, configuration, and a unit test that verifies caching behavior.

EhcacheSpring Data Redisbackend-development
0 likes · 7 min read
Switching Spring Boot Cache from EhCache to Redis for Strong Consistency
Programmer DD
Programmer DD
Jul 18, 2020 · Backend Development

How to Build an EhCache Cluster for Spring Boot: A Step‑by‑Step Guide

This tutorial explains how to configure EhCache for distributed caching in a Spring Boot application, covering serialization, XML cluster settings, deployment parameters, REST endpoints for testing, and strategies to keep cache data consistent across multiple JVM instances.

Cache ClusteringEhcacheRMI
0 likes · 9 min read
How to Build an EhCache Cluster for Spring Boot: A Step‑by‑Step Guide
Programmer DD
Programmer DD
Jul 16, 2020 · Backend Development

How to Integrate EhCache into Spring Boot for Faster Data Access

This article explains how Spring Boot automatically detects cache providers, shows how to replace the default ConcurrentHashMap with EhCache by adding the dependency, configuring ehcache.xml, and verifying the CacheManager type through unit tests, providing complete code examples and step‑by‑step instructions.

CacheManagerEhcacheSpring Boot
0 likes · 7 min read
How to Integrate EhCache into Spring Boot for Faster Data Access
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
Efficient Ops
Efficient Ops
Mar 13, 2018 · Backend Development

How a Three‑Tier Cache (Nginx + Redis + Ehcache) Boosts High‑Concurrency Systems

This article explains how a three‑layer caching architecture—combining Nginx, Redis, and Ehcache—along with template engines, double‑Nginx routing, persistence mechanisms, cluster setups, and various cache‑update strategies can dramatically improve hit rates, reduce database pressure, and prevent cache‑related failures in high‑traffic applications.

Backend ArchitectureEhcachecaching
0 likes · 17 min read
How a Three‑Tier Cache (Nginx + Redis + Ehcache) Boosts High‑Concurrency Systems
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
Qunar Tech Salon
Qunar Tech Salon
Sep 7, 2017 · Backend Development

Understanding Caching in Java with Spring Cache, Ehcache, and Redis

This article explains the concept of caching in Java, the importance of reducing database I/O, introduces Spring Cache annotations and their limitations, demonstrates conditional caching with code examples, and provides configuration details for integrating Ehcache and Redis as cache providers.

EhcacheSpring Cacheannotations
0 likes · 10 min read
Understanding Caching in Java with Spring Cache, Ehcache, and Redis