How to speed up your application using JCache
summary
JCache is a Java standard (finalized 2014) with six mainstream implementations (Ehcache, Hazelcast, Coherence, Infinispan, GridGain/Ignite, Caffeine) and a simple API that adds entry processor semantics and stats. Distributed caches cut database latency (databases ~3–10 ms) to microseconds (Hazelcast reports ~160 µs over network, ~70 µs on 10/40G) and can yield up to 90% offload from databases. Large deployments are proven (Hazelcast tested 600 nodes / 7,000 cores, 500 GB per node with a high-density memory store; hot-restart SSD at ~300k writes/sec; 100 GB restart ~70s).
AI-written summary · about
chapters (18)
- 0:00Intro
- 1:03What is caching
- 6:02Common problem areas
- 8:05Database caching
- 12:34Dales Law
- 13:42Cache Efficiency
- 16:29The End Times Problem
- 19:19Distributed Cache
- 22:14JCache
- 25:54JCache implementations
- 28:24The bad news
- 30:04JCache vs Map
- 34:09Supported implementations
- 36:09Essential classes
- 37:14Example
- 38:39Annotations
- 39:09Spring Boot
- 42:24Hazelcast
related talks
45mCaching in Applications Still Matters
53mLeveraging Caching For Cloud Native Applications
50mLet's talk about the cache!
43mCaching and Beyond - Smarter Data Processing with Java
49mCaching for Agentic Java Systems: Internal, Distributed, and Semantic
50mCaching with Spring: Advanced Topics and Best Practices
42mCache, But Cache Wisely!
58mEnhancing Java Applications for the Cloud
