Tag: Guava
6 articles
Guava Cache Source Analysis: LocalCache, Segment and LoadingCache
Guava Cache is widely used in production, but many lack source-level understanding of LocalCache/Segment/LoadingCache behavior.
Guava Cache: concurrencyLevel and refreshAfterWrite in Practice
Deep dive into concurrencyLevel, refreshAfterWrite and LoadingCache dynamic loading behavior, with horizontal comparison with custom LinkedHashMap LRU implementation.
Guava Cache Troubleshooting: OOM, Expiration and Hit Rate Issues
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 Pitfalls
Guava Cache uses 'lazy cleanup + LRU+FIFO' strategy. Passive deletion and active deletion need to be used together. Deep dive into expireAfterAccess, expireAfterWrite and...
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.