Tagged articles
517 articles
Page 3 of 6
Top Architect
Top Architect
Mar 14, 2023 · Backend Development

Understanding Caching in Spring: Local vs Distributed Cache and GuavaCacheManager

This article explains the concept and purpose of caching, compares local and centralized cache approaches, introduces Spring's cache support and various CacheManager implementations, details GuavaCacheManager configuration and expiration strategies, demonstrates @Cacheable usage, and discusses common pitfalls such as cache miss due to internal method calls.

BackendCachejava
0 likes · 8 min read
Understanding Caching in Spring: Local vs Distributed Cache and GuavaCacheManager
Architect's Guide
Architect's Guide
Mar 12, 2023 · Backend Development

Redis Interview Questions: Solving Cache Penetration, Cache Breakdown, and Cache Avalanche

This article explains the concepts of cache penetration, cache breakdown (stampede), and cache avalanche in Redis, and provides practical solutions such as parameter validation, null‑value caching, Bloom filters, mutex locks, hot‑data non‑expiration, and randomizing expiration times, accompanied by Java code examples.

BackendCachecache-breakdown
0 likes · 9 min read
Redis Interview Questions: Solving Cache Penetration, Cache Breakdown, and Cache Avalanche
Java Architect Essentials
Java Architect Essentials
Mar 7, 2023 · Databases

16 Common Redis Application Scenarios with Code Examples

This article presents sixteen typical Redis use cases—including caching, distributed locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow relationships, and ranking—each explained with practical code snippets and command examples.

CacheDistributedLockcode
0 likes · 9 min read
16 Common Redis Application Scenarios with Code Examples
Top Architect
Top Architect
Mar 6, 2023 · Backend Development

Using Caffeine Cache in Spring Boot: Features, Configuration, and Code Examples

This article introduces Caffeine Cache as a modern local caching solution, explains its W‑TinyLFU algorithm advantages over Guava, demonstrates various loading and eviction strategies, and provides detailed Spring Boot integration examples with Maven dependencies, configuration, annotations, and custom bean setups.

CacheCaffeineSpringBoot
0 likes · 24 min read
Using Caffeine Cache in Spring Boot: Features, Configuration, and Code Examples
Sohu Tech Products
Sohu Tech Products
Feb 22, 2023 · Cloud Native

Optimizing Docker Build Time for a BI Project Using Jenkins and Cache Strategies

This article describes how to dramatically reduce Jenkins‑based Docker build times for a BI project by analyzing the build pipeline, enabling Docker layer and application‑level caches, persisting node_modules with BuildKit, and applying minimal configuration changes that cut build duration from over 20 minutes to around four minutes.

BuildKitCacheDocker
0 likes · 10 min read
Optimizing Docker Build Time for a BI Project Using Jenkins and Cache Strategies
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 13, 2023 · Backend Development

How NEMichelinCache Cuts Crashes and Boosts Performance in Cross‑Platform RN/H5 Apps

The article details the design and implementation of NEMichelinCache, a cross‑platform cache library for React Native and H5, explaining the problems of the legacy cache, the architectural choices made, the modules introduced, and the measurable improvements in stability and speed achieved after deployment.

CacheReact Nativearchitecture
0 likes · 12 min read
How NEMichelinCache Cuts Crashes and Boosts Performance in Cross‑Platform RN/H5 Apps
DataFunTalk
DataFunTalk
Feb 12, 2023 · Big Data

Optimizing Bilibili Presto Cluster Query Performance with Alluxio and Local Cache

This article presents a comprehensive technical overview of Bilibili's Presto cluster architecture, the challenges of query performance on Hadoop, and the systematic optimizations—including Alluxio integration, local cache mechanisms, multi‑active coordinators, label‑based scheduling, and real‑time penalties—that together improve availability, stability, and latency for large‑scale analytics workloads.

AlluxioBig DataCache
0 likes · 23 min read
Optimizing Bilibili Presto Cluster Query Performance with Alluxio and Local Cache
Sohu Tech Products
Sohu Tech Products
Jan 18, 2023 · Cloud Native

Optimizing Docker Build Times in Jenkins CI with Cache Strategies and BuildKit

This article details how to dramatically reduce Jenkins‑triggered Docker build times for a BI project by enabling Docker layer and application‑level caches, configuring webpack caching, and leveraging BuildKit mount‑type caches to persist node_modules, achieving an 80% speedup with minimal configuration changes.

BuildKitCacheDocker
0 likes · 7 min read
Optimizing Docker Build Times in Jenkins CI with Cache Strategies and BuildKit
Code Ape Tech Column
Code Ape Tech Column
Jan 16, 2023 · Backend Development

Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis

