Tag

Cache Eviction

1 views collected around this technical thread.

Architecture & Thinking
Architecture & Thinking
Aug 25, 2023 · Databases

Unlocking Redis LFU: How the Least Frequently Used Algorithm Works

This article explains Redis's LFU eviction algorithm, its implementation details, code-level mechanics, configuration steps, and how it improves upon LRU by using frequency-based counters and decay to make smarter cache eviction decisions.

AlgorithmCache EvictionLFU
0 likes · 12 min read
Unlocking Redis LFU: How the Least Frequently Used Algorithm Works
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.

AlgorithmCache EvictionLFU
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
Top Architect
Top Architect
Feb 23, 2023 · Databases

Redis Cache Eviction Strategies and Solutions for Penetration, Breakdown, and Avalanche

This article explains Redis eviction policies, compares strategies like allkeys‑lru, volatile‑ttl, and noeviction, and provides practical solutions for cache penetration, breakdown, and avalanche to maintain system stability under high concurrency.

BackendCache EvictionCache Penetration
0 likes · 11 min read
Redis Cache Eviction Strategies and Solutions for Penetration, Breakdown, and Avalanche
Architect's Guide
Architect's Guide
Feb 21, 2023 · Backend Development

Redis Cache Eviction Strategies and Solutions for Penetration, Breakdown, and Avalanche

This article explains Redis eviction policies such as allkeys‑lru, volatile‑ttl, and others, discusses how the eviction process works, and provides practical solutions for cache penetration, breakdown (stampede), and avalanche, including Bloom filters, mutex locks, and randomized TTLs.

BackendCache AvalancheCache Breakdown
0 likes · 10 min read
Redis Cache Eviction Strategies and Solutions for Penetration, Breakdown, and Avalanche
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 EvictionConcurrencyJFR
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 EvictionCache PenetrationPerformance Optimization
0 likes · 16 min read
Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems
Top Architect
Top Architect
Jul 8, 2022 · Backend Development

Caffeine Cache: Algorithm Advantages, Usage Strategies, and Spring Boot Integration

This article explains the high‑performance Caffeine Cache library, its W‑TinyLFU eviction algorithm, various loading and eviction strategies, statistics collection, and how to integrate and configure it in Spring Boot using annotations and programmatic beans.

Cache AnnotationsCache EvictionCaffeine Cache
0 likes · 22 min read
Caffeine Cache: Algorithm Advantages, Usage Strategies, 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 EvictionRedis
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.

Cache EvictionJavaLRU
0 likes · 7 min read
Understanding Redis Eviction Policies and Implementing LRU Cache in Java
vivo Internet Technology
vivo Internet Technology
Apr 6, 2022 · Backend Development

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

This guide explains caching fundamentals, purposes, and optimal use cases, details hit rates and eviction policies such as FIFO, LRU, LFU, TTL/TTI, compares client‑side (HTTP, browser) and server‑side caches (CDN, Redis, Memcached), explores multi‑level architectures, common pitfalls like avalanche, penetration and breakdown, and best‑practice strategies including pre‑warming, update patterns, and consistency management.

CDNCache AvalancheCache Eviction
0 likes · 28 min read
Comprehensive Guide to Caching: Concepts, Types, Strategies, and Best Practices
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.

Bloom FilterCache EvictionRedis
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 EvictionCache PenetrationPerformance Optimization
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 AvalancheCache EvictionCache Penetration
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.

Bloom FilterCache EvictionRedis
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 ConsistencyCache EvictionCache Penetration
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 AvalancheCache EvictionCache Penetration
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 AvalancheCache EvictionCache Penetration
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.

Bloom FilterCache Evictioncaching
0 likes · 15 min read
Cache Design and Optimization Strategies in High‑Concurrency Distributed Systems