Tagged articles
517 articles
Page 5 of 6
Java Backend Technology
Java Backend Technology
Jul 9, 2020 · Backend Development

How to Solve Distributed Cache Consistency Issues with Lazy Updates

This article explains the Cache Aside pattern, why deleting stale cache entries is often better than updating them, and presents a queue‑based lazy‑update solution that handles simple and complex consistency problems in high‑concurrency environments while outlining practical performance considerations.

BackendCacheConsistency
0 likes · 11 min read
How to Solve Distributed Cache Consistency Issues with Lazy Updates
Open Source Tech Hub
Open Source Tech Hub
Jun 25, 2020 · Backend Development

Mastering Redis: Core Data Structures and Practical Commands Explained

This comprehensive guide explores Redis fundamentals, detailing its six primary data structures—strings, lists, hashes, sets, sorted sets, and streams—along with practical command examples, internal implementations, and usage patterns for high‑performance backend development.

CacheData StructuresMessage Queue
0 likes · 17 min read
Mastering Redis: Core Data Structures and Practical Commands Explained
Tencent Cloud Developer
Tencent Cloud Developer
Jun 17, 2020 · Databases

Understanding Cache Challenges and Solutions with Tencent Cloud Redis Hybrid Storage

The article outlines common cache challenges—consistency, breakdown, and avalanche—explains traditional three‑tier architectures, then details Tencent Cloud Redis Hybrid Storage’s unified interface, automatic hot‑data caching, dynamic TTL, atomic updates, and cost‑effective persistence, offering a scalable, reliable cache‑plus‑storage solution.

CacheHybrid storagePerformance
0 likes · 27 min read
Understanding Cache Challenges and Solutions with Tencent Cloud Redis Hybrid Storage
Top Architect
Top Architect
Jun 8, 2020 · Databases

Best Practices and Development Guidelines for Using Alibaba Cloud Redis

This article outlines comprehensive development guidelines for Alibaba Cloud Redis, covering key naming conventions, value design, command best practices, client usage patterns, related tools, and detailed code examples for safely deleting large keys across various data structures.

Alibaba CloudCacheKey Design
0 likes · 12 min read
Best Practices and Development Guidelines for Using Alibaba Cloud Redis
DevOps Cloud Academy
DevOps Cloud Academy
May 12, 2020 · Operations

Understanding GitLab CI Cache Configuration and Best Practices

This article explains GitLab CI cache configuration, including cache paths, keys, policies, and examples of global and job-specific caching, demonstrates pipeline execution and runner cache behavior, and provides best‑practice conclusions for effective CI/CD caching.

CI/CDCacheDevOps
0 likes · 9 min read
Understanding GitLab CI Cache Configuration and Best Practices
Liangxu Linux
Liangxu Linux
May 3, 2020 · Fundamentals

Why Modern Operating Systems Need Virtual Memory: A Deep Dive

This article explains the necessity of virtual memory in modern operating systems, covering its role as an abstraction layer, caching benefits, memory protection, multi‑level page tables, process isolation, and how these mechanisms improve performance, security, and resource utilization.

CacheOperating Systemspage-tables
0 likes · 13 min read
Why Modern Operating Systems Need Virtual Memory: A Deep Dive
Programmer DD
Programmer DD
Apr 30, 2020 · Fundamentals

Unlocking CPU Secrets: How Processors Execute, Cache, and Multithread

This article explains the core components and operation of a CPU, covering the fetch‑decode‑execute cycle, instruction sets, registers, pipeline and superscalar designs, multi‑core and hyper‑threading concepts, and the hierarchy of caches from registers to L3, providing a comprehensive fundamentals overview.

CPUCacheRegisters
0 likes · 14 min read
Unlocking CPU Secrets: How Processors Execute, Cache, and Multithread
Efficient Ops
Efficient Ops
Apr 28, 2020 · Databases

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

This article introduces Redis as an open‑source in‑memory data‑structure store, explains its role as a NoSQL database, covers fundamental data types, common commands, expiration handling, and advanced features like pipelines and transactions, providing a comprehensive guide for developers.

CacheData StructuresIn-Memory Database
0 likes · 15 min read
Master Redis: Core Concepts, Commands, and Data Types Explained
Laravel Tech Community
Laravel Tech Community
Apr 23, 2020 · Backend Development

Laravel Cache Cheat Sheet: Quick Reference for Common Operations

This article provides a concise cheat sheet for Laravel's Cache system, detailing facade methods, helper functions, tagging, sections, store selection, and related events with ready-to-use code snippets, while noting version‑specific nuances such as the cache duration unit change in Laravel 5.8.

