Tag

Cache Consistency

0 views collected around this technical thread.

IT Services Circle
IT Services Circle
Jun 10, 2025 · Backend Development

Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies

The article shares a personal experience of TP-Link's early campus recruitment and salary expectations, then provides a comprehensive Java backend interview guide covering class‑loader delegation, JVM memory layout, garbage‑collector types, synchronized lock mechanics, and common Redis cache pitfalls with practical solutions.

Backend InterviewCache ConsistencyGarbage Collection
0 likes · 18 min read
Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies
Tencent Cloud Developer
Tencent Cloud Developer
Nov 7, 2024 · Backend Development

Cache Consistency Strategies and Best Practices for the Cache‑Aside Pattern

The article explains cache‑aside consistency challenges and compares four update strategies—DB‑then‑cache, cache‑then‑DB, DB‑then‑delete, and delete‑then‑DB—showing that deleting the cache after a successful DB write offers the smallest inconsistency window, while recommending TTLs, message‑queue invalidation, and multi‑key coordination for robust eventual consistency.

Cache ConsistencyMySQLRedis
0 likes · 20 min read
Cache Consistency Strategies and Best Practices for the Cache‑Aside Pattern
Lobster Programming
Lobster Programming
Jun 19, 2024 · Backend Development

Ensuring Redis‑MySQL Consistency: Strategies and Best Practices

To maintain data consistency between Redis caches and MySQL databases, this article examines common pitfalls and presents three robust solutions—deleting cache before DB writes, updating the DB then removing cache, and implementing delete‑retry mechanisms—plus optional locking for strong consistency.

BackendCache ConsistencyData Synchronization
0 likes · 6 min read
Ensuring Redis‑MySQL Consistency: Strategies and Best Practices
Sanyou's Java Diary
Sanyou's Java Diary
Jun 17, 2024 · Backend Development

How to Keep Cache and Database Consistent? Proven Strategies and Common Pitfalls

This article explains why cache‑DB consistency is a long‑standing challenge, compares naive full‑load and delete‑cache approaches, analyzes concurrency and failure scenarios, and presents reliable solutions such as updating the database first followed by cache deletion using message queues or binlog subscriptions.

Cache ConsistencyMessage QueueRedis
0 likes · 19 min read
How to Keep Cache and Database Consistent? Proven Strategies and Common Pitfalls
Architect's Guide
Architect's Guide
Jun 13, 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 (Cache‑Aside), read/write‑through, and write‑behind—illustrating each with flow diagrams and practical considerations.

Cache ConsistencyCache Design PatternsMySQL
0 likes · 7 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 11, 2024 · Backend Development

Handling Data Consistency Between Redis Cache and Relational Databases

This article explains how Redis as a distributed cache can cause data inconsistency with relational databases during write operations, outlines read and update workflows, compares five cache‑update strategies, and presents a delayed double‑delete solution with sample code to maintain consistency.

Cache ConsistencyData SynchronizationRedis
0 likes · 6 min read
Handling Data Consistency Between Redis Cache and Relational Databases
Selected Java Interview Questions
Selected Java Interview Questions
Mar 15, 2024 · Backend Development

Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios

The article explains why data inconsistency occurs between MySQL and Redis under high concurrency, analyzes cache‑delete timing issues, and presents two solutions—delayed double‑delete and asynchronous cache updates via MySQL binlog—detailing implementation steps, advantages, drawbacks, and practical considerations.

Async UpdateCache ConsistencyMySQL
0 likes · 8 min read
Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios
Top Architect
Top Architect
Feb 21, 2024 · Backend Development

Cache Consistency Strategies Between MySQL and Redis

This article explains the classic cache consistency problem between MySQL and Redis, analyzes why inconsistencies occur, and details four common design patterns—delete‑then‑update, update‑then‑invalidate (Cache‑Aside), Read/Write‑Through, and Write‑Behind—along with their advantages, drawbacks, and typical execution flows.

Cache ConsistencyDatabase CachingMySQL
0 likes · 9 min read
Cache Consistency Strategies Between MySQL and Redis
Laravel Tech Community
Laravel Tech Community
Feb 5, 2024 · Backend Development

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

This article explains the relationship between MySQL and Redis, the classic cache‑consistency problem, and compares four common cache‑update patterns—delete‑then‑update, update‑then‑invalidate, read/write‑through, and write‑behind—detailing their workflows, advantages, and drawbacks.

Cache ConsistencyMySQLRedis
0 likes · 7 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
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 ConsistencyMySQL
0 likes · 9 min read
Cache Consistency Between MySQL and Redis: Design Patterns and Best Practices
Architect's Guide
Architect's Guide
Jan 2, 2024 · Backend Development

Cache Strategies and Common Issues: Consistency, Penetration, and Avalanche

The article explains why excessive database reads become a performance bottleneck, introduces a cache layer between applications and MySQL, details common caching patterns such as Cache‑Aside, Read‑Through, Write‑Through and Write‑Behind, and discusses consistency, penetration, and avalanche problems along with practical mitigation techniques.

