Your SlideShare is downloading. ×
0
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Infinispan for Dummies
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Infinispan for Dummies

14,299

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,299
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
20
Comments
1
Likes
15
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Thursday, November 3, 11
  • 2. for Dummies Galder Zamarreño Senior Software Engineer Red Hat, IncThursday, November 3, 11
  • 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. 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. What is Infinispan? • Data grid platform: • Open source (LGPL) • In-memory • Highly available • ElasticThursday, November 3, 11
  • 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. Local cache exampleThursday, November 3, 11
  • 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. InvalidationThursday, November 3, 11
  • 10. InvalidationThursday, November 3, 11
  • 11. InvalidationThursday, November 3, 11
  • 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. Clustered cache configurationThursday, November 3, 11
  • 14. P2P Embedded ArchitectureThursday, November 3, 11
  • 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. Distribution vs ReplicationThursday, November 3, 11
  • 17. ReplicationThursday, November 3, 11
  • 18. Distribution • With number of copies = 2Thursday, November 3, 11
  • 19. Consistent HashingThursday, November 3, 11
  • 20. Virtual NodesThursday, November 3, 11
  • 21. Client/Server Architecture • Supported protocols • REST • Memcached • Hot RodThursday, November 3, 11
  • 22. Server Endpoint ComparisonThursday, November 3, 11
  • 23. Hot Rod server and clientsThursday, November 3, 11
  • 24. Traditional 3-tier AppThursday, November 3, 11
  • 25. Typical IaaS AppThursday, November 3, 11
  • 26. Typical PaaS AppThursday, November 3, 11
  • 27. StateThursday, November 3, 11
  • 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. 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. DaaS with InfinispanThursday, November 3, 11
  • 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. 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. 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. What’s next? • Distributed Executors and Map/Reduce • Hibernate OGM (Object-Grid-Mapping) • JPA-like interface backed by Infinispan • ...etcThursday, November 3, 11
  • 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. Questions? • infinispan.org • blog.infinispan.org • @infinispan on twitter • #infinispan for comments • IRC: #infinispan on FreeNode • speakerrate.com/galderThursday, November 3, 11

×