BackendCacheCacheFacade
0 likes · 4 min read
Laravel Cache Cheat Sheet: Quick Reference for Common Operations
Big Data Technology Architecture
Big Data Technology Architecture
Apr 17, 2020 · Databases

Improving HBase Cluster Performance: Cache Optimization, GC Tuning, and Multiget Concurrency

This article details a series of practical enhancements applied to an HBase 1.2.4‑based cluster—including layered BucketCache, data pre‑heating, GC‑friendly object pooling, and a multiget concurrency model—that together raise throughput several‑fold and consistently keep P99 latency below 50 ms in YCSB benchmarks.

BenchmarkCacheGC optimization
0 likes · 14 min read
Improving HBase Cluster Performance: Cache Optimization, GC Tuning, and Multiget Concurrency
Xianyu Technology
Xianyu Technology
Apr 7, 2020 · Mobile Development

Optimizing Image Loading in Flutter for Xianyu: Native Mode, CDN, and External Texture

Xianyu’s Flutter image pipeline was overhauled by using native ImageCache limits, a disk‑cache bridge, CDN‑driven resizing and WebP compression, precaching, ListView cacheExtent tuning, multi‑page texture recycling, and an external texture bridge, achieving substantial memory savings, reduced OOM risk, and a smaller app bundle.

CacheExternal TextureFlutter
0 likes · 15 min read
Optimizing Image Loading in Flutter for Xianyu: Native Mode, CDN, and External Texture
dbaplus Community
dbaplus Community
Mar 30, 2020 · Fundamentals

Why Cache Memory Matters: From Code Layout to Multi‑Level Caches

This article explains why cache memory is essential for modern CPUs, how different loop orders affect cache hits, the structure of direct‑mapped, set‑associative and fully‑associative caches, multi‑level cache hierarchies, and the policies that govern cache allocation and updates.

CPU performanceCacheMemory Hierarchy
0 likes · 21 min read
Why Cache Memory Matters: From Code Layout to Multi‑Level Caches
Programmer DD
Programmer DD
Mar 17, 2020 · Backend Development

How to Keep Cache and Database Consistent Under High Concurrency?

This article explains the cache‑aside pattern, why deleting stale cache entries is preferred over updating them, outlines basic and complex cache‑database inconsistency scenarios, and presents a queue‑based solution with practical considerations for read‑blocking, request routing, and hotspot handling in high‑traffic systems.

CacheConsistencyhigh concurrency
0 likes · 11 min read
How to Keep Cache and Database Consistent Under High Concurrency?
Big Data Technology Architecture
Big Data Technology Architecture
Mar 4, 2020 · Databases

HBase Memory‑Related Performance Tuning Guide

This article explains how to optimize HBase performance by properly configuring JVM memory, selecting suitable garbage‑collection strategies, enabling MSLAB and BucketCache, and adjusting read/write cache ratios to reduce fragmentation and improve throughput.

CacheGarbage CollectionHBase
0 likes · 8 min read
HBase Memory‑Related Performance Tuning Guide
FunTester
FunTester
Jan 25, 2020 · Backend Development

Why Redis Cached Data Lost Fields After Async‑to‑Sync Conversion

During a performance test a query API failed on the second request because the Redis cache was written before asynchronous tasks finished, causing missing fields; the article explains the root cause, shows the original and fixed code, and details the debugging process.

AsyncBackendCache
0 likes · 5 min read
Why Redis Cached Data Lost Fields After Async‑to‑Sync Conversion
Laravel Tech Community
Laravel Tech Community
Jan 3, 2020 · Backend Development

Laravel Session Management: Configuration, Drivers, and Usage

This guide explains how Laravel handles session storage across HTTP requests, covering configuration files, built‑in drivers such as file, cookie, database, Memcached and Redis, custom driver creation, and common session operations like retrieving, storing, flashing, and regenerating IDs, with code examples throughout.

BackendCacheLaravel
0 likes · 12 min read
Laravel Session Management: Configuration, Drivers, and Usage
ITPUB
ITPUB
Dec 24, 2019 · Databases

Why Does Redis Have 16 Databases by Default? Origins and Best Practices

Redis creates 16 logical databases by default, a design inherited from its early architecture; this article explains the origin of that number, how to modify it via configuration, the proper way to view these databases as namespaces, and the limitations when using Redis in cluster mode.

CacheClusterdatabases
0 likes · 6 min read
Why Does Redis Have 16 Databases by Default? Origins and Best Practices
Java Captain
Java Captain
Dec 14, 2019 · Backend Development

Key Considerations and Implementation Strategies for a Local Cache in Java

