Thursday, November 3, 11
for Dummies                              Galder Zamarreño                           Senior Software Engineer              ...
Who is Galder?                           • R&D engineer (Red Hat Inc):                            • Infinispan developer  ...
Agenda                           • What is Infinispan?                           • Infinispan as in-memory cache          ...
What is Infinispan?                           • Data grid platform:                            • Open source (LGPL)       ...
Local in-memory cache                           • Performance booster                           • Good for data that is:  ...
Local cache exampleThursday, November 3, 11
Clustered in-memory cache                           • Same as local but cluster-aware                           • More sha...
InvalidationThursday, November 3, 11
InvalidationThursday, November 3, 11
InvalidationThursday, November 3, 11
Cache.putForExternalRead()                                         put()                   putForExternalRead()           ...
Clustered cache configurationThursday, November 3, 11
P2P Embedded ArchitectureThursday, November 3, 11
In-memory data grid                           • It’s a data store, not just a cache                           • An authori...
Distribution vs ReplicationThursday, November 3, 11
ReplicationThursday, November 3, 11
Distribution                           • With number of copies = 2Thursday, November 3, 11
Consistent HashingThursday, November 3, 11
Virtual NodesThursday, November 3, 11
Client/Server Architecture                                          •   Supported protocols                               ...
Server Endpoint ComparisonThursday, November 3, 11
Hot Rod server and clientsThursday, November 3, 11
Traditional 3-tier AppThursday, November 3, 11
Typical IaaS AppThursday, November 3, 11
Typical PaaS AppThursday, November 3, 11
StateThursday, November 3, 11
Virtualize data                           • Some public services exist                            • Amazon RDS and SimpleD...
Characteristics of DaaS                           • Elastic data                           • Need to scale with other tier...
DaaS with InfinispanThursday, November 3, 11
Clustering challenges                           • JGroups taking care of clustering                            • Default c...
Migration best practices                           • ‘RadarGun’ project benchmarks different data grid products           ...
Who uses Infinispan?                           • Examples:                            • As a cache:                       ...
What’s next?                           • Distributed Executors and Map/Reduce                           • Hibernate OGM (O...
Summary                           • Infinispan is a fast powerful local cache                           • More space and s...
Questions?                           • infinispan.org                           • blog.infinispan.org                     ...
Upcoming SlideShare
Loading in...5
×

Infinispan for Dummies

14,567

Published on

Published in: Technology
1 Comment
15 Likes
Statistics
Notes
  • Hi Galder,

    excelent presentation!

    I just finish reading the book: Infinispan, the concepts are very easy to understand.

    Congrats to all of you guys!

    Next time here in Brazil, let's watch some soccer game. LOL

    Cheers!

    --
    Sérgio Fantin
    serjaum.wordpress.com
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
14,567
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
24
Comments
1
Likes
15
Embeds 0
No embeds

No notes for slide

Infinispan for Dummies

  1. 1. Thursday, November 3, 11
  2. 2. for Dummies Galder Zamarreño Senior Software Engineer Red Hat, IncThursday, November 3, 11
  3. 3. Who is Galder? • R&D engineer (Red Hat Inc): • Infinispan developer • Contributor and committer: • JBoss AS, Hibernate, JGroups...etc • More about me? • Blog: zamarreno.com • Twitter: @galderzThursday, November 3, 11
  4. 4. Agenda • What is Infinispan? • Infinispan as in-memory cache • Infinispan as in-memory data grid • Data-as-a-Service with Infinispan • Clustering and migration challenges • Who uses Infinispan?Thursday, November 3, 11
  5. 5. What is Infinispan? • Data grid platform: • Open source (LGPL) • In-memory • Highly available • ElasticThursday, November 3, 11
  6. 6. Local in-memory cache • Performance booster • Good for data that is: • Hard to calculate • Expensive to retrieve...etc • Why not ConcurrentHashMap? Infinispan offers: • Greater concurrency with MVCC • Built-in eviction...etcThursday, November 3, 11
  7. 7. Local cache exampleThursday, November 3, 11
  8. 8. Clustered in-memory cache • Same as local but cluster-aware • More shared-cache space! • Can help you cluster your framework too! • Invalidation cache mode commonly usedThursday, November 3, 11
  9. 9. InvalidationThursday, November 3, 11
  10. 10. InvalidationThursday, November 3, 11
  11. 11. InvalidationThursday, November 3, 11
  12. 12. Cache.putForExternalRead() put() putForExternalRead() Use for updating state Use to cache state read from external source Regular lock acquisition timeout Fail-fast Could throw an exception Fails quietly Could cause existing transaction to Will never affect existing fail transactionsThursday, November 3, 11
  13. 13. Clustered cache configurationThursday, November 3, 11
  14. 14. P2P Embedded ArchitectureThursday, November 3, 11
  15. 15. In-memory data grid • It’s a data store, not just a cache • An authoritative data sink • FADE • Fast • Available • Distributed • ElasticThursday, November 3, 11
  16. 16. Distribution vs ReplicationThursday, November 3, 11
  17. 17. ReplicationThursday, November 3, 11
  18. 18. Distribution • With number of copies = 2Thursday, November 3, 11
  19. 19. Consistent HashingThursday, November 3, 11
  20. 20. Virtual NodesThursday, November 3, 11
  21. 21. Client/Server Architecture • Supported protocols • REST • Memcached • Hot RodThursday, November 3, 11
  22. 22. Server Endpoint ComparisonThursday, November 3, 11
  23. 23. Hot Rod server and clientsThursday, November 3, 11
  24. 24. Traditional 3-tier AppThursday, November 3, 11
  25. 25. Typical IaaS AppThursday, November 3, 11
  26. 26. Typical PaaS AppThursday, November 3, 11
  27. 27. StateThursday, November 3, 11
  28. 28. Virtualize data • Some public services exist • Amazon RDS and SimpleDB • FathomDB, Cloudant...etc • But not all cloud deployments are public! • Private cloud very important • How can you build a DaaS yourself?Thursday, November 3, 11
  29. 29. Characteristics of DaaS • Elastic data • Need to scale with other tiers • Response times should be linear • Needs to be highly available! • Nodes with die! The service shouldn’tThursday, November 3, 11
  30. 30. DaaS with InfinispanThursday, November 3, 11
  31. 31. Clustering challenges • JGroups taking care of clustering • Default config file good for 4-16 nodes • Bigger clusters require tweaking... • Adjust transport and discovery to environment limitations • Especially where UDP multicast not allowed • These adjustments do not require altering codeThursday, November 3, 11
  32. 32. Migration best practices • ‘RadarGun’ project benchmarks different data grid products • Benchmark your use case! • Helps with mapping between different provider APIs • XSLTs distributed to transform configurationThursday, November 3, 11
  33. 33. Who uses Infinispan? • Examples: • As a cache: • Hibernate for the second level cache • HTTP session cache in JBoss AS 6 and AS 7 • As a data grid: • Real-time trading app of a well known stock exchangeThursday, November 3, 11
  34. 34. What’s next? • Distributed Executors and Map/Reduce • Hibernate OGM (Object-Grid-Mapping) • JPA-like interface backed by Infinispan • ...etcThursday, November 3, 11
  35. 35. Summary • Infinispan is a fast powerful local cache • More space and scales up when cache is clustered • Infinispan is also a distributed elastic data grid • Accessible in embedded and client/server mode • Build your own Data-as-a-Service with InfinispanThursday, November 3, 11
  36. 36. Questions? • infinispan.org • blog.infinispan.org • @infinispan on twitter • #infinispan for comments • IRC: #infinispan on FreeNode • speakerrate.com/galderThursday, November 3, 11
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×