Tagged articles
local cache
45 articles · Page 1 of 1
This article compares four Java local caching solutions — ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache — detailing their features, performance characteristics, and code examples, while addressing cache consistency challenges in two-level cache architectures using MQ or Canal for synchronization.
Cache ConsistencyCachingCaffeine
0 likes · 11 min read


liandkJul 24, 2026 · Fundamentals
The article explains the fundamental purpose of caching—placing frequently accessed data in faster storage—to dramatically reduce database load, compares local memory caches with distributed solutions like Redis, outlines their pros, cons, suitable scenarios, and presents a two‑level cache pattern plus common pitfalls such as cache penetration, breakdown, and avalanche.
Cachingdistributed cachelocal cache
0 likes · 6 min read

The article argues that local caches add significant consistency and management complexity, so they should be avoided unless a genuine performance bottleneck exists, illustrating the point with real‑world promotion spikes, GC concerns, and careful off‑heap testing.
CachingConsistencyGC
0 likes · 4 min read

SpringBoot developers can dramatically boost throughput and cut latency by pairing a microsecond‑level local cache (Caffeine or Guava) with Redis, using a two‑level architecture that isolates hot data in JVM memory, reduces network and serialization overhead, and provides configurable eviction policies for various use cases.
Cache EvictionCaffeineGuava
0 likes · 13 min read

At billion‑level request rates, the traditional cache‑aside pattern fails, so the article proposes a three‑layer architecture—Canal captures MySQL binlog, an MQ (RocketMQ/Kafka) buffers changes, and a coordinated local cache service updates L1 caches with short TTL, achieving high performance and eventual consistency.
Cache ConsistencyCanalRocketMQ
0 likes · 12 min read

FastCache, an open‑source Go in‑memory cache from the VictoriaMetrics team, delivers extreme speed, zero garbage‑collector pressure, and built‑in thread safety through a shard‑bucket design, while offering a five‑method API that lets developers cache massive key‑value data with minimal configuration, making it ideal for high‑concurrency services and low‑latency workloads.
FastCacheGolocal cache
0 likes · 7 min read

FastCache is an open‑source Go local‑cache library that delivers extreme speed, zero GC pressure, thread safety, and a five‑method API, making it ideal for high‑concurrency services while providing clear usage guidelines, pitfalls, and suitable scenarios.
FastCacheGohigh concurrency
0 likes · 6 min read

This article outlines practical cache design principles, covering suitable scenarios, health metrics, common pitfalls like avalanche, breakdown and penetration, and concrete implementation rules for both local (Caffeine) and Redis caches to ensure microsecond‑level response and stable high‑traffic performance.
CachingConsistencycache avalanche
0 likes · 13 min read

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

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.
CachingCaffeineEhcache
0 likes · 11 min read

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.
CachingCaffeineEhcache
0 likes · 11 min read

This article explains why traditional relational databases falter under high‑concurrency loads, introduces caching as a solution, compares Redis distributed caching with local in‑process caching, and shows how combining them into a multi‑level cache can dramatically improve performance and reliability.
Cachingdistributed cachelocal cache
0 likes · 5 min read

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

This article reviews the performance challenges of the logistics pricing engine, explains the limitations of the previous 1.0 optimizations, and details the design and implementation of a new 2.0 cache strategy using Tair and local caches, key‑value modeling, pre‑heating, updates, and bottleneck mitigation, achieving the required QPS.
BackendCachingTair
0 likes · 19 min read

This article explores how caching accelerates high‑concurrency systems by reducing CPU and I/O load, compares local and distributed cache types, reviews Java cache implementations and frameworks, and presents real‑world multi‑level cache designs and pitfalls to help you select the optimal solution.
Cachingdistributed cachelocal cache
0 likes · 12 min read


政采云技术Apr 25, 2023 · Backend Development
This article explains the fundamentals of cache systems, describes the evolution from no‑cache to distributed and local caches, analyzes common challenges such as consistency, hot‑key detection, and cache avalanche, and provides practical guidelines and real‑world lessons for designing effective backend caching solutions.
Backend PerformanceCachingConsistency
0 likes · 14 min read

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