This article outlines the essential design points for a local Java cache—including data structures, size limits, eviction policies, expiration handling, thread safety, blocking mechanisms, simple APIs, and persistence options—while providing concrete code examples and implementation guidance.

CachePersistenceconcurrency
0 likes · 12 min read
Key Considerations and Implementation Strategies for a Local Cache in Java
Programmer DD
Programmer DD
Dec 8, 2019 · Backend Development

Why Does Dubbo Keep Calling When Nacos Is Down? Uncovering the Cache Mechanism

This article analyzes a real‑world incident where Dubbo services continued to operate despite Nacos registry failures, explains the role of local provider caches, examines the namingLoadCacheAtStart configuration, and provides reproduction steps and best‑practice recommendations for high‑availability service discovery.

CacheDubboNacos
0 likes · 11 min read
Why Does Dubbo Keep Calling When Nacos Is Down? Uncovering the Cache Mechanism
Selected Java Interview Questions
Selected Java Interview Questions
Dec 7, 2019 · Backend Development

Understanding Redis Cache Avalanche, Penetration, and Breakdown: Causes and Mitigation Strategies

The article explains what Redis cache avalanche, penetration, and breakdown are, illustrates real‑world incidents, and provides pre‑, during‑, and post‑incident solutions such as high‑availability setups, local caches with rate limiting, fallback mechanisms, and placeholder writes to prevent database overload.

BackendBreakdownCache
0 likes · 8 min read
Understanding Redis Cache Avalanche, Penetration, and Breakdown: Causes and Mitigation Strategies
ITPUB
ITPUB
Nov 25, 2019 · Databases

Which Database Architecture Best Balances Availability, Performance, and Consistency?

This article examines four common database architecture patterns—primary‑standby, dual‑primary, master‑slave read/write separation, and a hybrid dual‑primary + master‑slave—evaluating each against high availability, performance, consistency, and scalability, and then presents practical consistency‑resolution techniques and cache strategies.

CacheConsistencyDatabase Architecture
0 likes · 10 min read
Which Database Architecture Best Balances Availability, Performance, and Consistency?
Architect's Tech Stack
Architect's Tech Stack
Nov 23, 2019 · Databases

Redis Usage Guidelines and Operational Restrictions

This article provides comprehensive best‑practice guidelines for using Redis, covering data classification, key naming, size and connection limits, cache TTL, recommended client‑hash sharding, and a strict list of prohibited commands and operations to ensure performance, reliability, and maintainability.

CacheOperationsPerformance
0 likes · 9 min read
Redis Usage Guidelines and Operational Restrictions
ITPUB
ITPUB
Nov 15, 2019 · Databases

How Oracle Uses Cache, Buffer, and Write‑Back to Keep Data Consistent

The article explains the differences between cache and buffer, how Oracle’s log buffer and data buffer cache interact with various storage‑level caches, and why write‑back, battery‑backed caches, RAID and disk cache settings are crucial for maintaining data consistency during power loss.

CacheOracleWrite-Ahead Logging
0 likes · 6 min read
How Oracle Uses Cache, Buffer, and Write‑Back to Keep Data Consistent
Liangxu Linux
Liangxu Linux
Nov 4, 2019 · Fundamentals

How CPUs Execute Programs: From Fetch‑Decode‑Execute to Multicore & Cache

This article explains the core principles of CPU operation, covering the fetch‑decode‑execute cycle, instruction sets, registers, pipeline and superscalar designs, multithreading and multicore behavior, as well as cache hierarchy from registers through L1‑L3, illustrating how these mechanisms affect program execution.

ArchitectureCPUCache
0 likes · 14 min read
How CPUs Execute Programs: From Fetch‑Decode‑Execute to Multicore & Cache
Senior Brother's Insights
Senior Brother's Insights
Nov 4, 2019 · Fundamentals

Why Understanding Java Memory Model Boosts Your Code Efficiency

This article explains the hardware memory architecture, the role of caches, and how the Java Memory Model abstracts thread interaction with main and working memory, detailing the eight fundamental JMM operations, their ordering rules, and special considerations for long and double types to help developers write correct, high‑performance concurrent Java code.

CacheJVMMemory Model
0 likes · 11 min read
Why Understanding Java Memory Model Boosts Your Code Efficiency
Selected Java Interview Questions
Selected Java Interview Questions
Nov 4, 2019 · Databases

Redis Expiration Strategies and Memory Eviction Mechanisms

This article explains how Redis removes expired keys using periodic and lazy deletion, describes the slave expiration handling, details the asynchronous memory reclamation commands like UNLINK and FLUSHALL ASYNC, and outlines the various maxmemory eviction policies including LRU, LFU, and their implementations.

