soft-shake.ch - Data grids and Data Caching

1,084 views
966 views

Published on

Galder ZAMARREÑO

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,084
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

soft-shake.ch - Data grids and Data Caching

  1. 1. cocktail d’expérience informatiques Genève 3 & 4 octobre 2011 Seconde édition soft-shake.chAuteur Galder ZAMARREÑO Track JavaSession Data Grids and Data Caching
  2. 2. Tuesday, October 11, 11
  3. 3. Tuesday, October 11, 11
  4. 4. Data Grids and Data Caching Galder Zamarreño Senior Software Engineer Red Hat, Inc 3rd October 2011, Soft ShakeTuesday, October 11, 11
  5. 5. Galder Zamarreño • R&D Engineer, Red Hat Inc. • Infinispan developer • 5+ years exp. with distributed data systems • Twitter: @galderz • Blog: zamarreno.comTuesday, October 11, 11
  6. 6. Agenda • What is Infinispan? • Infinispan as in-memory cache • Infinispan as in-memory data grid • Data-as-a-Service with Infinispan • Who uses Infinispan?Tuesday, October 11, 11
  7. 7. IntroducingTuesday, October 11, 11
  8. 8. What is Infinispan? An in-memory, highly available, elastic, and open source (LGPL) data grid platformTuesday, October 11, 11
  9. 9. Infinispan can be used as...Tuesday, October 11, 11
  10. 10. Local in-memory cache Boost performance caching data which is hard to calculate or expensive to retrieveTuesday, October 11, 11
  11. 11. ConcurrentHashMap ? Infinispan provides greater concurrency with MVCC, has built-in eviction...etcTuesday, October 11, 11
  12. 12. Local cache exampleTuesday, October 11, 11
  13. 13. A local cache might not be enough...Tuesday, October 11, 11
  14. 14. Clustered caches Scale up your application and maintain cache consistencyTuesday, October 11, 11
  15. 15. Consistency in a clustered cache...Tuesday, October 11, 11
  16. 16. InvalidationTuesday, October 11, 11
  17. 17. InvalidationTuesday, October 11, 11
  18. 18. InvalidationTuesday, October 11, 11
  19. 19. Cache-oriented operations...Tuesday, October 11, 11
  20. 20. 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 transactionsTuesday, October 11, 11
  21. 21. Accessing Infinispan cachesTuesday, October 11, 11
  22. 22. Embedded AccessTuesday, October 11, 11
  23. 23. Infinispan is not just a cache!Tuesday, October 11, 11
  24. 24. In-memory data grid It’s a Fast, Available, Distributed, Elastic data store, not just a cache!Tuesday, October 11, 11
  25. 25. Invalidation won’t work for data grids!Tuesday, October 11, 11
  26. 26. Data distributionTuesday, October 11, 11
  27. 27. ReplicationTuesday, October 11, 11
  28. 28. Distribution • With number of copies = 2Tuesday, October 11, 11
  29. 29. How is data distributed??Tuesday, October 11, 11
  30. 30. Consistent HashingTuesday, October 11, 11
  31. 31. Solving unequal distributionTuesday, October 11, 11
  32. 32. Virtual NodesTuesday, October 11, 11
  33. 33. Accessing Infinispan data gridTuesday, October 11, 11
  34. 34. Remote Access • Via protocols : • REST • Hot RodTuesday, October 11, 11
  35. 35. Hot Rod clientsTuesday, October 11, 11
  36. 36. Infinispan as cloud data storeTuesday, October 11, 11
  37. 37. Traditional 3-tier AppTuesday, October 11, 11
  38. 38. Typical IaaS AppTuesday, October 11, 11
  39. 39. Traditional PaaS AppTuesday, October 11, 11
  40. 40. Where’s your data stored??Tuesday, October 11, 11
  41. 41. Clouds are ephemeral!!Tuesday, October 11, 11
  42. 42. StateTuesday, October 11, 11
  43. 43. Virtualizing Data Some public services exist (i.e. Amazon RDS), but not all cloud deployments are public!Tuesday, October 11, 11
  44. 44. Build your own Data-as-a-Service!Tuesday, October 11, 11
  45. 45. Characteristics of DaaS Elastic, scalable and highly available!Tuesday, October 11, 11
  46. 46. DaaS with InfinispanTuesday, October 11, 11
  47. 47. Architecture Manage and MonitorTuesday, October 11, 11
  48. 48. Who uses Infinispan?Tuesday, October 11, 11
  49. 49. As a cache... Hibernate 2nd level cache, Torquebox Rails cache...Tuesday, October 11, 11
  50. 50. As a temporary store... Http session cache & EJB SFSB cache, in JBoss AS7Tuesday, October 11, 11
  51. 51. As data grid... Real-time trading app of a well known stock exchangeTuesday, October 11, 11
  52. 52. What’s next?Tuesday, October 11, 11
  53. 53. Towards EDG Solidifying Infinispan towards integration with Red Hat’s Enterprise Data GridTuesday, October 11, 11
  54. 54. Plus more data grid... Enhancing Hot Rod protocol, Hibernate Object/Grid Mapper ...etcTuesday, October 11, 11
  55. 55. Summary Infinispan as fast powerful local cache that can be clustered!Tuesday, October 11, 11
  56. 56. Summary But also a F.A.D.E. data grid, accessible in embedded or remote fashionTuesday, October 11, 11
  57. 57. Summary Build your own Infinispan based Data-as-a-Service in your private cloud!Tuesday, October 11, 11
  58. 58. Questions infinispan.org - @infinispan speakerrate.com/galder More on data grids at 5pm!Tuesday, October 11, 11

×