This article explains how to replace manual cache handling with Spring Cache annotations, introduces the concepts of L1 (Caffeine) and L2 (Redis) caches, discusses design considerations for consistency, null handling, eviction, and provides practical Maven and configuration examples for Java backend applications.

CacheCaffeineredis
0 likes · 18 min read
Implementing Two-Level Caching with Spring Cache, Caffeine, and Redis
Architect's Guide
Architect's Guide
Jan 6, 2023 · Backend Development

Redis Interview Questions: Solving Cache Penetration, Cache Breakdown, and Cache Avalanche

This article explains common Redis caching issues—cache penetration, cache breakdown, and cache avalanche—detailing their causes and practical mitigation techniques such as parameter validation, null caching, Bloom filters, mutex locks, hot‑data strategies, and staggered expiration to ensure system stability.

Cachecache-avalanchecache-breakdown
0 likes · 9 min read
Redis Interview Questions: Solving Cache Penetration, Cache Breakdown, and Cache Avalanche
IT Services Circle
IT Services Circle
Jan 4, 2023 · Cloud Computing

Understanding CDN: How Content Delivery Networks Work and When to Use Them

This article explains the fundamentals of Content Delivery Networks (CDN), how they cache object‑storage files, the DNS resolution process with CNAME records, origin‑pull behavior on cache misses, performance trade‑offs, and guidelines for when CDN integration is beneficial or unnecessary.

CDNCacheContent Delivery Network
0 likes · 14 min read
Understanding CDN: How Content Delivery Networks Work and When to Use Them
Sohu Tech Products
Sohu Tech Products
Dec 7, 2022 · Backend Development

Comprehensive Guide to Using Caffeine Cache in Java

This article provides an in‑depth tutorial on configuring and using the Caffeine caching library in Java, covering cache creation, property settings such as initial capacity, maximum size, weight, expiration policies, statistics collection, custom listeners, and advanced features like removal listeners and cache writers.

BackendCacheCaffeine
0 likes · 18 min read
Comprehensive Guide to Using Caffeine Cache in Java
Top Architect
Top Architect
Nov 27, 2022 · Fundamentals

Understanding Bloom Filters and Their Use in Preventing Cache Penetration

This article explains the problem of cache penetration, introduces Bloom filters as a space‑efficient probabilistic data structure to block invalid queries, demonstrates implementations using Guava and Redis with Java code, analyzes false‑positive rates, and discusses practical application scenarios and performance testing results.

Cachebloom-filterdata-structures
0 likes · 17 min read
Understanding Bloom Filters and Their Use in Preventing Cache Penetration
DataFunTalk
DataFunTalk
Nov 19, 2022 · Big Data

Improving Bilibili Offline Cluster Performance with Presto and Alluxio

This technical presentation explains how Bilibili reduced database pressure and query latency in its production environment by integrating Presto with Alluxio, detailing the offline cluster architecture, challenges of compute‑storage separation, caching strategies, consistency mechanisms, performance gains, and future work.

AlluxioCachePresto
0 likes · 17 min read
Improving Bilibili Offline Cluster Performance with Presto and Alluxio
IT Architects Alliance
IT Architects Alliance
Nov 17, 2022 · Backend Development

Cache Update Strategies and Concurrency Control: CAS, Distributed Locks, Asynchronous Updates, and Delayed Double Delete

This article examines cache update strategies in high‑concurrency systems, analyzing the trade‑offs of delete‑then‑write versus write‑then‑write approaches, illustrating race conditions, and presenting solutions such as CAS, distributed locks, asynchronous updates, and delayed double‑delete to maintain data consistency.

CASCacheConsistency
0 likes · 8 min read
Cache Update Strategies and Concurrency Control: CAS, Distributed Locks, Asynchronous Updates, and Delayed Double Delete
Tencent Advertising Technology
Tencent Advertising Technology
Nov 17, 2022 · Artificial Intelligence

Scaling Huge Embedding Model Training with Cache-Enabled Distributed Framework (HET): VLDB 2022 Best Paper and Its Industrial Deployment

The award‑winning VLDB 2022 paper introduces HET, a cache‑enabled distributed framework that dramatically reduces communication overhead for sparse trillion‑parameter embedding models, and Tencent Ads has industrialized this technology to train 10 TB‑scale models with up to 7×24‑hour online deep learning.