CacheExpirationLFU
0 likes · 13 min read
Redis Expiration Strategies and Memory Eviction Mechanisms
Big Data Technology & Architecture
Big Data Technology & Architecture
Oct 14, 2019 · Big Data

Optimizing Spark PageRank: Cache, Checkpoint, Data Skew, and Resource Utilization

This article presents a comprehensive analysis of Spark PageRank performance, detailing the algorithm's basics, the original example code, and four key optimizations—caching with checkpointing, memory‑efficient data structures, handling data skew, and maximizing executor and driver resource usage—backed by experimental results and practical recommendations.

Big DataCacheCheckpoint
0 likes · 18 min read
Optimizing Spark PageRank: Cache, Checkpoint, Data Skew, and Resource Utilization
FunTester
FunTester
Sep 29, 2019 · Backend Development

Force a Page Refresh in Selenium to Prevent Cache‑Induced Slowdowns

When repeatedly performing Selenium actions causes the page to refresh slowly and occasional save errors, a custom forced‑refresh method using Ctrl+F5 and low‑level key events can reliably clear the cache and keep the automation stable.

CacheSeleniumWebDriver
0 likes · 3 min read
Force a Page Refresh in Selenium to Prevent Cache‑Induced Slowdowns
vivo Internet Technology
vivo Internet Technology
Sep 25, 2019 · Mobile Development

Analysis of Glide Image Loading Cache Mechanisms on Android

The article dissects Glide’s five‑level caching system—active resources, memory cache, resource and data disk caches, and network cache—explaining how active weak references feed the LRU memory cache, how DiskCacheStrategy governs transformed and raw data storage, and how I/O and network tasks run on separate executors while network responses are cached before delivery.

AndroidCacheDisk Cache
0 likes · 21 min read
Analysis of Glide Image Loading Cache Mechanisms on Android
MaGe Linux Operations
MaGe Linux Operations
Sep 7, 2019 · Fundamentals

How Linux Manages Memory: From Process Allocation to OOM and Cache

This article explores Linux kernel memory management, detailing process address space allocation, the behavior of the OOM killer, various memory mapping types (shared, private, anonymous), cache usage, manual and automatic memory reclamation, and related kernel parameters, providing practical insights and examples.

CacheMemory ManagementOOM
0 likes · 20 min read
How Linux Manages Memory: From Process Allocation to OOM and Cache
Programmer DD
Programmer DD
Aug 24, 2019 · Backend Development

How to Solve Cache‑Database Consistency Issues in High‑Concurrency Systems

This article examines common cache‑database consistency problems, explains why naive double‑write approaches fail, introduces the Cache‑Aside pattern, and proposes a queue‑based serialization solution with lazy cache updates to maintain data integrity under high‑traffic, concurrent read‑write workloads.

BackendCacheConsistency
0 likes · 12 min read
How to Solve Cache‑Database Consistency Issues in High‑Concurrency Systems
Ctrip Technology
Ctrip Technology
Aug 14, 2019 · Backend Development

Full-Link Mocking: Technical Background, Implementation Details, and Open Issues

The article introduces the concept of full‑link mocking for complex, multi‑dependency applications, explains its technical background, describes the implementation architecture and performance considerations, and discusses practical challenges such as duplicate calls, cache consistency, and HTTP 302 forwarding.

BackendCacheMocking
0 likes · 9 min read
Full-Link Mocking: Technical Background, Implementation Details, and Open Issues
ITPUB
ITPUB
Jul 11, 2019 · Backend Development

How to Prevent Redis Cache Avalanche and Penetration Failures

The article explains what cache avalanche and cache penetration are in Redis, why they can crash databases, and provides practical strategies—including random expiration, high‑availability setups, local caches, rate limiting, Bloom filters, and empty‑object caching—to mitigate these issues and maintain cache‑database consistency.

CachePerformancecache-avalanche
0 likes · 6 min read
How to Prevent Redis Cache Avalanche and Penetration Failures
HomeTech
HomeTech
Jul 10, 2019 · Frontend Development

Implementing Native‑App‑Like Page Transitions in a Vue.js Single‑Page Application

This article explains how to achieve native‑app‑style page transition effects in a Vue.js SPA by using the vue‑navigation component to listen to router events, applying absolute positioning, managing a custom page cache, recording scroll positions, optimizing animation performance, and handling inter‑page communication with an EventBus.

CacheEventBusSPA
0 likes · 11 min read
Implementing Native‑App‑Like Page Transitions in a Vue.js Single‑Page Application
ITPUB
ITPUB
May 27, 2019 · Databases

Mastering Redis Data Types: Practical Tips and Real-World Use Cases

