Tag

Cache Invalidation

0 views collected around this technical thread.

Architecture and Beyond
Architecture and Beyond
May 18, 2024 · Backend Development

Comprehensive Guide to Caching Strategies and Implementation in Web Applications

This article explains the fundamentals of caching, enumerates various client‑side, server‑side and distributed cache types, describes common caching patterns and expiration policies, and highlights practical considerations to effectively improve web application performance and reliability.

BackendCache InvalidationCache Strategies
0 likes · 21 min read
Comprehensive Guide to Caching Strategies and Implementation in Web Applications
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 2, 2024 · Backend Development

Cache Design and Optimization Practices for High‑Concurrency Music Library Service

The article details NetEase Cloud Music’s high‑concurrency cache architecture—using lazy‑load, hole‑wrapped objects for penetration protection, placeholder values for missing data, horizontal and vertical scaling with consistent hashing, and asynchronous binlog‑driven invalidation—to achieve sub‑millisecond reads for a read‑heavy, write‑light music library.

Cache InvalidationScale-Upcaching
0 likes · 12 min read
Cache Design and Optimization Practices for High‑Concurrency Music Library Service
IT Services Circle
IT Services Circle
May 5, 2023 · Backend Development

Implementing Cache‑Database Consistency with Canal, MySQL, Redis and RabbitMQ

This article demonstrates how to achieve cache‑database consistency by updating MySQL first, deleting Redis cache asynchronously via Canal, publishing change events to RabbitMQ, and handling acknowledgments manually in a Spring Boot application, complete with configuration steps and troubleshooting tips.

Cache InvalidationCanalMessage Queue
0 likes · 11 min read
Implementing Cache‑Database Consistency with Canal, MySQL, Redis and RabbitMQ
Laravel Tech Community
Laravel Tech Community
Jan 10, 2023 · Backend Development

How to Ensure Data Consistency When Writing to Cache and Database Simultaneously

The article analyzes three data‑level classifications, examines four cache‑database write strategies, discusses their pros and cons, and presents practical solutions such as delayed double deletion, message‑queue compensation, and binlog‑driven cache updates to maintain consistency.

Cache InvalidationMessage Queuecaching
0 likes · 8 min read
How to Ensure Data Consistency When Writing to Cache and Database Simultaneously
Architecture & Thinking
Architecture & Thinking
Sep 22, 2022 · Databases

Mastering Redis Client‑Side Caching: How Tracking Ensures Data Consistency

This article explains why Redis client‑side caching is needed, how the tracking feature works under different modes, and what trade‑offs each mode presents for memory, CPU, and network usage, helping developers design efficient caching architectures.

Cache InvalidationClient Side CachingPrefix Table
0 likes · 10 min read
Mastering Redis Client‑Side Caching: How Tracking Ensures Data Consistency
High Availability Architecture
High Availability Architecture
Jun 24, 2022 · Backend Development

Improving Cache Invalidation and Consistency at Scale

Meta engineers describe the challenges of cache invalidation and consistency in large‑scale distributed systems, explain why stale caches are problematic, present their Polaris observability service and consistency‑tracking techniques, and detail how they raised TAO’s cache consistency from six‑nines to ten‑nines.

Cache InvalidationObservabilitycaching
0 likes · 17 min read
Improving Cache Invalidation and Consistency at Scale
Top Architect
Top Architect
May 24, 2022 · Backend Development

Comprehensive Guide to Cache Optimization and Design Strategies

This article presents a comprehensive overview of cache optimization techniques, covering benefits and costs, update policies, granularity control, penetration and avalanche mitigation, hot‑key reconstruction, and distributed batch‑operation strategies, with practical examples using Redis and MySQL.

BackendCache InvalidationRedis
0 likes · 14 min read
Comprehensive Guide to Cache Optimization and Design Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Mar 1, 2022 · Backend Development

Cache Consistency Strategies: From Simple Write‑Through to Binlog Subscription

