Tagged articles

Delayed Double Delete

8 articles · Page 1 of 1
Programmer XiaoFu
Programmer XiaoFu
Jun 25, 2026 · Backend Development

Why Delayed Double Delete Fails to Ensure Cache Consistency Under High Concurrency

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
Why Delayed Double Delete Fails to Ensure Cache Consistency Under High Concurrency
Linyb Geek Road
Linyb Geek Road
Apr 29, 2026 · Backend Development

How Leading Tech Companies Elegantly Avoid the Delayed Double Delete Pitfall

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
How Leading Tech Companies Elegantly Avoid the Delayed Double Delete Pitfall
macrozheng
macrozheng
Jul 3, 2025 · Backend Development

How Long Should the Delay Be in Delayed Double Delete? A Deep Dive into Cache Consistency

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
How Long Should the Delay Be in Delayed Double Delete? A Deep Dive into Cache Consistency
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 7, 2025 · Backend Development

Cache Consistency: Pitfalls of Delayed Double Delete and Lease/Versioning Solutions with Redis

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 DeleteLeaseLua
0 likes · 17 min read
Cache Consistency: Pitfalls of Delayed Double Delete and Lease/Versioning Solutions with Redis
dbaplus Community
dbaplus Community
Dec 7, 2021 · Backend Development

How to Ensure Cache‑Database Consistency: Strategies, Pitfalls & Best Practices

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 Deleteasynchronous-retry
0 likes · 19 min read
How to Ensure Cache‑Database Consistency: Strategies, Pitfalls & Best Practices