~/talk

Caching with Spring: Advanced Topics and Best Practices

Talkat SpringOne2GX 2014 · 2014-09-08..09-11· [web-performance, java]
slides:none on file

Shows how to use Spring’s caching abstraction with non-default cache providers and explains the JCache (JSR-107) specification and how it is adopted in Spring. Covers best practices for integrating local and distributed caches into enterprise applications that require strong consistency, and demonstrates techniques with live demos including a distributed cache cluster (Raspberry Pis and Lego Mindstorms) using Spring.

AI-written summary · about

  1. 0:00Start
  2. 12:20Lokal In-Memory
  3. 15:11Clustered - with sync
  4. 16:07Invalidation - Option 1
  5. 18:14Replication
  6. 21:07Long GCs can destabilize your cluster
  7. 24:18Distributed Caches
  8. 45:32Example: Hazelcast putting and getting 10.000 objects locally
  9. 50:00Tying your code to a cache provider is bad practice
  10. 50:24Try switching from EHCache to Hazelcast
  11. 50:46You can't switch cache providers between environments
  12. 51:35You mess up your business logic with infrastructure
  13. 52:10Introducing Spring's cache abstraction
  14. 54:09Spring's Caching Annotations
  15. 56:12Default Key Generation Strategy Key
  16. 57:41You need a custom default Key Generator?
  17. 58:34SpEL in Caching Annotations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.