Tagged articles
38 articles
Page 1 of 1
Architect's Guide
Architect's Guide
Nov 4, 2025 · Backend Development

Mastering Redis Cache Eviction: Strategies, Pitfalls, and Solutions

Explore Redis cache eviction policies, understand how strategies like allkeys‑lru, volatile‑ttl, and noeviction work, and learn practical solutions for cache penetration, breakdown, and avalanche—including Bloom filters, mutex locks, and staggered expirations—to keep your backend resilient under high load.

BackendCache Evictioncache-penetration
0 likes · 10 min read
Mastering Redis Cache Eviction: Strategies, Pitfalls, and Solutions
FunTester
FunTester
Jul 17, 2024 · Backend Development

Mastering Backend Caching: Strategies, Types, and Common Pitfalls

This article provides a comprehensive guide to backend caching, covering fundamental concepts, usage scenarios, read‑through and cache‑aside strategies, local and distributed cache types, popular services like Redis and Memcached, eviction algorithms such as FIFO, LRU, LFU, and common issues like consistency, avalanche, penetration, and stampede, along with practical mitigation techniques.

Backend DevelopmentCache EvictionCache Strategies
0 likes · 14 min read
Mastering Backend Caching: Strategies, Types, and Common Pitfalls
MaGe Linux Operations
MaGe Linux Operations
Feb 1, 2024 · Backend Development

How to Master In‑Memory Caching: Strategies, Pitfalls, and Performance Boosts

This article explores common caching scenarios, selection criteria, and best‑practice pitfalls, demonstrates a Go demo with configurable cache modes, compares byte‑versus‑struct caches, discusses concurrency, expiration, failover, cache transfer, lock contention, memory management, and provides benchmark results to guide high‑performance backend development.

Cache EvictionGoIn-Memory Cache
0 likes · 23 min read
How to Master In‑Memory Caching: Strategies, Pitfalls, and Performance Boosts
Programmer DD
Programmer DD
Dec 8, 2023 · Backend Development

Mastering Distributed Caching with Redis: Strategies, Types, and Pitfalls

Redis serves as a powerful in‑memory key‑value store for distributed caching, offering various data structures, persistence options, deployment modes, eviction policies, and update strategies, while addressing consistency challenges, cache miss scenarios, and failure modes such as penetration, breakdown, and avalanche.

Cache ConsistencyCache EvictionSpring Boot
0 likes · 13 min read
Mastering Distributed Caching with Redis: Strategies, Types, and Pitfalls
Architect
Architect
Jul 19, 2023 · Databases

Understanding Redis LRU and LFU Cache Eviction Algorithms

This article explains the principles, implementation details, and trade‑offs of Redis’s LRU and LFU cache eviction algorithms, including their data structures, code snippets, configuration parameters, and practical guidance on choosing the appropriate strategy based on workload characteristics.

Cache EvictionLFULRU
0 likes · 13 min read
Understanding Redis LRU and LFU Cache Eviction Algorithms
vivo Internet Technology
vivo Internet Technology
Jul 5, 2023 · Databases

Implementation of Redis LRU and LFU Cache Eviction Algorithms

Redis implements approximate LRU and LFU eviction policies by sampling keys and using a compact 24‑bit field to store timestamps and counters, where LRU evicts the least recently accessed items and LFU evicts those with low, decay‑adjusted access frequency, each with trade‑offs for different workloads.

Cache EvictionLFULRU
0 likes · 13 min read
Implementation of Redis LRU and LFU Cache Eviction Algorithms
DataFunTalk
DataFunTalk
May 25, 2023 · Artificial Intelligence

Optimizing Distributed Cache for Large-Scale Deep Learning Training with Alluxio and SiloD

This article examines the storage bottlenecks in large‑scale AI training, evaluates local‑disk and Alluxio‑based distributed caching strategies, proposes uniform cache eviction and replica‑aware global policies, and introduces the SiloD framework for coordinated compute‑storage scheduling to dramatically improve GPU utilization and overall cluster throughput.

AI trainingAlluxioCache Eviction
0 likes · 16 min read
Optimizing Distributed Cache for Large-Scale Deep Learning Training with Alluxio and SiloD
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
IT Architects Alliance
IT Architects Alliance
Jul 18, 2022 · Backend Development

Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems

The article explains the benefits, costs, and various update, penetration, no‑hole, avalanche, and hot‑key optimization techniques for caching in high‑concurrency distributed systems, providing practical guidance on choosing appropriate strategies based on consistency requirements and system load.

Cache EvictionDistributed Systemscache-penetration
0 likes · 16 min read
Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems
Programmer DD
Programmer DD
Jul 18, 2022 · Backend Development

Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration

This article explains the advantages of Caffeine Cache's W‑TinyLFU algorithm over traditional FIFO, LRU, and LFU policies, details its eviction and reference‑type strategies, and provides step‑by‑step guidance for integrating Caffeine into Spring Boot applications with code examples and configuration tips.

