Thursday, November 3, 11
Thursday, November 3, 11
Data Grids and                            Data Caching                                Galder Zamarreño                    ...
Galder Zamarreño                           •   R&D Engineer, Red Hat Inc.                           •   Infinispan develop...
Agenda                           •   What is Infinispan?                           •   Infinispan as in-memory cache      ...
IntroducingThursday, November 3, 11
What is Infinispan?                           An in-memory, highly                           available, elastic, and open ...
Infinispan can be                                used as...Thursday, November 3, 11
Local in-memory cache                           Boost performance caching                           data which is hard to ...
ConcurrentHashMap ?                           Infinispan provides greater                           concurrency with MVCC,...
Local cache exampleThursday, November 3, 11
A local cache might                            not be enough...Thursday, November 3, 11
Clustered caches                           Scale up your application and                           maintain cache consiste...
Consistency in a                           clustered cache...Thursday, November 3, 11
InvalidationThursday, November 3, 11
InvalidationThursday, November 3, 11
InvalidationThursday, November 3, 11
Cache-oriented                            operations...Thursday, November 3, 11
putForExternalRead()                                         put()                   putForExternalRead()                 ...
Accessing                           Infinispan cachesThursday, November 3, 11
Embedded AccessThursday, November 3, 11
Infinispan is not                             just a cache!Thursday, November 3, 11
In-memory data grid                           It’s a Fast, Available,                           Distributed, Elastic data ...
Invalidation won’t                           work for data grids!Thursday, November 3, 11
Data distributionThursday, November 3, 11
ReplicationThursday, November 3, 11
Distribution                           • With number of copies = 2Thursday, November 3, 11
How is data                           distributed??Thursday, November 3, 11
Consistent HashingThursday, November 3, 11
Solving unequal                             distributionThursday, November 3, 11
Virtual NodesThursday, November 3, 11
Accessing                           Infinispan data gridThursday, November 3, 11
Remote Access                                   • Via protocols :                                    • REST               ...
Hot Rod clientsThursday, November 3, 11
Infinispan as                           cloud data storeThursday, November 3, 11
Traditional 3-tier AppThursday, November 3, 11
Typical IaaS AppThursday, November 3, 11
Traditional PaaS AppThursday, November 3, 11
Where’s your data                              stored??Thursday, November 3, 11
Clouds are                           ephemeral!!Thursday, November 3, 11
StateThursday, November 3, 11
Virtualizing Data                           Some public services exist                           (i.e. Amazon RDS), but no...
Build your own                           Data-as-a-Service!Thursday, November 3, 11
Characteristics of DaaS                           Elastic, scalable and highly                           available!Thursda...
DaaS with                           InfinispanThursday, November 3, 11
Architecture                                          Manage and MonitorThursday, November 3, 11
Who uses                           Infinispan?Thursday, November 3, 11
As a cache...                           Hibernate 2nd level cache,                           Torquebox Rails cache...Thurs...
As a temporary store...                           Http session cache & EJB                           SFSB cache, in JBoss ...
As data grid...                           Real-time trading app of a well                           known stock exchangeTh...
What’s next?Thursday, November 3, 11
Towards EDG                           Solidifying Infinispan towards                           integration with Red Hat’s ...
Plus more data grid...                           Enhancing Hot Rod protocol,                           Hibernate Object/Gr...
Summary                           Infinispan as fast powerful                           local cache that can be           ...
Summary                           But also a F.A.D.E. data grid,                           accessible in embedded or      ...
Summary                           Build your own Infinispan                           based Data-as-a-Service in          ...
Questions                           infinispan.org - @infinispan                           speakerrate.com/galder         ...
Upcoming SlideShare
Loading in...5
×

Data Grids and Data Caching

3,279

Published on

Published in: Technology, Business

Data Grids and Data Caching

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

×