This article explains why caching is essential for high‑concurrency systems, analyzes the challenges of keeping database and cache data consistent, and compares five practical cache‑invalidation strategies—including write‑after‑DB, delete‑before‑write, delayed double delete, queue‑based deletion, and binlog subscription—highlighting their trade‑offs and suitable scenarios.

BackendCache InvalidationDatabase
0 likes · 10 min read
Cache Consistency Strategies: From Simple Write‑Through to Binlog Subscription
Top Architect
Top Architect
Dec 4, 2021 · Backend Development

Cache Usage Techniques and Design Solutions: Benefits, Costs, Update Strategies, Granularity, and Common Optimizations

This article explains how caching can accelerate read/write performance and reduce backend load, analyzes its benefits and costs, discusses update strategies, granularity control, and solutions for common problems such as cache penetration, empty‑hole, avalanche, and hot‑key reconstruction, providing practical guidelines for robust backend design.

Cache InvalidationOptimizationRedis
0 likes · 14 min read
Cache Usage Techniques and Design Solutions: Benefits, Costs, Update Strategies, Granularity, and Common Optimizations
Sohu Tech Products
Sohu Tech Products
Sep 8, 2021 · Backend Development

Why Client‑Side Caching Is Needed and How Redis Tracking Works

This article explains the motivation for client‑side caching, what data should be cached, and details the Redis tracking feature—including normal, broadcast, and redirect modes—while providing implementation examples and best‑practice guidelines for reducing latency and load on Redis servers.

BackendCache InvalidationClient Side Caching
0 likes · 9 min read
Why Client‑Side Caching Is Needed and How Redis Tracking Works
Code Ape Tech Column
Code Ape Tech Column
Aug 25, 2021 · Backend Development

Common Pitfalls and Best Practices of Distributed Caching with Redis and Memcached

This article examines the characteristics of Redis and Memcached as distributed cache solutions, outlines common design pitfalls such as consistency, cache penetration, breakdown, avalanche, and hot‑key issues, and provides practical strategies—including consistent hashing, binlog‑driven invalidation, message‑queue indexing, and lock mechanisms—to build reliable and high‑performance caching layers in backend systems.

Cache ConsistencyCache InvalidationMemcached
0 likes · 18 min read
Common Pitfalls and Best Practices of Distributed Caching with Redis and Memcached
NetEase Game Operations Platform
NetEase Game Operations Platform
Jul 27, 2019 · Databases

Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation

The article examines the risks of using the dangerous FLUSHDB command in Redis, explores common alternatives like SCAN, async deletion, and expiration, and proposes a secondary‑index solution using sets and sorted sets to efficiently invalidate only the affected cache entries without blocking the service.

Cache InvalidationFLUSHDBRedis
0 likes · 11 min read
Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation
Vipshop Quality Engineering
Vipshop Quality Engineering
Jul 11, 2017 · Backend Development

Why Master‑Slave Sync Delays Break Your Order Cache and How to Fix It

An order system retrieved incorrect product size data due to master‑slave database lag causing stale Redis cache, and the article explains the original flawed flow, the revised solution that writes to cache during sync, and best practices for cache updates, read‑through, and QA testing.

Cache InvalidationMaster-Slave ReplicationRead-Write Separation
0 likes · 5 min read
Why Master‑Slave Sync Delays Break Your Order Cache and How to Fix It
Qunar Tech Salon
Qunar Tech Salon
May 4, 2016 · Backend Development

Proactive Cache Refresh Strategies for Memcached to Prevent Cache Stampede

This article examines various techniques for proactively refreshing Memcached entries before they expire, including dual‑key schemes, timestamp‑based checks, and lock‑based updates, and presents a preferred Java implementation that minimizes cache‑stampede and reduces memory overhead.

BackendCache InvalidationCache Refresh
0 likes · 7 min read
Proactive Cache Refresh Strategies for Memcached to Prevent Cache Stampede