CacheDeep LearningEmbedding
0 likes · 9 min read
Scaling Huge Embedding Model Training with Cache-Enabled Distributed Framework (HET): VLDB 2022 Best Paper and Its Industrial Deployment
TikTok Frontend Technology Team
TikTok Frontend Technology Team
Nov 16, 2022 · Frontend Development

Design and Implementation of a GraphQL Model Management Platform for Frontend‑Backend Collaboration

The article presents a comprehensive solution for improving interface reuse, domain‑model abstraction, and front‑back collaboration by building a GraphQL‑based Model Management Platform (GMP) that supports data‑model management, service orchestration, request generation, caching, authentication, and monitoring, complete with tooling and workflow integration.

API ReuseApolloCache
0 likes · 18 min read
Design and Implementation of a GraphQL Model Management Platform for Frontend‑Backend Collaboration
Top Architect
Top Architect
Nov 13, 2022 · Backend Development

Cache Update Strategies and Concurrency Control in Backend Systems

The article analyzes the challenges of keeping cache and database consistent after write operations, evaluates four update‑order strategies, discusses their concurrency pitfalls, and presents practical solutions such as CAS, distributed locks, asynchronous updates, and delayed double‑delete techniques.

BackendCASCache
0 likes · 8 min read
Cache Update Strategies and Concurrency Control in Backend Systems
Ctrip Technology
Ctrip Technology
Nov 10, 2022 · Operations

Case Study: CORS Failure Caused by CDN Misconfiguration and Its Resolution

This article recounts a real‑world incident where a change to the Access‑Control‑Allow‑Origin header triggered CORS errors for credentialed requests, analyzes the CDN caching and Vary‑header issues that caused inconsistent responses, and outlines the steps taken to fix and prevent the problem.

CDNCORSCache
0 likes · 10 min read
Case Study: CORS Failure Caused by CDN Misconfiguration and Its Resolution
Cognitive Technology Team
Cognitive Technology Team
Oct 31, 2022 · Backend Development

Analysis of MyBatis First-Level and Second-Level Caches and Their Configuration

This article explains MyBatis's first-level (SqlSession-scoped) and second-level (Mapper-scoped) caching mechanisms, their default behaviors, key generation, configuration options, and the impact of Spring integration, and provides recommendations for disabling caches in distributed environments to avoid data inconsistency.

CacheMyBatisbackend-development
0 likes · 9 min read
Analysis of MyBatis First-Level and Second-Level Caches and Their Configuration
ITPUB
ITPUB
Oct 31, 2022 · Backend Development

Master MyBatis Caching: First- and Second-Level Cache Explained

This article explains MyBatis caching fundamentals, detailing first- and second-level cache concepts, configuration, cache invalidation scenarios, and custom cache integration with EHCache, supplemented by practical code snippets and quiz questions to illustrate cache behavior across SqlSessions.

CacheEhcacheMyBatis
0 likes · 12 min read
Master MyBatis Caching: First- and Second-Level Cache Explained
Top Architect
Top Architect
Oct 27, 2022 · Backend Development

Redis Cache Expiration Avalanche and Mitigation Strategies

The article explains how Redis cache expiration can cause a request avalanche that overloads databases, and presents mitigation techniques such as semaphore rate limiting, per‑key locking, fault‑tolerant cache rebuilding, and example Java code using Spring and Redis.

Cacheavalanchejava
0 likes · 8 min read
Redis Cache Expiration Avalanche and Mitigation Strategies
Architect's Tech Stack
Architect's Tech Stack
Oct 17, 2022 · Backend Development

A Comprehensive Guide to Google Guava Utilities in Java

This article introduces Google Guava's powerful utilities—including Joiner, Splitter, CharMatcher, Multiset, Multimap, BiMap, Table, Functions, Predicate, Cache, and asynchronous callbacks—explaining their advantages over standard JDK classes and demonstrating practical usage with code examples for Java developers.

CacheCollectionsGuava
0 likes · 10 min read
A Comprehensive Guide to Google Guava Utilities in Java
Bilibili Tech
Bilibili Tech
Sep 30, 2022 · Databases

Database Failure Management: Types, Mitigation Strategies, and Bilibili’s Practices

The article outlines common database and cache failures—such as instance outages, replication lag, data corruption, and cache avalanches—while detailing Bilibili’s mitigation strategies including high‑availability architectures, scaling, multi‑active designs, proxy controls, slow‑query alerts, fault‑injection drills, and ongoing resilience improvements.

BilibiliCachedatabase
0 likes · 17 min read
Database Failure Management: Types, Mitigation Strategies, and Bilibili’s Practices
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 20, 2022 · Backend Development

