Tag: Guava
6 articles
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...