Data Grids and Data Caching

  • 2,568 views
Uploaded on

 

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,568
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
84
Comments
0
Likes
7

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. Thursday, November 3, 11
  • 3. Data Grids and Data Caching Galder Zamarreño Senior Software Engineer Red Hat, Inc 3rd October 2011, Soft ShakeThursday, November 3, 11
  • 4. Galder Zamarreño • R&D Engineer, Red Hat Inc. • Infinispan developer • 5+ years exp. with distributed data systems • Twitter: @galderz • Blog: zamarreno.comThursday, November 3, 11
  • 5. Agenda • What is Infinispan? • Infinispan as in-memory cache • Infinispan as in-memory data grid • Data-as-a-Service with Infinispan • Who uses Infinispan?Thursday, November 3, 11
  • 6. IntroducingThursday, November 3, 11
  • 7. What is Infinispan? An in-memory, highly available, elastic, and open source (LGPL) data grid platformThursday, November 3, 11
  • 8. Infinispan can be used as...Thursday, November 3, 11
  • 9. Local in-memory cache Boost performance caching data which is hard to calculate or expensive to retrieveThursday, November 3, 11
  • 10. ConcurrentHashMap ? Infinispan provides greater concurrency with MVCC, has built-in eviction...etcThursday, November 3, 11
  • 11. Local cache exampleThursday, November 3, 11
  • 12. A local cache might not be enough...Thursday, November 3, 11
  • 13. Clustered caches Scale up your application and maintain cache consistencyThursday, November 3, 11
  • 14. Consistency in a clustered cache...Thursday, November 3, 11
  • 15. InvalidationThursday, November 3, 11
  • 16. InvalidationThursday, November 3, 11
  • 17. InvalidationThursday, November 3, 11
  • 18. Cache-oriented operations...Thursday, November 3, 11
  • 19. 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
  • 20. Accessing Infinispan cachesThursday, November 3, 11
  • 21. Embedded AccessThursday, November 3, 11
  • 22. Infinispan is not just a cache!Thursday, November 3, 11
  • 23. In-memory data grid It’s a Fast, Available, Distributed, Elastic data store, not just a cache!Thursday, November 3, 11
  • 24. Invalidation won’t work for data grids!Thursday, November 3, 11
  • 25. Data distributionThursday, November 3, 11
  • 26. ReplicationThursday, November 3, 11
  • 27. Distribution • With number of copies = 2Thursday, November 3, 11
  • 28. How is data distributed??Thursday, November 3, 11
  • 29. Consistent HashingThursday, November 3, 11
  • 30. Solving unequal distributionThursday, November 3, 11
  • 31. Virtual NodesThursday, November 3, 11
  • 32. Accessing Infinispan data gridThursday, November 3, 11
  • 33. Remote Access • Via protocols : • REST • Hot RodThursday, November 3, 11
  • 34. Hot Rod clientsThursday, November 3, 11
  • 35. Infinispan as cloud data storeThursday, November 3, 11
  • 36. Traditional 3-tier AppThursday, November 3, 11
  • 37. Typical IaaS AppThursday, November 3, 11
  • 38. Traditional PaaS AppThursday, November 3, 11
  • 39. Where’s your data stored??Thursday, November 3, 11
  • 40. Clouds are ephemeral!!Thursday, November 3, 11
  • 41. StateThursday, November 3, 11
  • 42. Virtualizing Data Some public services exist (i.e. Amazon RDS), but not all cloud deployments are public!Thursday, November 3, 11
  • 43. Build your own Data-as-a-Service!Thursday, November 3, 11
  • 44. Characteristics of DaaS Elastic, scalable and highly available!Thursday, November 3, 11
  • 45. DaaS with InfinispanThursday, November 3, 11
  • 46. Architecture Manage and MonitorThursday, November 3, 11
  • 47. Who uses Infinispan?Thursday, November 3, 11
  • 48. As a cache... Hibernate 2nd level cache, Torquebox Rails cache...Thursday, November 3, 11
  • 49. As a temporary store... Http session cache & EJB SFSB cache, in JBoss AS7Thursday, November 3, 11
  • 50. As data grid... Real-time trading app of a well known stock exchangeThursday, November 3, 11
  • 51. What’s next?Thursday, November 3, 11
  • 52. Towards EDG Solidifying Infinispan towards integration with Red Hat’s Enterprise Data GridThursday, November 3, 11
  • 53. Plus more data grid... Enhancing Hot Rod protocol, Hibernate Object/Grid Mapper ...etcThursday, November 3, 11
  • 54. Summary Infinispan as fast powerful local cache that can be clustered!Thursday, November 3, 11
  • 55. Summary But also a F.A.D.E. data grid, accessible in embedded or remote fashionThursday, November 3, 11
  • 56. Summary Build your own Infinispan based Data-as-a-Service in your private cloud!Thursday, November 3, 11
  • 57. Questions infinispan.org - @infinispan speakerrate.com/galder More on data grids at 5pm!Thursday, November 3, 11