Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore advanced caching techniques and best practices in Spring applications through this comprehensive conference talk from Spring I/O 2016. Delve into Spring's caching abstraction, learning how to integrate custom cache providers beyond the default Spring package. Gain insights into the JCache Specification and its adoption within the Spring ecosystem. Discover various caching solutions for enterprise-grade applications, from local heap-based caches to powerful distributed data grids. Through live demonstrations, examine topics such as local in-memory caching, clustered caching with synchronization, invalidation strategies, replication, and distributed caches. Understand the pitfalls of tying code to specific cache providers and learn how to leverage Spring's cache abstraction for flexibility. Explore Spring's caching annotations, default key generation strategies, custom key generators, and the use of SpEL in caching annotations. Dive into working with cache resolvers and compare Spring's approach to JCache annotations. This 50-minute talk provides valuable insights for developers looking to optimize application performance through advanced caching techniques.
Syllabus
Intro
Local In-Memory
Clustered - with sync
Invalidation - Option 1
Replication
Distributed Caches
Tying your code to a cache provider is bad practice
Try switching from EHCache to Hazelcast
You can't switch cache providers between environments
You mess up your business logic with infrastructure
Introducing Spring's cache abstraction
Spring's Caching Annotations
Default Key Generation Strategy
You need a custom default Key Generator?
SPEL in Caching Annotations
Working with Cache Resolvers
Spring vs JCache Annotations
Taught by
Spring I/O