This article introduces Redis as an open‑source in‑memory store, outlines its core data structures—strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and geospatial indexes—and provides concrete command examples, application scenarios, and best‑practice guidelines for effective usage.

CacheData StructuresHash
0 likes · 7 min read
Mastering Redis Data Types: Practical Tips and Real-World Use Cases
Programmer DD
Programmer DD
May 15, 2019 · Backend Development

Why MyBatis Runs Extra SQLs and How to Tune Its Cache

This article explains why MyBatis may execute unexpected additional SQL statements, reveals the default caching behavior, shows the required XML configuration and Serializable implementation, and offers practical steps to prevent cache clearing on inserts for more efficient backend data access.

CacheORMjava
0 likes · 3 min read
Why MyBatis Runs Extra SQLs and How to Tune Its Cache
macrozheng
macrozheng
May 10, 2019 · Backend Development

How to Integrate Redis for SMS Verification in a Spring Boot Mall Project

This guide walks you through installing Redis, adding Maven dependencies, configuring Spring Boot, creating a Redis service interface and implementation, and building controller endpoints to generate and verify SMS verification codes, complete with code examples and deployment instructions.

Backend IntegrationCacheSMS Verification
0 likes · 10 min read
How to Integrate Redis for SMS Verification in a Spring Boot Mall Project
Java Captain
Java Captain
Apr 27, 2019 · Databases

Redis Key Design, Command Usage, and Client Best Practices

This guide presents comprehensive best‑practice recommendations for designing Redis keys, choosing appropriate data types, managing key lifecycles, safely using commands, optimizing client connections, handling big keys, and selecting eviction policies to ensure high performance and reliability in production environments.

CacheKey Designbest practices
0 likes · 12 min read
Redis Key Design, Command Usage, and Client Best Practices
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Mar 6, 2019 · Frontend Development

Boost Your Web App with PWA: From Service Workers to First‑Load Optimization

This article explains what a Progressive Web App (PWA) is, how Service Workers enable caching of static, dynamic, and HTML resources, and provides practical techniques such as precaching, offline‑package replacement, update strategies, and a webpack plugin to streamline integration for faster first‑screen loads.

CachePWAService Worker
0 likes · 12 min read
Boost Your Web App with PWA: From Service Workers to First‑Load Optimization
HomeTech
HomeTech
Jan 18, 2019 · Big Data

Data Mill: A Real‑Time Spark Streaming Framework for DSP Business Support

Data Mill is a Spark‑Streaming‑based real‑time computation framework that abstracts tasks as DataFrames, enables SQL‑driven development, and supports DSP business requirements by reducing latency to 15‑30 minutes while providing a scalable architecture, caching strategy, and automated fault handling.

CacheDSPReal‑Time Computing
0 likes · 10 min read
Data Mill: A Real‑Time Spark Streaming Framework for DSP Business Support
JD Tech
JD Tech
Jan 15, 2019 · Backend Development

Performance, Storage, Index, and Cache Design of JD's JMQ4 Message Middleware

The article presents JD's self‑developed JMQ middleware, detailing its 2018 performance improvements, comparative benchmarks with Kafka, storage and index architecture evolution from JMQ2 to JMQ4, and the high‑performance I/O and caching strategies that enable millions of TPS on modern hardware.

CacheJMQstorage design
0 likes · 12 min read
Performance, Storage, Index, and Cache Design of JD's JMQ4 Message Middleware
Programmer DD
Programmer DD
Dec 12, 2018 · Databases

Essential Redis Health Metrics Every Engineer Should Monitor

This guide explains how to monitor critical Redis health indicators—including ping response, client connections, blocked clients, memory usage, fragmentation, cache hit rate, OPS, persistence status, expired keys, and slow logs—to ensure optimal performance and prevent failures.

CachePersistencememory
0 likes · 7 min read
Essential Redis Health Metrics Every Engineer Should Monitor
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 5, 2018 · Backend Development

Cache Breakdown (Cache Penetration) and Mitigation Strategies: Mutex Lock, Asynchronous Cache, and Bloom Filter

This article explains the concept of cache breakdown, illustrates why malicious requests can bypass caches and overload databases, and presents three practical mitigation techniques—using a Redis SETNX‑based mutex lock, asynchronous cache rebuilding, and a Bloom filter—along with their advantages, drawbacks, and performance testing results.

CacheMutex Lockasynchronous cache
0 likes · 7 min read
Cache Breakdown (Cache Penetration) and Mitigation Strategies: Mutex Lock, Asynchronous Cache, and Bloom Filter
Youzan Coder
Youzan Coder
Nov 23, 2018 · Cloud Computing