Understanding MyBatis First-Level and Second-Level Caches: Principles, Implementation, and Differences

This article explains the principles, implementation steps, and configuration of MyBatis first‑level (SqlSession) and second‑level (mapper) caches, compares their scopes and behaviors, and provides practical guidance on when and how to enable each cache to improve database query performance.

BackendCacheFirst-Level Cache
0 likes · 7 min read
Understanding MyBatis First-Level and Second-Level Caches: Principles, Implementation, and Differences
ITPUB
ITPUB
Sep 18, 2022 · Databases

Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM

This article explains how Redis stores key‑value pairs, details the internal data structures such as dict, dictEntry and redisObject, and provides practical memory‑saving tricks—including key shortening, encoding choices, object sharing, bitmap usage, hash consolidation, fragmentation handling, and 32‑bit deployment—to dramatically reduce RAM consumption while maintaining performance.

CacheData StructuresMemory Optimization
0 likes · 19 min read
Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM
Java Architect Essentials
Java Architect Essentials
Sep 8, 2022 · Backend Development

A Comprehensive Guide to Google Guava: Joiner, Splitter, CharMatcher, Collections, Multimap, BiMap, Cache and More

This article introduces Google Guava’s rich set of utilities for Java developers, covering string handling with Joiner/Splitter, character matching, primitive extensions, advanced collection types such as Multiset, Multimap, BiMap, Table, functional helpers, null‑checking, local caching, and asynchronous callbacks, all illustrated with examples and images.

CacheCollectionsGuava
0 likes · 10 min read
A Comprehensive Guide to Google Guava: Joiner, Splitter, CharMatcher, Collections, Multimap, BiMap, Cache and More
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 23, 2022 · Databases

DBLE Cache Mechanism: Primary‑Key Routing Issue, Diagnosis and Resolution

This article examines the DBLE distributed database middleware cache, reproduces a primary‑key update query that returns incomplete results due to stale routing cache, analyzes cache contents via the management console, explains the cache’s behavior and limitations, and shows how disabling the primary‑key cache restores correct query routing.

CacheDBLESQL Routing
0 likes · 10 min read
DBLE Cache Mechanism: Primary‑Key Routing Issue, Diagnosis and Resolution
Java Backend Technology
Java Backend Technology
Aug 4, 2022 · Backend Development

9 Essential Design Tips for High‑Concurrency Flash Sale Systems

Designing a flash‑sale (秒杀) system for massive traffic requires handling instant spikes, page staticization, CDN acceleration, read‑heavy caching, preventing cache‑penetration and cache‑breakdown, managing pre‑deducted inventory, employing atomic database or Redis operations, leveraging Lua scripts, distributed locks, MQ async processing, and robust rate‑limiting strategies.

Cacheflash salerate limiting
0 likes · 25 min read
9 Essential Design Tips for High‑Concurrency Flash Sale Systems
Top Architect
Top Architect
Aug 2, 2022 · Databases

Understanding MySQL Execution Process: Connectors, Permissions, Cache, Parser, Optimizer, and Executor

This article explains the complete MySQL execution flow, covering the connector's duties, permission tables, caching behavior, parsing of SQL statements, optimizer decision‑making, executor interaction with storage engines, processlist states, logical query order, and practical tips for ordering WHERE‑clause conditions.

CacheExecution ProcessPermissions
0 likes · 11 min read
Understanding MySQL Execution Process: Connectors, Permissions, Cache, Parser, Optimizer, and Executor
DeWu Technology
DeWu Technology
Jul 25, 2022 · Backend Development

Cache Redesign and Performance Optimization for Community Collection Service

By consolidating each user’s collected content into a single Redis hash, replacing per‑item SISMEMBER checks with a batch HMGET, and limiting cached IDs to the most recent 5,000, the redesign cut API latency by threefold, slashed Redis and MySQL query rates dramatically, and reduced memory and connection usage.

BackendCacheoptimization
0 likes · 9 min read
Cache Redesign and Performance Optimization for Community Collection Service
Top Architect
Top Architect
Jul 10, 2022 · Backend Development

Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration

This article explains Spring Boot's caching mechanism based on the JSR‑107 JCache specification, details core interfaces and implementations like Cache, AbstractValueAdaptingCache, and ConcurrentMapCache, demonstrates cache annotations such as @Cacheable, @CachePut and @CacheEvict, and shows how to replace the default in‑memory cache with Redis using Docker, StringRedisTemplate, and custom serialization.

CacheJCacheSpring Boot
0 likes · 16 min read
Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration
Su San Talks Tech
Su San Talks Tech
Jul 6, 2022 · Databases

Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM

