Tagged articles
Delayed Double Delete
10 articles · Page 1 of 1
This article analyzes why cache and database can become inconsistent, compares four basic cache‑update patterns, explains the delayed double‑delete technique, shows how to use MQ for retrying cache deletions, and evaluates Canal binlog subscription as a zero‑intrusion solution for strong eventual consistency.
Backend ArchitectureCache AsideCache Consistency
0 likes · 28 min read

This comprehensive guide analyzes four production-ready strategies for MySQL-Redis dual-write consistency, from basic cache-aside with delayed double-delete to binlog-based CDC, including Spring Boot code examples, concurrency pitfalls, and interview-focused scenario breakdowns.
Cache ConsistencyCache-Aside PatternCanal
0 likes · 31 min read

The article analyzes the delayed double‑delete cache‑consistency pattern, exposing how its fixed sleep interval, thread blocking, unreliable second delete, and inability to handle concurrent writes make it unsuitable for high‑traffic systems, and it proposes safer cache‑aside alternatives.
Cache AsideCache ConsistencyConcurrency
0 likes · 7 min read

The article dissects the delayed double‑delete pattern for Redis‑MySQL consistency, exposing its hidden pitfalls—unreliable delay timing, thread‑blocking sleeps, fragile second‑delete retries, and concurrent‑write anomalies—then recommends cache‑aside and stronger alternatives for production systems.
Cache AsideCache ConsistencyConcurrency
0 likes · 7 min read

The article dissects why the delayed double‑delete cache‑consistency pattern breaks under high traffic, illustrates Alibaba’s painful experience, and then details two production‑grade alternatives—lease‑based token control and version‑number comparison—explaining their principles, Redis‑Lua implementations, and trade‑offs.
Cache ConsistencyDelayed Double DeleteRedis Lua
0 likes · 8 min read

The article examines the delayed double‑delete cache invalidation technique, reveals its hidden risk of cache‑penetration‑induced database load, compares Facebook's lease‑based solution and Uber's version‑number approach, and advises when the method is appropriate for high‑traffic systems.
Cache ConsistencyDelayed Double DeleteJava
0 likes · 16 min read

This article explores cache‑database consistency strategies, explains strong, weak and eventual consistency, compares cache patterns such as Cache‑Aside, Read‑Through/Write‑Through and Write‑Behind, and details the delayed double‑delete technique, its optimal pause time, and alternative solutions like retry mechanisms and binlog‑based async eviction.
Cache AsideCache ConsistencyDelayed Double Delete
0 likes · 13 min read

This article examines why many large‑scale systems avoid the traditional delayed double‑delete cache‑invalidation strategy, explains its critical drawbacks, and presents alternative lease‑based and version‑based approaches with Lua scripts and Java wrappers for Redis to achieve stronger consistency.
Delayed Double DeleteJavaLua
0 likes · 17 min read

This article examines common cache‑and‑database consistency approaches, compares their drawbacks, and recommends a delayed double‑delete strategy with practical code examples to keep data reliable in read‑heavy, write‑light systems.
Cache ConsistencyDelayed Double Deleteread‑write strategy
0 likes · 10 min read

This article explains why caching improves performance, examines the trade‑offs between cache utilization and data consistency, analyzes concurrency‑induced inconsistency scenarios, compares update‑then‑delete versus delete‑then‑update approaches, and recommends asynchronous retry with message queues or binlog subscription to reliably keep cache and database in sync.
CacheDelayed Double DeleteMaster-Slave Replication
0 likes · 19 min read