Transparent Multilevel Cache (TMC): Architecture, Hotspot Detection, and Local Cache in Youzan PaaS

Youzan’s Transparent Multilevel Cache (TMC) adds automatic hotspot detection and a 64 MB local cache to existing distributed caches via a Hermes‑SDK‑augmented Jedis client, delivering transparent Java integration, strong consistency, up to 80 % local‑hit rates, and improved QPS during high‑traffic events.

CacheDistributed SystemsPaaS
0 likes · 15 min read
Transparent Multilevel Cache (TMC): Architecture, Hotspot Detection, and Local Cache in Youzan PaaS
Architect's Tech Stack
Architect's Tech Stack
Oct 23, 2018 · Databases

Redis Overview: Features, Data Types, Persistence, Clustering, and Common Interview Questions

This article provides a comprehensive introduction to Redis, covering its core concepts, advantages, data structures, persistence mechanisms, eviction policies, clustering, common usage scenarios, and typical interview questions for developers working with this high‑performance in‑memory key‑value store.

CacheIn-Memory DatabasePerformance
0 likes · 24 min read
Redis Overview: Features, Data Types, Persistence, Clustering, and Common Interview Questions
MaGe Linux Operations
MaGe Linux Operations
Sep 7, 2018 · Operations

Why Linux ‘Ate My RAM’: Understanding free, buffers, and cache

Linux appears to consume most of a system’s RAM, but the free command’s output, including buffers and cache, actually reflects memory used for performance optimization; this article explains the distinction, how to interpret free’s columns, and demonstrates the impact with a 1 GB file read experiment.

BuffersCacheLinux
0 likes · 7 min read
Why Linux ‘Ate My RAM’: Understanding free, buffers, and cache
Architecture Digest
Architecture Digest
Aug 13, 2018 · Backend Development

Cache Consistency, Concurrency, Penetration, Avalanche, and Bottomless Pit Issues and Mitigation Strategies

The article explains various cache problems—including consistency, concurrency, penetration, avalanche, and the bottomless‑pit phenomenon—and presents practical mitigation techniques such as active updates, locking, empty‑object caching, request filtering, consistent hashing, and multi‑level caching to ensure reliable high‑performance systems.

CacheConsistencyavalanche
0 likes · 8 min read
Cache Consistency, Concurrency, Penetration, Avalanche, and Bottomless Pit Issues and Mitigation Strategies
Architect's Tech Stack
Architect's Tech Stack
Aug 12, 2018 · Backend Development

Investigating MyBatis SqlSession.clearCache() Ineffectiveness and Transaction Isolation Level Solution

Through detailed debugging and source code analysis, the author discovers that MyBatis's SqlSession.clearCache() does clear the first‑level cache, but the observed stale query results are caused by MySQL's default REPEATABLE‑READ isolation level, which can be resolved by setting the transaction isolation to READ COMMITTED.

Cachedebuggingjava
0 likes · 8 min read
Investigating MyBatis SqlSession.clearCache() Ineffectiveness and Transaction Isolation Level Solution
dbaplus Community
dbaplus Community
Jun 4, 2018 · Backend Development

How Weibo Scales to Billions: Inside Its Multi‑Layer Cache Architecture

This article explains how Weibo handles massive daily traffic of over a hundred billion requests by employing a five‑layer feed system and a six‑layer cache architecture that evolved from simple KV storage to sophisticated counter and existence‑check services, highlighting design choices, performance optimizations, and future directions.

CacheDistributed SystemsWeibo
0 likes · 16 min read
How Weibo Scales to Billions: Inside Its Multi‑Layer Cache Architecture
Java Captain
Java Captain
May 31, 2018 · Backend Development

Cache Update Strategies: Analysis, Drawbacks, and Improvement Solutions

This article examines three common cache‑update strategies, explains their concurrency and performance drawbacks, and proposes practical improvement techniques such as delayed double‑delete, asynchronous retries, and binlog‑based messaging to maintain consistency between cache and database.

CacheConsistencystrategy
0 likes · 10 min read
Cache Update Strategies: Analysis, Drawbacks, and Improvement Solutions
Java Backend Technology
Java Backend Technology
May 20, 2018 · Backend Development

Which Cache Update Strategy Guarantees Consistency? A Deep Dive into DB‑Cache Synchronization

This article examines three common cache‑update approaches—updating the cache after the database, deleting the cache before updating the database, and updating the database then deleting the cache—analyzes their drawbacks, and presents practical solutions such as delayed double‑delete and retry mechanisms to ensure data consistency.