This article explains Redis's internal storage mechanisms and presents seven practical optimization techniques—including key‑value compression, small‑collection encoding, object sharing, bitmap usage, hash structuring, memory‑fragment defragmentation, and 32‑bit deployment—to dramatically reduce memory consumption while increasing data capacity.

CacheData StructuresMemory Optimization
0 likes · 21 min read
Master Redis Memory: 7 Proven Techniques to Store More Data with Less RAM
Open Source Linux
Open Source Linux
Jul 1, 2022 · Databases

Understanding MySQL Buffers, Cache, and Zero‑Copy I/O: A Deep Dive

This article explains the differences between buffers and caches, explores MySQL’s buffer pool architecture, details write‑through/write‑back strategies, and reviews key InnoDB parameters such as innodb_flush_log_at_trx_commit and innodb_flush_method for optimizing data durability and performance.

CacheFlushInnoDB
0 likes · 12 min read
Understanding MySQL Buffers, Cache, and Zero‑Copy I/O: A Deep Dive
Tencent Cloud Developer
Tencent Cloud Developer
Jun 30, 2022 · Databases

Redis Overview: Architecture, Persistence, Replication, Sentinel, and Cluster

Redis is a single‑threaded, in‑memory data store offering rich structures, configurable expiration, multiple eviction policies, asynchronous master‑slave replication with Sentinel failover, durable RDB snapshots plus AOF logging, and native clustering that shards data across many masters for horizontal scalability and high availability.

CacheClusterPersistence
0 likes · 18 min read
Redis Overview: Architecture, Persistence, Replication, Sentinel, and Cluster
Top Architect
Top Architect
Jun 30, 2022 · Backend Development

Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration

This article explains Spring Boot caching by introducing the JSR‑107 JCache specification, detailing core cache interfaces, showing the Spring Cache abstraction and its implementations, demonstrating cache annotations such as @Cacheable, @CachePut and @CacheEvict, and finally covering Redis setup and custom CacheManager usage.

CacheJCacheSpring Boot
0 likes · 19 min read
Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration
Liangxu Linux
Liangxu Linux
Jun 22, 2022 · Fundamentals

Understanding Linux Memory Management: From Process Allocation to OOM and Cache

This article provides a comprehensive walkthrough of Linux kernel memory management, covering process address space layout, memory allocation mechanisms, OOM selection criteria, where allocated memory resides, and both manual and automatic memory reclamation techniques, complete with code examples and diagrams.

CacheLinuxMemory Management
0 likes · 20 min read
Understanding Linux Memory Management: From Process Allocation to OOM and Cache
Open Source Linux
Open Source Linux
Jun 20, 2022 · Databases

Understanding Buffer vs Cache and MySQL’s Flush Strategies

This article explains the fundamental differences between buffers and caches, details MySQL’s multi‑layer buffer architecture, and examines how write‑through, write‑back, and Direct I/O affect data durability and performance through various InnoDB flush parameters.

CacheDatabase PerformanceFlush
0 likes · 12 min read
Understanding Buffer vs Cache and MySQL’s Flush Strategies
ITPUB
ITPUB
Jun 13, 2022 · Backend Development

Mastering Redis Data Types: When to Use Strings, Lists, Hashes, Sets, Zsets and More

This comprehensive guide explains Redis's core data types—including String, List, Hash, Set, Zset, BitMap, HyperLogLog, GEO and Stream—detailing their internal implementations, common commands, and real‑world application scenarios such as caching, counting, messaging queues, ranking, geolocation and unique‑ID generation.

CacheData TypesMessage Queue
0 likes · 50 min read
Mastering Redis Data Types: When to Use Strings, Lists, Hashes, Sets, Zsets and More
Tencent Cloud Developer
Tencent Cloud Developer
Jun 9, 2022 · Databases

Redis Cache Anomalies and Mitigation Strategies

Redis caching can suffer from avalanche, breakdown, and penetration anomalies, but using staggered expirations, mutex locks, double‑key backups, high‑availability clusters, rate limiting, empty‑value caching, Bloom filters, warm‑up and degradation strategies effectively mitigates these risks and protects database stability.

BackendCachecache-avalanche
0 likes · 9 min read
Redis Cache Anomalies and Mitigation Strategies
Java High-Performance Architecture
Java High-Performance Architecture
Jun 5, 2022 · Backend Development

Redis Cache Mastery: Real-World Scenarios & Distributed Lock Solutions for Java