Cache EvictionCaffeine CacheJava
0 likes · 27 min read
Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration
Architecture Digest
Architecture Digest
Jun 9, 2022 · Backend Development

Comprehensive Guide to Caching: Principles, Types, Strategies, and Best Practices

This article provides an in‑depth overview of caching, covering its definition, when to use it, core concepts, various cache types (client, server, CDN, reverse‑proxy, in‑process, distributed), eviction policies, multi‑level cache architectures, common pitfalls such as cache avalanche, penetration and breakdown, and practical mitigation techniques.

BackendCache Evictioncaching
0 likes · 30 min read
Comprehensive Guide to Caching: Principles, Types, Strategies, and Best Practices
IT Services Circle
IT Services Circle
May 28, 2022 · Backend Development

Understanding Redis Eviction Policies and Implementing LRU Cache in Java

This article explains Redis memory eviction strategies, including volatile and allkeys policies, details the approximate LRU algorithm Redis uses, and provides Java implementations of an LRU cache using LinkedHashMap and a custom doubly‑linked list, complete with code examples and configuration settings.

Backend DevelopmentCache EvictionJava
0 likes · 7 min read
Understanding Redis Eviction Policies and Implementing LRU Cache in Java
Top Architect
Top Architect
Mar 2, 2022 · Backend Development

Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems

The article explains why caching is essential for high‑concurrency distributed systems, analyzes its benefits and costs, and then details various cache‑update, penetration‑prevention, bottom‑hole, avalanche, and hot‑key‑rebuild optimization techniques, offering practical guidance for reliable and performant backend architectures.

Cache EvictionDistributed Systemsbloom-filter
0 likes · 15 min read
Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems
IT Architects Alliance
IT Architects Alliance
Feb 28, 2022 · Operations

Cache Design and Optimization Strategies in High-Concurrency Distributed Systems

This article examines the role of caching in high‑concurrency distributed systems, outlining its benefits and costs, various update policies such as LRU/LFU/FIFO, timeout eviction, active refresh, and advanced techniques like cache penetration protection, no‑hole, avalanche, and hot‑key mitigation.

Cache EvictionDistributed Systemscache-penetration
0 likes · 15 min read
Cache Design and Optimization Strategies in High-Concurrency Distributed Systems
Architect
Architect
Feb 27, 2022 · Backend Development

Cache Design and Optimization in High‑Concurrency Distributed Systems

This article explains the role of caching in high‑concurrency distributed systems, detailing its benefits, costs, various update strategies, and advanced optimizations such as penetration protection, bottom‑hole mitigation, avalanche prevention, and hot‑key rebuild handling.

Cache EvictionDistributed SystemsHot Key
0 likes · 15 min read
Cache Design and Optimization in High‑Concurrency Distributed Systems
Architecture Digest
Architecture Digest
Feb 21, 2022 · Backend Development

Cache Design and Optimization Strategies in Distributed Systems

This article explains the benefits, costs, and various update, penetration, bottom‑hole, avalanche, and hot‑key rebuilding strategies for caches in high‑concurrency distributed systems, offering practical guidance on choosing eviction algorithms, using Bloom filters, and improving overall system performance and reliability.

Cache EvictionDistributed Systemsbloom-filter
0 likes · 13 min read
Cache Design and Optimization Strategies in Distributed Systems
Code Ape Tech Column
Code Ape Tech Column
Feb 16, 2022 · Backend Development

Cache Design and Optimization Strategies for Distributed Systems

This article explains the benefits, costs, and various update, penetration, hole, avalanche, and hot‑key optimization techniques for caches in high‑concurrency distributed systems, providing practical guidance on choosing appropriate strategies such as LRU/LFU/FIFO, timeout eviction, proactive updates, Bloom filters, and concurrency‑aware batch operations.

Cache Evictioncache-penetrationcaching
0 likes · 15 min read
Cache Design and Optimization Strategies for Distributed Systems
IT Architects Alliance
IT Architects Alliance
Feb 11, 2022 · Backend Development

Cache Design and Optimization Strategies in High-Concurrency Distributed Systems

The article discusses the importance of caching in high‑concurrency distributed systems, outlining its benefits and costs, various update policies such as LRU/LFU/FIFO, expiration, active refresh, and advanced optimizations like penetration protection, hole mitigation, avalanche prevention, and hot‑key rebuild techniques.

Cache EvictionDistributed SystemsPerformance Optimization
0 likes · 14 min read
Cache Design and Optimization Strategies in High-Concurrency Distributed Systems
Top Architect
Top Architect
Feb 11, 2022 · Backend Development

Cache Design and Optimization Strategies for High‑Concurrency Distributed Systems

The article explains why caching is essential in high‑concurrency distributed systems, analyzes its benefits and costs, and then details various cache update, penetration, no‑hole, avalanche, and hot‑key rebuilding techniques, offering practical guidance for backend engineers.

