Tag

TinyLFU

1 views collected around this technical thread.

JD Cloud Developers
JD Cloud Developers
Mar 27, 2025 · Backend Development

How Caffeine’s ReadBuffer Works: Deep Dive into getIfPresent and Eviction Mechanics

This article explains the inner workings of Caffeine's getIfPresent method, the design of its MPSC ReadBuffer and WriteBuffer, the maintenance cycle, eviction strategies, and the TinyLFU algorithm, providing Java code examples and diagrams to illustrate how caching decisions are made in high‑concurrency environments.

CacheCaffeineEviction
0 likes · 31 min read
How Caffeine’s ReadBuffer Works: Deep Dive into getIfPresent and Eviction Mechanics
Baidu Geek Talk
Baidu Geek Talk
Aug 5, 2024 · Backend Development

Cache Algorithm Optimization for SSD-Based Advertising Retrieval System

The paper presents SsdEngine, a hierarchical SSD‑based advertising retrieval cache that combines a thread‑local ART cache with a lock‑free central array, uses flying pointer‑swizzling to cut duplicate I/O, and evaluates eviction policies (LRU, DoubleClock, TinyLFU, ARC), showing LRU excels under Zipfian locality while TinyLFU improves small‑cache hit rates.

DoubleClockLRU evictionNVMe SSD
0 likes · 23 min read
Cache Algorithm Optimization for SSD-Based Advertising Retrieval System
Sohu Tech Products
Sohu Tech Products
Sep 8, 2021 · Backend Development

Hot Data Detection and Optimized Caching with Caffeine and HotCaffeine

This article explains the concept of hot data, categorizes its types, discusses caching trade‑offs, introduces LFU, LRU and TinyLFU algorithms, describes the HotCaffeine system architecture and features, and presents performance improvements and practical deployment considerations for Java backend services.

CaffeineHotCaffeineJava
0 likes · 12 min read
Hot Data Detection and Optimized Caching with Caffeine and HotCaffeine