This article examines common Redis caching challenges in Java high‑performance architectures—such as lock loss, cache hot‑spot rebuild, cache penetration, and avalanche—through eleven real‑world scenarios, and provides practical solutions including RedLock alternatives, Zookeeper, DCL, tryLock, multi‑level caching, and Lua‑based read‑write locks.

Cachedistributed-lockjava
0 likes · 19 min read
Redis Cache Mastery: Real-World Scenarios & Distributed Lock Solutions for Java
Ctrip Technology
Ctrip Technology
May 26, 2022 · Backend Development

Memory Structure Selection and Optimization for Hotel Query Service

This article examines how Ctrip's hotel query service selects and optimizes in‑memory cache structures—covering Java object layout, HashMap overhead, alternative collections, and various encoding techniques—to achieve high‑performance reads and updates while drastically reducing memory consumption.

CacheHashMapMemory Optimization
0 likes · 23 min read
Memory Structure Selection and Optimization for Hotel Query Service
MaGe Linux Operations
MaGe Linux Operations
May 12, 2022 · Fundamentals

What’s the Real Difference Between Linux Buffers and Cache?

This article explains the definitions of Linux buffers and cache, how the free command reports them, and demonstrates through experiments that buffers can cache both reads and writes while cache primarily handles page caching for file reads and writes.

CacheLinuxMemory Management
0 likes · 6 min read
What’s the Real Difference Between Linux Buffers and Cache?
Java Backend Technology
Java Backend Technology
May 9, 2022 · Backend Development

Solve Cache Penetration, Breakdown, and Avalanche in Spring Boot with Simple Annotations

This article revisits cache breakdown, penetration, and avalanche issues in high‑concurrency Java applications, critiques common Bloom‑filter solutions, and demonstrates practical Spring Boot techniques—including null‑value caching, sync annotations, and TTL jitter—to implement robust, production‑ready caching without complex infrastructure.

CacheSpringBootcache-avalanche
0 likes · 11 min read
Solve Cache Penetration, Breakdown, and Avalanche in Spring Boot with Simple Annotations
Top Architect
Top Architect
May 8, 2022 · Backend Development

Understanding MyBatis First‑Level and Second‑Level Caching with Code Examples

This article explains the principles and practical usage of MyBatis first‑level and second‑level caches, describing how caching reduces database load, showing configuration steps, code demonstrations, flow diagrams, and important considerations such as cache invalidation and LRU eviction.

CacheFirst-Level CacheMyBatis
0 likes · 10 min read
Understanding MyBatis First‑Level and Second‑Level Caching with Code Examples
IT Services Circle
IT Services Circle
Apr 7, 2022 · Databases

Database and Cache Dual-Write Consistency: Common Solutions and Pitfalls

This article examines the problem of data inconsistency when writing to both a database and a cache, outlines four typical dual‑write strategies, analyzes their drawbacks in high‑concurrency scenarios, and recommends the most reliable approach—writing to the database first followed by cache deletion with retry mechanisms.

CacheConsistencyMessaging
0 likes · 18 min read
Database and Cache Dual-Write Consistency: Common Solutions and Pitfalls
ITPUB
ITPUB
Mar 31, 2022 · Databases

Understanding Redis: Core Data Types, Persistence, Replication, and Common Pitfalls

This comprehensive guide explores Redis fundamentals, including NoSQL concepts, its five primary data structures, internal storage mechanisms, persistence options, replication, sentinel failover, and strategies to prevent cache penetration, breakdown, and avalanche, providing developers with deep insights for building robust, high‑performance applications.

CacheData StructuresNoSQL
0 likes · 53 min read
Understanding Redis: Core Data Types, Persistence, Replication, and Common Pitfalls
IT Services Circle
IT Services Circle
Mar 25, 2022 · Fundamentals

Consistent Hashing Algorithm: Principles, Advantages, and Applications

Consistent hashing maps both servers and keys onto a virtual hash ring, allowing keys to be assigned to the nearest clockwise server, which minimizes data movement during node addition or removal, improves load distribution with virtual nodes, and is widely used in distributed caching and load balancing systems.

CacheDistributed Systemsconsistent hashing
0 likes · 11 min read
Consistent Hashing Algorithm: Principles, Advantages, and Applications
Top Architect
Top Architect
Mar 22, 2022 · Backend Development

Cache Update Strategies: Consistency, Concurrency, and Failure Handling

The article analyzes various cache update strategies—including delete‑then‑write, write‑then‑delete, and asynchronous binlog subscription—examining their impact on system throughput, concurrency safety, failure scenarios, and fault detection to ensure data consistency between cache and database.