This article explains the fundamentals of caching, why caches (especially Redis) are essential for high‑performance and high‑concurrency scenarios, compares local, distributed, and multi‑level caches, and outlines their advantages, disadvantages, and typical implementation approaches.
BackendMulti-level Cachedistributed cache
0 likes · 7 min read

This article explains the fundamentals of caching, why caches (especially Redis) are essential for high‑performance and high‑concurrency scenarios, describes local, distributed, and multi‑level cache architectures, outlines their pros and cons, and provides practical implementation guidance.
Multi-level Cachedistributed cachelocal cache
0 likes · 10 min read

This article explains the fundamentals of caching, why caches like Redis are essential for high‑performance and high‑concurrency backend systems, and compares local, distributed, and multi‑level cache architectures, including their advantages, drawbacks, and typical implementation approaches.
BackendMulti-level Cachelocal cache
0 likes · 9 min read

Uber processes over 500,000 daily Presto queries across 20 clusters handling more than 50 PB of data, and by deploying Alluxio Local Cache on NVMe disks they raised cache‑hit rates from roughly 65% to over 90% while addressing real‑time partition updates, node churn, and cache‑size constraints.
AlluxioConsistent Hashingbig data
0 likes · 15 min read

This article explains how to reduce Redis read/write pressure by introducing a Guava local cache for lazy loading, presents design diagrams, provides complete Java code examples for both simple lazy caching and a microservice‑oriented device‑increment cache, and discusses the advantages, disadvantages, and practical considerations of each approach.
CachingGuavaJava
0 likes · 11 min read

This article explains the concept of caching, compares it with buffering, outlines common scenarios such as memory, SSD, static, distributed and local caches, discusses their advantages and limitations, and provides a Java Guava Cache example for practical backend performance optimization.
BackendMemorydistributed cache
0 likes · 12 min read

This article explains how to combine Redis lazy‑loading caching with Guava local cache in Java, presenting design diagrams, full code examples, and a discussion of the advantages, disadvantages, and suitable scenarios for this hybrid caching strategy.
Guavalazy loadinglocal cache
0 likes · 9 min read

The guide reviews the essential requirements for Go local caching and compares seven open‑source caches—freecache, bigcache, fastcache, offheap, groupcache, ristretto, and go‑cache—while detailing the sharded, lock‑reduced designs of freecache, bigcache, fastcache, and offheap, and explains how off‑heap allocation or pointer‑free maps achieve near zero‑GC performance.
FastCacheFreeCacheOff-heap Memory
0 likes · 10 min read

This article explains why caching is essential for reducing CPU and I/O pressure, outlines key cache attributes such as throughput and hit rate, compares popular local cache libraries, describes distributed cache options, and details the design, consistency, monitoring, and hot‑key handling of a transparent multilevel cache architecture.
ConsistencyHeliosdistributed cache
0 likes · 20 min read

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 ConsistencyCachingCaffeine
0 likes · 16 min read

The article introduces Youzan's Transparent Multilevel Cache (TMC), detailing its three‑layer architecture, hotspot detection and local caching mechanisms, integration approaches for Java applications, stability and consistency features, and performance results from real‑world e‑commerce campaigns.
CacheJavadistributed systems
0 likes · 13 min read

The article introduces Transparent Multilevel Cache (TMC), a Youzan PaaS solution that adds application‑level hotspot detection, local caching, and hit‑rate statistics to distributed caches, explains its architecture, workflow, consistency guarantees, and shows performance improvements during high‑traffic events.
Javahotspot detectionlocal cache
0 likes · 14 min read

This article explains why caching is used, distinguishes between local and distributed caches, compares popular Java cache libraries, describes Redis and Memcached differences, outlines the Cache‑Aside pattern, and discusses common cache problems such as inconsistency, penetration, breakdown, avalanche, hot‑key detection, and their mitigation strategies.
Javadistributed cachelocal cache
0 likes · 15 min read

The article presents the design and implementation of Transparent Multilevel Cache (TMC), a three‑layer caching solution that adds hotspot detection and local cache to reduce distributed cache pressure, explains its transparent Java integration, describes the sliding‑window hotspot discovery pipeline, and showcases performance gains in real‑world e‑commerce campaigns.
Javadistributed systemshotspot detection
0 likes · 14 min read