BackendCacheConsistency
0 likes · 10 min read
Which Cache Update Strategy Guarantees Consistency? A Deep Dive into DB‑Cache Synchronization
dbaplus Community
dbaplus Community
May 13, 2018 · Backend Development

Mastering Distributed Cache: Programming Techniques, Sharding Strategies, and Migration Plans

This article explains why distributed caching is essential for high‑traffic services, presents three programming approaches (direct code, Spring‑Data‑Redis injection, and annotation‑based), compares three cache‑access patterns, details sharding models, outlines smooth and offline migration steps, and addresses cache penetration, concurrency, avalanche, and transaction support with concrete code examples.

Cachejavamigration
0 likes · 22 min read
Mastering Distributed Cache: Programming Techniques, Sharding Strategies, and Migration Plans
ITPUB
ITPUB
Feb 8, 2018 · Fundamentals

Why Linux Seems to Eat Your RAM—and How Buffers & Cache Actually Boost Performance

Linux’s free command often shows high memory usage, leading many to think the OS consumes RAM, but understanding buffers, cache, and the distinction between used and free memory reveals that Linux efficiently utilizes idle memory to improve I/O performance, as demonstrated by simple read‑speed experiments.

BuffersCacheLinux
0 likes · 8 min read
Why Linux Seems to Eat Your RAM—and How Buffers & Cache Actually Boost Performance
Architecture Digest
Architecture Digest
Feb 8, 2018 · Backend Development

High‑Performance Networking in Google Chrome: Architecture and Optimizations

The article explains Chrome's guiding principles, multi‑process architecture, network request lifecycle, and a suite of performance optimizations—including DNS pre‑fetch, TCP pre‑connect, caching strategies, and predictive pre‑rendering—that together reduce latency and make the browser faster as users continue to browse.

CacheChromeDNS
0 likes · 33 min read
High‑Performance Networking in Google Chrome: Architecture and Optimizations
Meituan Technology Team
Meituan Technology Team
Jan 18, 2018 · Backend Development

Analysis of MyBatis First‑Level and Second‑Level Cache Mechanisms

The article thoroughly examines MyBatis’s first‑level (session) and second‑level (namespace) caches, detailing their configurations, internal workflows, source‑code implementations, experimental behaviors, common pitfalls such as stale or dirty data, and advises disabling built‑in caching in favor of dedicated solutions for production.

CacheORMPerformance
0 likes · 25 min read
Analysis of MyBatis First‑Level and Second‑Level Cache Mechanisms
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 30, 2017 · Databases

Inside Memcached vs Redis: Architecture, Memory, and Persistence

An in‑depth comparison of Memcached and Redis reveals how both key‑value cache servers operate, covering their service models, event loops, memory allocation strategies, database implementations, persistence mechanisms, transaction support, and publish/subscribe features, highlighting the trade‑offs between simplicity and rich functionality.

CachePersistenceevent loop
0 likes · 33 min read
Inside Memcached vs Redis: Architecture, Memory, and Persistence
Architecture Digest
Architecture Digest
Oct 12, 2017 · Backend Development

Cache Eviction Strategies and Java Cache Implementations

This article explains various cache eviction strategies, compares heap, off‑heap, disk and distributed cache types, and provides concrete Java implementations using Guava Cache, EhCache 3.x and MapDB with code examples and usage patterns such as Cache‑Aside and Cache‑As‑SoR.

CacheCache EvictionEhcache
0 likes · 18 min read
Cache Eviction Strategies and Java Cache Implementations
ITPUB
ITPUB
Jun 23, 2017 · Fundamentals

How to Free Linux Memory Cache and Understand Buffer vs Cache

This guide explains Linux memory reporting with the free command, the roles of buffer and page caches, and provides step‑by‑step instructions to manually release cached memory using /proc/sys/vm/drop_caches, including practical command examples and clarifications of key concepts.

CacheMemory Managementbuffer
0 likes · 11 min read
How to Free Linux Memory Cache and Understand Buffer vs Cache
Efficient Ops
Efficient Ops
May 14, 2017 · Fundamentals

Understanding Linux Memory Management: Allocation, OOM, and Cache

This article explains Linux kernel memory management, covering process address space layout, memory allocation methods, OOM killer behavior, where different types of memory reside, and both manual and automatic memory reclamation techniques, illustrated with diagrams and command examples.

CacheMemory ManagementOOM
0 likes · 18 min read
Understanding Linux Memory Management: Allocation, OOM, and Cache
ITPUB
ITPUB
Mar 27, 2017 · Backend Development

Mastering Cache Algorithms: From LRU to LFU and Beyond

This article explains why caching is essential, defines core concepts such as hits, misses, and costs, compares major replacement policies (LRU, LFU, FIFO, ARC, etc.), and provides Java code examples for implementing these algorithms in a backend system.