BackendCacheConsistency
0 likes · 6 min read
Cache Update Strategies: Consistency, Concurrency, and Failure Handling
IT Services Circle
IT Services Circle
Mar 22, 2022 · Backend Development

Cache Avalanche Incident: Root Cause, Response, and Prevention Strategies

A recent flash‑sale failure caused by a cache avalanche was analyzed, revealing that setting a uniform two‑hour expiration for all items flooded the database, and the post outlines detection steps, emergency mitigation, and three proven techniques—uniform expiration, mutex locking, and never‑expire caches—to prevent recurrence.

CacheIncident
0 likes · 4 min read
Cache Avalanche Incident: Root Cause, Response, and Prevention Strategies
Java High-Performance Architecture
Java High-Performance Architecture
Mar 21, 2022 · Backend Development

Boost Spring Cache Performance with Custom Annotations and a SCAN‑Based RedisCacheWriter

This article explains how to enhance Spring Cache by creating custom cache annotations, replacing the costly KEYS command with SCAN in a rewritten DefaultRedisCacheWriter, and dynamically registering RedisCacheManager beans to support per‑module TTL and transaction‑aware caching, all illustrated with full Java code examples.

BackendCacheannotations
0 likes · 28 min read
Boost Spring Cache Performance with Custom Annotations and a SCAN‑Based RedisCacheWriter
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.

BackendBinlogCache
0 likes · 10 min read
Cache Consistency Strategies: From Simple Write‑Through to Binlog Subscription
Top Architect
Top Architect
Feb 18, 2022 · Backend Development

Ensuring Data Consistency Between Cache and Database: Strategies and Trade‑offs

The article analyzes the problem of data inconsistency when using caches such as Redis or local memory alongside a database, classifies data by real‑time requirements, compares four write‑through/write‑behind strategies, and proposes practical solutions like delayed double‑delete, message‑queue compensation, and binlog‑driven cache updates.

BackendCacheConsistency
0 likes · 8 min read
Ensuring Data Consistency Between Cache and Database: Strategies and Trade‑offs
Efficient Ops
Efficient Ops
Feb 16, 2022 · Databases

Master Redis: Core Concepts, Commands, and Data Types Explained

Redis is an open‑source, in‑memory data‑structure store that serves as a database, cache, and message broker; this guide introduces its fundamentals, explains why NoSQL emerged, details its five primary data types, common commands, and advanced features like transactions and pipelines.

CacheData StructuresNoSQL
0 likes · 15 min read
Master Redis: Core Concepts, Commands, and Data Types Explained
Architect's Journey
Architect's Journey
Feb 16, 2022 · Databases

How to Explain Redis Persistence Mechanisms in an Interview

The article walks through Redis’s two persistence options—RDB snapshots and AOF logs—detailing how each works, their advantages and drawbacks, and why interviewees should understand their differences, including AOF rewrite compression, to answer interview questions accurately.

AOFCachePersistence
0 likes · 8 min read
How to Explain Redis Persistence Mechanisms in an Interview
Top Architect
Top Architect
Jan 24, 2022 · Backend Development

Ensuring Data Consistency Between Cache and Database in Double‑Write Scenarios

The article analyzes the challenges of maintaining data consistency when using both cache (local memory or Redis) and a database, classifies data by real‑time requirements, evaluates four double‑write strategies, and proposes practical solutions such as delayed double deletion, message‑queue compensation, and binlog‑driven cache updates.

BackendCachedata synchronization
0 likes · 8 min read
Ensuring Data Consistency Between Cache and Database in Double‑Write Scenarios
Shopee Tech Team
Shopee Tech Team
Jan 13, 2022 · Big Data

Engineering Practices and Performance Optimizations of Apache Druid for Real‑Time OLAP at Shopee

Shopee’s engineering team scaled a 100‑node Apache Druid cluster for real‑time OLAP by redesigning the Coordinator load‑balancing algorithm, adding incremental metadata pulls, introducing a segment‑merged result cache, and building exact‑count and flexible sliding‑window operators, while planning cloud‑native deployment.

Apache DruidBig DataBitmap Index
0 likes · 17 min read
Engineering Practices and Performance Optimizations of Apache Druid for Real‑Time OLAP at Shopee
58 Tech
58 Tech
Jan 6, 2022 · Mobile Development

Design and Implementation of a Unified Rich Media Animation Control for Android Apps

This document presents the background, objectives, research findings, design principles, API specifications, caching strategy, implementation details, XML usage, memory impact analysis, and conclusions of a unified rich‑media animation component that consolidates image, GIF, Lottie, pager and video handling for efficient reuse in Android RecyclerView lists.