The article introduces Transparent Multilevel Cache (TMC), a comprehensive caching solution that adds hotspot detection and local caching to existing distributed cache systems, explains its three‑layer architecture, transparent Java integration, real‑time hotspot discovery process, and demonstrates performance gains in high‑traffic e‑commerce scenarios.
CacheJavadistributed systems
0 likes · 13 min read


21CTOMay 30, 2021 · Backend Development
The article introduces Youzan's Transparent Multilevel Cache (TMC), explains why hotspot cache access harms e‑commerce applications, describes its three‑layer architecture, details the Java client integration with Hermes‑SDK for automatic hotspot detection and local caching, and presents real‑world performance gains during large‑scale promotional events.
Cachedistributed systemshotspot detection
0 likes · 14 min read

The article explains Youzan's Transparent Multilevel Cache (TMC), a solution that automatically detects cache hotspots, adds an application‑level local cache, and provides hit statistics to reduce load on distributed caches, improve consistency, and boost performance for high‑traffic e‑commerce scenarios.
Cachedistributed systemshotspot detection
0 likes · 15 min read

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.
CachingCaffeineGuava
0 likes · 20 min read

Understanding Caffeine Cache in Java involves using its builder for options like expiration, refresh, and weight‑based eviction, recognizing that configuring both expireAfterWrite and expireAfterAccess is redundant, grasping core methods such as isBounded, refreshes, computeIfAbsent, and avoiding common pitfalls like mis‑ordered expiration settings, blocking loaders, cache penetration, and mutable cached objects.
Cache EvictionCaffeine CacheJava
0 likes · 15 min read

This article outlines the essential design points for building a local Java cache—including data structures, size limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and optional persistence—while providing concrete code snippets and implementation guidance.
CacheJavaeviction policy
0 likes · 11 min read

Cache leverages the space‑time trade‑off to boost performance, but introduces complexity; this guide explains its fundamental idea, local vs distributed solutions, popular Java caching libraries, and key read/write patterns such as Cache‑Aside, Read‑Through, and Write‑Behind, highlighting benefits, drawbacks, and best‑practice considerations.
Cachingcache patternsdistributed cache
0 likes · 13 min read

This article outlines the essential design considerations for building a local cache—such as data structures, size limits, eviction policies, expiration, thread safety, simple APIs, persistence, and blocking mechanisms—and demonstrates concrete Java implementations with code examples.
JavaMyBatiseviction policy
0 likes · 11 min read

This article outlines the essential design considerations for building a local cache in Java, covering data structures, capacity limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and optional persistence, with illustrative code examples.
ConcurrencyJavaeviction
0 likes · 13 min read

This article outlines the essential considerations for designing a local cache—including data structures, size limits, eviction policies, expiration, thread safety, blocking mechanisms, simple APIs, and persistence—and demonstrates implementation approaches with Java code examples such as Map usage, synchronized caches, and memoization techniques.
Javaevictionlocal cache
0 likes · 11 min read

This article outlines the essential design points for a local Java cache—including data structures, size limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and persistence options—while providing concrete code examples and implementation guidance.
CacheConcurrencyJava
0 likes · 12 min read

To achieve low‑latency, high‑throughput data access in systems like Gaode’s navigation service, the article advises evaluating CPU and I/O bottlenecks, choosing between local (HashMap/ConcurrentHashMap or Caffeine) and distributed caches (Redis preferred), applying appropriate eviction, TTL, and consistency patterns, and mitigating cache penetration, breakdown, and avalanche risks.
Cache strategiesCachingdistributed cache
0 likes · 26 min read

Youzan’s Transparent Multilevel Cache (TMC) adds automatic hotspot detection and a 64 MB local cache to existing distributed caches via a Hermes‑SDK‑augmented Jedis client, delivering transparent Java integration, strong consistency, up to 80 % local‑hit rates, and improved QPS during high‑traffic events.
CacheJavaPaaS
0 likes · 15 min read

This article explains when caching is needed, how to choose appropriate in‑process and distributed caches, design multi‑level cache architectures, handle cache updates, avoid common pitfalls such as penetration, breakdown and avalanche, and provides practical advice on serialization, GC tuning, monitoring, and framework selection.
Cache strategiesdistributed cachelocal cache
0 likes · 19 min read