Cache AvalancheCache ConsistencyCache Penetration
0 likes · 9 min read
Cache Strategies and Common Issues: Consistency, Penetration, and Avalanche
Top Architect
Top Architect
Oct 12, 2023 · Backend Development

Cache Strategies: Consistency Issues, Penetration, Avalanche and Mitigation Techniques

The article explains why high‑frequency disk reads can become a performance bottleneck, introduces common caching patterns such as Cache‑Aside, Read‑Through, Write‑Through and Write‑Behind, discusses consistency problems, cache penetration and avalanche, and presents practical solutions like null‑caching, Bloom filters, distributed locks, staggered TTLs, Redis‑Cluster and Hystrix.

BackendCache AvalancheCache Consistency
0 likes · 10 min read
Cache Strategies: Consistency Issues, Penetration, Avalanche and Mitigation Techniques
Architect
Architect
Oct 10, 2023 · Backend Development

Cache Strategies: Consistency, Penetration, Avalanche and Common Patterns

This article explains why high‑frequency database reads become a performance bottleneck, introduces common caching patterns such as Cache‑Aside, Read‑Through, Write‑Through and Write‑Behind, discusses consistency challenges, and provides practical solutions for cache penetration and avalanche scenarios.

Cache AvalancheCache ConsistencyCache Penetration
0 likes · 10 min read
Cache Strategies: Consistency, Penetration, Avalanche and Common Patterns
Architecture & Thinking
Architecture & Thinking
Aug 30, 2023 · Backend Development

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

This article examines data consistency between Redis cache and MySQL database, explains common cache execution strategies such as Cache‑Aside, Read‑Through, Write‑Through, and Write‑Behind, analyzes four update sequences for consistency risks, and proposes solutions like delayed double‑delete, transactional guarantees, retry mechanisms, and binlog‑based cache invalidation.

Cache ConsistencyRediscache aside
0 likes · 18 min read
How to Ensure Cache‑Database Consistency: Strategies, Pitfalls, and Best Practices
Architect
Architect
Aug 2, 2023 · Databases

Ensuring Consistency Between MySQL and Redis: Theory, Schemes, and Practical Implementation

This article reviews six theoretical approaches for maintaining MySQL‑Redis data consistency, evaluates their pros and cons, and presents a practical implementation using Java Spring, transactional updates, cache deletion, and asynchronous queue handling to achieve both real‑time and eventual consistency in high‑concurrency systems.

Cache ConsistencyJavaMySQL
0 likes · 11 min read
Ensuring Consistency Between MySQL and Redis: Theory, Schemes, and Practical Implementation
macrozheng
macrozheng
Jul 4, 2023 · Backend Development

Ensuring Cache‑DB Consistency with Canal, RabbitMQ, and Redis in SpringBoot

This guide walks through building a SpringBoot architecture that updates MySQL first, deletes Redis cache asynchronously via Canal and RabbitMQ, resolves common Canal meta‑data mismatches, and configures manual RabbitMQ acknowledgments to guarantee reliable cache invalidation.

Cache ConsistencyCanalMessage Queue
0 likes · 12 min read
Ensuring Cache‑DB Consistency with Canal, RabbitMQ, and Redis in SpringBoot
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 29, 2023 · Databases

Database Master‑Slave Synchronization and Consistency Solutions

This article explains why master‑slave replication is needed in high‑concurrency scenarios, describes the consistency challenges it introduces, and presents three practical solutions—half‑synchronous replication, database middleware, and cache‑key recording—detailing their principles, advantages, and drawbacks.

Cache ConsistencyMySQLdatabase replication
0 likes · 8 min read
Database Master‑Slave Synchronization and Consistency Solutions
Selected Java Interview Questions
Selected Java Interview Questions
May 17, 2023 · Backend Development

Effective Cache Strategies for Large Distributed Systems

This article explains how to design and use various client‑side, CDN, and server‑side caching techniques—including HTTP Cache‑Control, Redis data structures, cache consistency patterns, and mitigation of cache penetration, breakdown, and avalanche—to improve performance and reliability of high‑traffic distributed applications.

Cache ConsistencyRedisbackend development
0 likes · 23 min read
Effective Cache Strategies for Large Distributed Systems
Architecture Digest
Architecture Digest
Mar 8, 2023 · Backend Development

Cache Consistency Strategies Between MySQL and Redis

The article explains the classic cache consistency problem between MySQL and Redis, analyzes how inconsistencies arise, and details four cache‑update design patterns—delete‑then‑update, cache‑aside, read/write‑through, and write‑behind—highlighting their workflows, advantages, and drawbacks.

Cache ConsistencyMySQLRedis
0 likes · 8 min read
Cache Consistency Strategies Between MySQL and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Dec 23, 2022 · Backend Development

Effective Cache Strategies for Large Distributed Systems

This article explains how to design and use client‑side, CDN, and server‑side caches—including Redis data structures, consistency patterns, and mitigation techniques for cache breakdown, penetration, and avalanche—to achieve high performance and reliability in billion‑user distributed applications.

Cache ConsistencyCache PenetrationRedis
0 likes · 23 min read
Effective Cache Strategies for Large Distributed Systems