Cache EvictionDistributed Systemsbackend optimization
0 likes · 14 min read
Cache Design and Optimization Strategies for High‑Concurrency Distributed Systems
Architecture Digest
Architecture Digest
Jan 30, 2022 · Backend Development

Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems

This article examines the role of caching in high‑concurrency distributed systems, outlining its performance benefits and associated costs, and detailing various cache‑update strategies—including LRU/LFU/FIFO, expiration, active refresh, Bloom‑filter protection, and solutions for penetration, avalanche, hot‑key rebuild, and the “no‑bottom‑hole” problem.

Cache EvictionDistributed Systemsbloom-filter
0 likes · 15 min read
Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems
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
Programmer DD
Programmer DD
Sep 16, 2021 · Backend Development

Mastering Cache Strategies: Types, Hit Rates, Eviction & Design Patterns

Explore comprehensive caching concepts—including client, server, and CDN caches—along with hit rate metrics, eviction methods, popular strategies like FIFO, LRU, LFU, and design patterns such as Cache‑Aside, Read/Write‑Through, and Write‑Behind, plus essential testing considerations for robust application performance.

Backend PerformanceCache EvictionCache Hit Rate
0 likes · 8 min read
Mastering Cache Strategies: Types, Hit Rates, Eviction & Design Patterns
Architect's Tech Stack
Architect's Tech Stack
Jun 24, 2021 · Backend Development

Caffeine Cache in Spring Boot: Algorithms, Configuration, and Practical Usage

This article introduces Caffeine Cache as a high‑performance local caching solution that improves on Guava Cache by using the W‑TinyLFU eviction algorithm, explains its core concepts, demonstrates manual, synchronous, and asynchronous loading strategies, details eviction policies, and provides step‑by‑step integration and configuration examples for Spring Boot applications.

Cache EvictionCaffeine CacheJava Caching
0 likes · 22 min read
Caffeine Cache in Spring Boot: Algorithms, Configuration, and Practical Usage
vivo Internet Technology
vivo Internet Technology
Apr 21, 2021 · Backend Development

Understanding and Configuring Caffeine Cache in Java Applications

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
Understanding and Configuring Caffeine Cache in Java Applications
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 3, 2020 · Fundamentals

Understanding LRU Cache: Interview Thought Process and Implementation

This article explains why technical interviews focus on problem‑solving skills, outlines a four‑step interview approach, introduces the LRU cache eviction policy, analyzes required operations, selects HashMap plus a doubly linked list as the optimal data structures, and provides a complete Java implementation with detailed commentary.

Cache EvictionDoubly Linked ListHashMap
0 likes · 15 min read
Understanding LRU Cache: Interview Thought Process and Implementation
Qunar Tech Salon
Qunar Tech Salon
Oct 31, 2018 · Backend Development

Understanding Cache: Concepts, Types, and Performance Optimization in High-Concurrency Scenarios

This article explains cache fundamentals—from CPU and local caches to distributed systems—covers design principles, performance‑affecting factors, eviction algorithms, and common high‑concurrency issues such as penetration, stampede, and avalanche, and provides practical solutions for selecting and optimizing cache strategies.

CPU cacheCache Evictioncaching
0 likes · 16 min read
Understanding Cache: Concepts, Types, and Performance Optimization in High-Concurrency Scenarios
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
dbaplus Community
dbaplus Community
Aug 16, 2018 · Backend Development

Mastering Cache Design: Reduce Database Load and Boost High‑Concurrency Performance

This article explains why cache design is essential for high‑concurrency systems, compares CPU and application caches, outlines multi‑level and distributed caching strategies, discusses write‑through/write‑behind patterns, cache synchronization methods, penetration protection, and eviction policies to alleviate database pressure.

Cache Evictiondistributed cachehigh concurrency
0 likes · 12 min read
Mastering Cache Design: Reduce Database Load and Boost High‑Concurrency Performance
JD Tech
JD Tech
Jul 26, 2018 · Backend Development

Why Design Caches? Multi‑Level Cache Strategies, Synchronization Schemes, and Common Pitfalls

This article explains the motivation behind cache design, compares CPU and application‑level caches, discusses multi‑level and distributed caching, outlines synchronization methods, eviction policies, and answers frequent cache‑related questions to help reduce database load and improve system performance.

Backend PerformanceCache Evictioncache synchronization
0 likes · 13 min read
Why Design Caches? Multi‑Level Cache Strategies, Synchronization Schemes, and Common Pitfalls
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
ITPUB
ITPUB
Jan 21, 2017 · Databases

How Redis Implements LRU Eviction: Deep Dive with Python Example

This article explains Redis's LRU eviction mechanism, starting with a brief LRU overview, presenting a Python LRU cache implementation, then detailing Redis's internal LRU clock, object fields, maxmemory policies, and both active and passive eviction processes, highlighting configuration impacts on performance.

Cache EvictionLRUMemory Management
0 likes · 15 min read
How Redis Implements LRU Eviction: Deep Dive with Python Example