AndroidCacheDesign
0 likes · 11 min read
Design and Implementation of a Unified Rich Media Animation Control for Android Apps
Tencent Cloud Developer
Tencent Cloud Developer
Dec 10, 2021 · Databases

MongoDB Architecture and Performance Optimizations for Tencent Cloud K‑Song Feed Service

The article details how Tencent Cloud’s K‑Song feed service, serving over 150 million daily users, was engineered with a read‑expansion model, cached results, auxiliary index tables, hashed sharding, write‑concern tuning, disabled chain replication, and WiredTiger and backup optimizations, achieving sub‑10 ms write latency and significantly lower CPU and slow‑query rates.

CacheMongoDBTencent Cloud
0 likes · 17 min read
MongoDB Architecture and Performance Optimizations for Tencent Cloud K‑Song Feed Service
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
Top Architect
Top Architect
Dec 5, 2021 · Backend Development

Handling Redis Cache Issues: Breakdown, Penetration, and Avalanche Strategies

This article explains how Redis cache can suffer from key expiration, eviction, and high‑concurrency problems such as cache breakdown, penetration, and avalanche, and presents practical lock‑based, filter‑based, and timing‑aware solutions to maintain backend stability and performance.

Cachecache-avalanchecache-breakdown
0 likes · 6 min read
Handling Redis Cache Issues: Breakdown, Penetration, and Avalanche Strategies
21CTO
21CTO
Dec 2, 2021 · Fundamentals

Why Caches Matter: A Deep Dive into CPU Memory Hierarchy and Consistency

This article provides a comprehensive overview of CPU caches, covering why they are needed, their classification, placement and lookup mechanisms, replacement and write policies, and coherence protocols such as MESI, illustrating each concept with diagrams and code examples.

CPUCacheMemory Hierarchy
0 likes · 11 min read
Why Caches Matter: A Deep Dive into CPU Memory Hierarchy and Consistency
Programmer DD
Programmer DD
Nov 15, 2021 · Fundamentals

Why Cache Matters: Understanding Placement, Replacement, and Consistency

This article explores the role of cache in computer architecture, covering why caches are needed, how data is placed and retrieved, various replacement policies, write strategies, and consistency protocols such as MESI, while illustrating concepts with diagrams and code examples.

CacheCache ConsistencyLRU
0 likes · 12 min read
Why Cache Matters: Understanding Placement, Replacement, and Consistency
Laravel Tech Community
Laravel Tech Community
Nov 7, 2021 · Backend Development

session_cache_limiter — Retrieve and Set Cache Limiter

The session_cache_limiter function returns the current cache limiter name, defines HTTP cache‑control policies such as nocache, public, and private, accepts an optional limiter argument, and can be used in PHP scripts to control client and proxy caching behavior.

BackendCacheSession
0 likes · 2 min read
session_cache_limiter — Retrieve and Set Cache Limiter
Laravel Tech Community
Laravel Tech Community
Nov 7, 2021 · Backend Development

session_cache_expire — Returns the Current Cache Expiration Time in PHP

This article explains the PHP function session_cache_expire(), describing its purpose of returning the current session cache expiration value in minutes, its optional parameter for setting a new expiration time, the default return value, and provides a complete example demonstrating how to configure and display the cache limiter and expiration settings.

BackendCacheSession
0 likes · 2 min read
session_cache_expire — Returns the Current Cache Expiration Time in PHP
Wukong Talks Architecture
Wukong Talks Architecture
Nov 4, 2021 · Backend Development

Understanding Eureka Server's Three-Level Cache Architecture

This article explains Eureka Server's three-tier cache system—including read‑only, read‑write, and local registry caches—detailing their structures, update mechanisms, expiration policies, configuration options, and the consistency challenges they introduce for microservice environments.

Cacheeurekajava
0 likes · 9 min read
Understanding Eureka Server's Three-Level Cache Architecture
IT Architects Alliance
IT Architects Alliance
Oct 30, 2021 · Backend Development

How to Prevent Cache Breakdown, Penetration, and Avalanche in High‑Traffic Systems

The article explains why cache breakdown, penetration, and avalanche occur under high concurrency, analyzes their root causes such as key expiration and eviction, and provides practical mitigation techniques including distributed locking, Bloom filters, and staggered key updates to keep services stable.

Cachecache-avalanchecache-breakdown
0 likes · 7 min read
How to Prevent Cache Breakdown, Penetration, and Avalanche in High‑Traffic Systems