Tagged articles
6 articles
Page 1 of 1
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 ConsistencyDelayed Double Deletecache-aside
0 likes · 13 min read
How Long Should the Delay Be in Delayed Double Delete? A Deep Dive into Cache Consistency
Architect
Architect
Jan 30, 2024 · Backend Development

How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns

This article explains why cache inconsistency occurs between MySQL and Redis, then walks through four concrete design patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—detailing each step, trade‑offs, and failure scenarios to help engineers choose the most suitable approach.

BackendCache Consistencycache-aside
0 likes · 9 min read
How to Keep MySQL and Redis in Sync: Practical Cache Consistency Patterns
Selected Java Interview Questions
Selected Java Interview Questions
Jan 29, 2024 · Databases

Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices

This article explains the relationship between MySQL and Redis, discusses why cache consistency is challenging, and details four cache update design patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—along with their advantages, drawbacks, and typical execution flows.

BackendCache Consistencycache-aside
0 likes · 9 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
ITPUB
ITPUB
Oct 30, 2022 · Backend Development

Avoid Stale Data: Master Cache Aside, Read‑Through, Write‑Through & Write‑Behind Strategies

This article explains common cache update patterns—Cache Aside, Read‑Through, Write‑Through, and Write‑Behind—illustrates their read/write flows, highlights typical pitfalls such as dirty data caused by wrong update order, and offers practical safeguards for maintaining data consistency in large‑scale systems.

Backendcache-asidecaching
0 likes · 8 min read
Avoid Stale Data: Master Cache Aside, Read‑Through, Write‑Through & Write‑Behind Strategies
dbaplus Community
dbaplus Community
Feb 8, 2021 · Backend Development

Avoid Stale Data: Pitfalls and Best Practices for Cache Aside, Read‑Through, Write‑Through, and Write‑Behind

This article explains why cache‑database inconsistencies occur in large systems, details the cache‑aside, read‑through, write‑through and write‑behind strategies, highlights three common pitfalls with concrete examples, and offers practical recommendations such as proper update ordering and cache expiration to ensure data freshness.

BackendCacheData Consistency
0 likes · 9 min read
Avoid Stale Data: Pitfalls and Best Practices for Cache Aside, Read‑Through, Write‑Through, and Write‑Behind
21CTO
21CTO
Sep 29, 2015 · Databases

Boost Application Performance with Apache Ignite’s In‑Memory Caching

Apache Ignite lets developers store hot data in memory, offering partitioned or replicated caching, seamless integration with any backend, write‑through/read‑through and write‑behind modes, automatic schema mapping, and full SQL support, enabling scalable, high‑speed data access for TB‑scale workloads.

Apache IgniteSQL querydistributed databases
0 likes · 5 min read
Boost Application Performance with Apache Ignite’s In‑Memory Caching