Bringing javax.cache'ing to your application
summary
JSR-107 (javax.cache) is now usable with Spring and EHCache 3 and provides a standard CacheManager, annotations, and JMX stats but not capacity control or transactional guarantees; EHCache 3 adds right-behind writer with batching and coalescing that turns 11 view updates into one DB write, off‑heap storage for terabyte heaps, and a tiered Heap/off‑heap/cluster model. Beware of store‑by‑value defaults and caching attached JPA entities that cause race conditions; prefer immutable cache values and configure provider‑specific sizing.
AI-written summary · about
chapters (13)
- 0:00Start
- 43:08The Jpa Entity Lifecycle Contracts
- 53:28Hibernate Second Level Cache
- 54:56Caching Strategies
- 58:40Cached Rider
- 1:01:07At Least once Guarantee
- 1:02:08Feed Storage
- 1:09:17The Video Repository
- 1:09:31Interrupt Exceptions
- 1:13:26Default Cash Configuration
- 1:23:02Local Transactions
- 1:24:13Automatic Resource Control
- 1:24:35Size the Cache Manager in Megabytes
related talks
01h 10mCaching with Spring: Advanced Topics and Best Practices
34mehCache out of its Element
45mCaching in Applications Still Matters
44mHow to speed up your application using JCache
01h 27mJava EE Services for Spring Applications
44mCaching Unleashed: Revolutionizing Java Performance
53mOff-Heap Caching and Working with Shared Memory
46mOn-heap cache vs Off-heap cache w Javie