BackendCacheLFU
0 likes · 19 min read
Mastering Cache Algorithms: From LRU to LFU and Beyond
Architects' Tech Alliance
Architects' Tech Alliance
Feb 7, 2017 · Backend Development

Technical Overview of WeChat Red Packet Distribution System

The article analyzes the massive scale of Chinese New Year red‑packet activity on WeChat, presents usage statistics, and explains the backend architecture—including distributed KV storage, cache‑layer atomic operations, and database transaction handling—that enables high‑throughput red‑packet distribution.

Backend ArchitectureCacheWeChat
0 likes · 5 min read
Technical Overview of WeChat Red Packet Distribution System
dbaplus Community
dbaplus Community
Jan 15, 2017 · Databases

How JD’s JIMDB Achieves Zero‑Downtime Scaling and Automatic Failover for Massive Caches

JIMDB is JD’s in‑house distributed cache platform that combines automatic fault detection, seamless online scaling, multi‑language support, and containerized deployment to replace traditional Memcached/Redis solutions, offering features such as one‑click cluster creation, elastic expansion, lossless scaling, and comprehensive monitoring for high‑traffic e‑commerce services.

CacheDistributed Systemselastic scaling
0 likes · 23 min read
How JD’s JIMDB Achieves Zero‑Downtime Scaling and Automatic Failover for Massive Caches
Architecture Digest
Architecture Digest
Nov 26, 2016 · Databases

Redis Cache Update Strategies and Best Practices

This article summarizes common Redis cache update problems, compares four update approaches—including proactive, passive, and pre‑loading methods—and recommends a pre‑load strategy with key versioning to avoid data loss, improve performance, and reduce memory waste.

CacheUpdate Strategydatabase
0 likes · 8 min read
Redis Cache Update Strategies and Best Practices
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 24, 2016 · Fundamentals

Why Redlock May Not Be the Ultimate Distributed Lock (And What to Use Instead)

This article reviews the evolution of distributed locking—from simple MySQL table locks to Redis cache locks and the Redlock algorithm—examines expert criticisms of Redlock’s correctness, presents the Redis author’s rebuttal, and ultimately recommends Zookeeper as a more reliable solution for high‑availability distributed locks.

CacheConsensusRedlock
0 likes · 22 min read
Why Redlock May Not Be the Ultimate Distributed Lock (And What to Use Instead)
Nightwalker Tech
Nightwalker Tech
Oct 15, 2016 · Backend Development

Technical Discussion on Cache Hit Rate, AOP, and Performance Optimization

A multi‑person technical discussion explores the reasons behind low cache hit rates, examines memcached LRU mechanisms, proposes AOP‑based caching strategies, and shares practical solutions such as proactive cache invalidation, lock‑based stampede protection, and workload‑aware configuration for backend systems.

BackendCacheMemcached
0 likes · 9 min read
Technical Discussion on Cache Hit Rate, AOP, and Performance Optimization
ITPUB
ITPUB
Aug 31, 2016 · Databases

Lock‑Free Transactions and Cache Switching: MVCC Techniques for Key‑Value Stores

This article explains how traditional ACID transactions fall short for modern large‑scale systems and presents lock‑free transaction methods, atomic and partial cache‑switch techniques, and a PostgreSQL‑style MVCC model for key‑value databases, including practical rules and trade‑offs.

CacheKey-ValueMVCC
0 likes · 10 min read
Lock‑Free Transactions and Cache Switching: MVCC Techniques for Key‑Value Stores
High Availability Architecture
High Availability Architecture
Aug 26, 2016 · Backend Development

Evolution of Weibo Cache Service: From Bare Memcache to Multi‑Layered Service Architecture

The article details how Weibo’s cache infrastructure progressed from simple Memcache deployments to a sophisticated, service‑oriented architecture featuring multi‑layer caching, proxy layers, dynamic configuration, monitoring, and automated scaling to meet massive read‑write demands and high availability requirements.

BackendCacheScalability
0 likes · 19 min read
Evolution of Weibo Cache Service: From Bare Memcache to Multi‑Layered Service Architecture
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Aug 12, 2016 · Databases

Why Redis Replicas Return Expired Keys and How to Prevent It

The article explains how Redis replicas can return keys that should have expired due to the master‑only expiration process, describes the three expiration strategies (lazy, periodic, active), and offers practical solutions such as using SCAN or upgrading to Redis 3.2 to avoid stale reads.

CacheExpirationReplication
0 likes · 9 min read
Why Redis Replicas Return Expired Keys and How to Prevent It