Tagged articles
Caffeine Cache
15 articles · Page 1 of 1
This article details building real-time leaderboards using Redis ZSet with Spring Boot, covering score encoding for tie-breaking, multi-dimensional key design, pipeline and Lua optimizations, local caching, and data consistency strategies with benchmark results.
Caffeine CacheData ConsistencyLua Script
0 likes · 28 min read

This article details a production-ready dynamic data permission system using Spring Boot 3.x and MyBatis-Plus 3.5+, covering row-level interception via JSqlParser, column-level masking with Jackson serialization, RBAC+ABAC hybrid model, two-level caching with Caffeine and Redis, and lessons learned from handling complex JOINs, hot updates, and performance overhead.
ABACCaffeine CacheColumn-Level Masking
0 likes · 18 min read

This article details a production-ready implementation of full-chain gray release using Spring Cloud Gateway, covering context propagation via Reactor Context and headers, dynamic rule engine with Caffeine and Nacos, deterministic traffic splitting, downstream interception, circuit breaking, rollback strategies, and lessons learned from reactive blocking, cache consistency, distributed transactions, and header injection pitfalls.
Caffeine CacheDistributed TracingGray Release
0 likes · 21 min read

In a high‑concurrency transaction system, the author diagnosed a 30‑second API latency caused by costly SQL scans and Java Map creation on over two million rows, then applied SQL aggregation, moved counting logic into PostgreSQL, and introduced a Caffeine cache, ultimately reducing the response time to under 0.8 seconds while highlighting relational‑database limits for massive data.
Caffeine CacheJavaMyBatis
0 likes · 10 min read

This article presents a real‑world case study of a high‑traffic backend API that originally took 30 seconds to process over two million records, detailing problem diagnosis, SQL and Java code analysis, and a series of optimizations—including SQL rewrites, database‑side aggregation, and Caffeine caching—that ultimately cut the response time to under one second.
BackendCaffeine CacheMyBatis
0 likes · 13 min read

This article presents a real‑world case study of a high‑concurrency data‑processing API that originally took over 30 seconds to respond, explains how the bottleneck was identified in SQL and Java code, and details a series of optimizations—including SQL aggregation, moving logic to the database, and introducing Caffeine caching—that ultimately brought the response time under one second.
Caffeine Cache
0 likes · 12 min read

This article details a real‑world performance case where a high‑concurrency interface processing over two million rows was diagnosed and optimized through SQL tuning, Java code refactoring, and caching, ultimately reducing response time from 30 seconds to under 0.8 seconds.
Caffeine CacheMyBatisPostgreSQL
0 likes · 10 min read

This article introduces Caffeine Cache, explains its W‑TinyLFU algorithm advantages over traditional FIFO, LRU, and LFU strategies, demonstrates manual, synchronous, and asynchronous loading methods, covers eviction policies, statistics, Spring Boot integration, and provides detailed configuration and code examples for Java developers.
Caffeine CacheJavacache configuration
0 likes · 30 min read

The article presents a visual monitoring system for the Caffeine Java cache that adds instance naming, memory‑usage estimation, dynamic size and expiration configuration, real‑time statistics and data queries, and a Jetty‑based HTTP control panel, enabling global cache management, trend charts, and on‑the‑fly cache invalidation.
Caffeine CacheJavaPerformance Monitoring
0 likes · 15 min read

This article explains how to replace a simple Map‑based rate limiter with a Caffeine cache‑backed solution that supports dynamic TPS configuration, outlines the data structures, limit‑checking logic, and provides full Java/Groovy code examples along with a test script and its output.
BackendCaffeine CacheJava
0 likes · 6 min read

This article explains the advantages of Caffeine Cache's W‑TinyLFU algorithm over traditional FIFO, LRU, and LFU policies, details its eviction and reference‑type strategies, and provides step‑by‑step guidance for integrating Caffeine into Spring Boot applications with code examples and configuration tips.
Cache EvictionCaffeine CacheJava
0 likes · 27 min read

This article explains the high‑performance Caffeine Cache library, its W‑TinyLFU eviction algorithm, various loading and eviction strategies, statistics collection, and how to integrate and configure it in Spring Boot using annotations and programmatic beans.
Cache AnnotationsCache EvictionCaffeine Cache
0 likes · 22 min read

This article introduces Caffeine Cache as a high‑performance local cache for Java, explains its W‑TinyLFU algorithm advantages over Guava, details various eviction and loading strategies, and provides step‑by‑step Spring Boot integration with Maven dependencies, configuration properties, bean definitions, and annotation‑driven usage examples.
CachingCaffeine CacheJava
0 likes · 21 min read

This article introduces Caffeine Cache as a high‑performance local caching solution that improves on Guava Cache by using the W‑TinyLFU eviction algorithm, explains its core concepts, demonstrates manual, synchronous, and asynchronous loading strategies, details eviction policies, and provides step‑by‑step integration and configuration examples for Spring Boot applications.
Cache EvictionCaffeine CacheJava Caching
0 likes · 22 min read

Understanding Caffeine Cache in Java involves using its builder for options like expiration, refresh, and weight‑based eviction, recognizing that configuring both expireAfterWrite and expireAfterAccess is redundant, grasping core methods such as isBounded, refreshes, computeIfAbsent, and avoiding common pitfalls like mis‑ordered expiration settings, blocking loaders, cache penetration, and mutable cached objects.
Cache EvictionCaffeine CacheJava
0 likes · 15 min read
