Tag: Cache
12 articles
Spymemcached Deep Dive: Thread Model, Sharding, Serializa...
Java service integrating with Memcached needs to understand Spymemcached's thread model, sharding routing and serialization details. Spymemcached implements async IO via NIO+callback, uses ketama c...
EVCache Internal Principles: Memcached Architecture, Slab...
Using EVCache in large-scale distributed cache needs understanding of underlying Memcached memory management and eviction behavior. EVCache essentially relies on Memcached + Slab Allocation + Lazy ...
Guava Cache Source Analysis: LocalCache, Segment, Loading...
Guava Cache is widely used in production, but many lack source-level understanding of LocalCache/Segment/LoadingCache behavior. Guava achieves thread-safe local cache through LocalCache+Segment str...
Guava Cache: concurrencyLevel and refreshAfterWrite in Pr...
Deep dive into concurrencyLevel, refreshAfterWrite and LoadingCache dynamic loading behavior, with horizontal comparison with custom LinkedHashMap LRU implementation.
Guava Cache Troubleshooting: OOM, Expiration, Hit Rate Is...
Using Guava Cache for local caching in Java projects, troubleshooting and fixing production issues like OOM, abnormal hit rate, thread blocking and performance regression.
Guava Cache: Deletion Strategy, Expiration and Common Pit...
Guava Cache uses 'lazy cleanup + LRU+FIFO' strategy. Passive deletion and active deletion need to be used together. Deep dive into expireAfterAccess, expireAfterWrite and cleanUp.
Guava Cache: From ConcurrentHashMap to LocalCache Structure
Deep dive into LocalCache, Guava Cache's core implementation class, covering segmented lock design, five queue mechanism, eviction strategy and lazy cleanup principles.
Cache Practice: Local vs Distributed (Guava/Redis 7.2)
High concurrency read-heavy business, database can't handle it, need to improve throughput and stability. Local cache for ultimate read performance, distributed cache for sharing and scaling, multi...
MySQL Connection, Thread, Query Cache and Optimizer Deep ...
MySQL connection mechanism, half-duplex communication, query cache, query optimizer explained. This article provides in-depth analysis of principles and practical applications.
MyBatis Level 2 Cache Integration with Redis, Testing and...
Detailed introduction to MyBatis level 2 cache integration with Redis for distributed caching across services, including pom configuration, mapper configuration, test code and source code analysis....
MyBatis Deep Dive - Level 1 Cache, Code Testing, and Sour...
Detailed introduction to MyBatis level 1 cache working principles, code testing, invalidation scenarios, and source code analysis. Level 1 cache is enabled by default in MyBatis with SqlSession-lev...
MyBatis Level 2 Cache - Testing and Source Code Analysis
Detailed introduction to MyBatis level 2 cache working principles, enable configuration, code testing, and source code analysis. Level 2 cache is based on Mapper namespace, and multiple SqlSessions...