Tag

mutex lock

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Jul 27, 2023 · Backend Development

Preventing Cache Penetration with Mutex Locks and Logical Expiration in Redis (Java)

The article explains cache penetration, describes how to prevent it using a Redis‑based mutex lock and a logical expiration strategy, provides complete Java code examples for both approaches, compares their trade‑offs, and shows performance testing results under high concurrency.

CacheJavaRedis
0 likes · 10 min read
Preventing Cache Penetration with Mutex Locks and Logical Expiration in Redis (Java)
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 5, 2018 · Backend Development

Cache Breakdown (Cache Penetration) and Mitigation Strategies: Mutex Lock, Asynchronous Cache, and Bloom Filter

This article explains the concept of cache breakdown, illustrates why malicious requests can bypass caches and overload databases, and presents three practical mitigation techniques—using a Redis SETNX‑based mutex lock, asynchronous cache rebuilding, and a Bloom filter—along with their advantages, drawbacks, and performance testing results.

CacheCache BreakdownRedis
0 likes · 7 min read
Cache Breakdown (Cache Penetration) and Mitigation Strategies: Mutex Lock, Asynchronous Cache, and Bloom Filter