Tagged articles
5 articles
Page 1 of 1
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
dbaplus Community
dbaplus Community
Apr 5, 2020 · Backend Development

Which Caching Strategy Is Right for Your Application? A Practical Guide

This article explains five common caching strategies—Cache‑Aside, Read‑Through, Write‑Through, Write‑Around, and Write‑Back—detailing how they work, their advantages and drawbacks, and how to choose the best fit based on data access patterns and performance goals.

BackendCache Strategiescaching
0 likes · 11 min read
Which Caching Strategy Is Right for Your Application? A Practical Guide