Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bottlenecks are out! Java Cache Standard (JSR-...

Bottlenecks are out! Java Cache Standard (JSR-107) is in!

Galder Zamarreño

April 20, 2013
Tweet

More Decks by Galder Zamarreño

Other Decks in Technology

Transcript

  1. Bottlenecks are out!  Java Cache Standard (JSR-107) is in!

    ! Galder Zamarreño Senior Software Engineer Red Hat, Inc ! 20th April 2013, São Paulo
  2. Galder Zamarreño • R&D Engineer, Red Hat Inc. • Infinispan

    developer • Escalante founder and lead • Twitter: @galderz
  3. Agenda • Why we care about bottlenecks • What is

    JCache? • Infinispan JCache implementation in action
  4. What is JCache? Temporary caching API for Java (driven by

    JSR-107), originally scheduled to be in EE7... but not any more :(
  5. Caching data Caching data that is expensive to retrieve (i.e.

    DB) or hard to calculate can boost performance :))
  6. Beyond CHMs... JCache allows data to expire, is pluggable with

    persistent stores, is designed with distribution in mind, ...etc
  7. Go multi-node! When a single machine cannot cope with load,

    and not $$$ for more powerful machine...
  8. Get failover for free! Providing failover for data stored in

    caches is one of the biggest advantages of distributed caches!
  9. CDI and Transactions Integration with CDI or JTA Transactions is

    optional in the spec, but Infinispan implements it :)
  10. Summary • Provides in-memory, temporary storage, that's better than a

    (Concurrent) HashMap • Allows you to distribute the cache, to scale out your application! (and get failover!) • Makes it easy to integrate with enterprise technologies