SlideShare une entreprise Scribd logo
1  sur  59
Télécharger pour lire hors ligne
cocktail d’expérience informatiques
             Genève 3 & 4 octobre 2011
                    Seconde édition
                      soft-shake.ch




Auteur    Galder ZAMARREÑO
  Track   Java
Session   Data Grids and
          Data Caching
Tuesday, October 11, 11
Tuesday, October 11, 11
Data Grids and
                           Data Caching
                               Galder Zamarreño
                            Senior Software Engineer
                                  Red Hat, Inc
                             3rd October 2011, Soft Shake

Tuesday, October 11, 11
Galder Zamarreño

                          •   R&D Engineer, Red Hat Inc.
                          •   Infinispan developer
                          •   5+ years exp. with distributed data systems
                          •   Twitter: @galderz
                          •   Blog: zamarreno.com



Tuesday, October 11, 11
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
Introducing



Tuesday, October 11, 11
What is Infinispan?

                          An in-memory, highly
                          available, elastic, and open
                          source (LGPL) data grid
                          platform

Tuesday, October 11, 11
Infinispan can be
                               used as...

Tuesday, October 11, 11
Local in-memory cache

                          Boost performance caching
                          data which is hard to calculate
                          or expensive to retrieve


Tuesday, October 11, 11
ConcurrentHashMap ?

                          Infinispan provides greater
                          concurrency with MVCC, has
                          built-in eviction...etc


Tuesday, October 11, 11
Local cache example




Tuesday, October 11, 11
A local cache might
                           not be enough...

Tuesday, October 11, 11
Clustered caches


                          Scale up your application and
                          maintain cache consistency


Tuesday, October 11, 11
Consistency in a
                          clustered cache...

Tuesday, October 11, 11
Invalidation




Tuesday, October 11, 11
Invalidation




Tuesday, October 11, 11
Invalidation




Tuesday, October 11, 11
Cache-oriented
                           operations...

Tuesday, October 11, 11
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                           transactions




Tuesday, October 11, 11
Accessing
                          Infinispan caches

Tuesday, October 11, 11
Embedded Access




Tuesday, October 11, 11
Infinispan is not
                            just a cache!

Tuesday, October 11, 11
In-memory data grid

                          It’s a Fast, Available,
                          Distributed, Elastic data store,
                          not just a cache!


Tuesday, October 11, 11
Invalidation won’t
                          work for data grids!

Tuesday, October 11, 11
Data distribution




Tuesday, October 11, 11
Replication




Tuesday, October 11, 11
Distribution
                          • With number of copies = 2




Tuesday, October 11, 11
How is data
                          distributed??

Tuesday, October 11, 11
Consistent Hashing




Tuesday, October 11, 11
Solving unequal
                            distribution

Tuesday, October 11, 11
Virtual Nodes




Tuesday, October 11, 11
Accessing
                          Infinispan data grid

Tuesday, October 11, 11
Remote Access

                                  • Via protocols :
                                   • REST
                                   • Hot Rod




Tuesday, October 11, 11
Hot Rod clients




Tuesday, October 11, 11
Infinispan as
                          cloud data store

Tuesday, October 11, 11
Traditional 3-tier App




Tuesday, October 11, 11
Typical IaaS App




Tuesday, October 11, 11
Traditional PaaS App




Tuesday, October 11, 11
Where’s your data
                             stored??

Tuesday, October 11, 11
Clouds are
                          ephemeral!!

Tuesday, October 11, 11
State




Tuesday, October 11, 11
Virtualizing Data

                          Some public services exist
                          (i.e. Amazon RDS), but not all
                          cloud deployments are public!


Tuesday, October 11, 11
Build your own
                          Data-as-a-Service!

Tuesday, October 11, 11
Characteristics of DaaS


                          Elastic, scalable and highly
                          available!


Tuesday, October 11, 11
DaaS with
                          Infinispan

Tuesday, October 11, 11
Architecture




                                         Manage and Monitor
Tuesday, October 11, 11
Who uses
                          Infinispan?

Tuesday, October 11, 11
As a cache...


                          Hibernate 2nd level cache,
                          Torquebox Rails cache...


Tuesday, October 11, 11
As a temporary store...


                          Http session cache & EJB
                          SFSB cache, in JBoss AS7


Tuesday, October 11, 11
As data grid...


                          Real-time trading app of a well
                          known stock exchange


Tuesday, October 11, 11
What’s next?


Tuesday, October 11, 11
Towards EDG

                          Solidifying Infinispan towards
                          integration with Red Hat’s
                          Enterprise Data Grid


Tuesday, October 11, 11
Plus more data grid...

                          Enhancing Hot Rod protocol,
                          Hibernate Object/Grid Mapper
                          ...etc


Tuesday, October 11, 11
Summary

                          Infinispan as fast powerful
                          local cache that can be
                          clustered!


Tuesday, October 11, 11
Summary

                          But also a F.A.D.E. data grid,
                          accessible in embedded or
                          remote fashion


Tuesday, October 11, 11
Summary

                          Build your own Infinispan
                          based Data-as-a-Service in
                          your private cloud!


Tuesday, October 11, 11
Questions
                          infinispan.org - @infinispan

                          speakerrate.com/galder

                          More on data grids at 5pm!

Tuesday, October 11, 11

Contenu connexe

Similaire à soft-shake.ch - Data grids and Data Caching

Play concurrency
Play concurrencyPlay concurrency
Play concurrency
Justin Long
 
Practical Cloud Security
Practical Cloud SecurityPractical Cloud Security
Practical Cloud Security
Jason Chan
 
Rcos presentation
Rcos presentationRcos presentation
Rcos presentation
mskmoorthy
 
Connfu Adhearsion
Connfu AdhearsionConnfu Adhearsion
Connfu Adhearsion
BlueVia
 
Ruby + Rails
Ruby + RailsRuby + Rails
Ruby + Rails
betabeers
 
Addressing vendor weaknesses in user space (Robert Treat)
Addressing vendor weaknesses in user space (Robert Treat)Addressing vendor weaknesses in user space (Robert Treat)
Addressing vendor weaknesses in user space (Robert Treat)
Ontico
 

Similaire à soft-shake.ch - Data grids and Data Caching (20)

soft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Gridssoft-shake.ch - Data grids and Data Grids
soft-shake.ch - Data grids and Data Grids
 
Infinispan for Dummies
Infinispan for DummiesInfinispan for Dummies
Infinispan for Dummies
 
Data Grids vs Databases
Data Grids vs DatabasesData Grids vs Databases
Data Grids vs Databases
 
Ruby-on-Infinispan
Ruby-on-InfinispanRuby-on-Infinispan
Ruby-on-Infinispan
 
Fast & Furious: Speed in the Opera browser
Fast & Furious: Speed in the Opera browserFast & Furious: Speed in the Opera browser
Fast & Furious: Speed in the Opera browser
 
A PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 appA PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 app
 
Play concurrency
Play concurrencyPlay concurrency
Play concurrency
 
Practical Cloud Security
Practical Cloud SecurityPractical Cloud Security
Practical Cloud Security
 
Zookeeper at the bigdata roundtable
Zookeeper at the bigdata roundtableZookeeper at the bigdata roundtable
Zookeeper at the bigdata roundtable
 
Technical Debt
Technical DebtTechnical Debt
Technical Debt
 
Rcos presentation
Rcos presentationRcos presentation
Rcos presentation
 
Connfu adhearsion
Connfu adhearsionConnfu adhearsion
Connfu adhearsion
 
Connfu Adhearsion
Connfu AdhearsionConnfu Adhearsion
Connfu Adhearsion
 
Apache Flume NG
Apache Flume NGApache Flume NG
Apache Flume NG
 
Ruby + Rails
Ruby + RailsRuby + Rails
Ruby + Rails
 
Social apps & social scalability
Social apps & social scalabilitySocial apps & social scalability
Social apps & social scalability
 
Tackling Big Data with Hadoop
Tackling Big Data with HadoopTackling Big Data with Hadoop
Tackling Big Data with Hadoop
 
Goto aarhus: Mobile Browser as a platform
Goto aarhus: Mobile Browser as a platformGoto aarhus: Mobile Browser as a platform
Goto aarhus: Mobile Browser as a platform
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
 
Addressing vendor weaknesses in user space (Robert Treat)
Addressing vendor weaknesses in user space (Robert Treat)Addressing vendor weaknesses in user space (Robert Treat)
Addressing vendor weaknesses in user space (Robert Treat)
 

Plus de soft-shake.ch

soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStreamsoft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch
 
soft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecturesoft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecture
soft-shake.ch
 

Plus de soft-shake.ch (20)

soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
soft-shake.ch - Windows Phone 7 „Mango“ – what’s new for Developers?
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
soft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easysoft-shake.ch - WebMatrix: Your Web Made Easy
soft-shake.ch - WebMatrix: Your Web Made Easy
 
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NETsoft-shake.ch - Domotique et robotique avec le micro Framework .NET
soft-shake.ch - Domotique et robotique avec le micro Framework .NET
 
soft-shake.ch - Clojure Values
soft-shake.ch - Clojure Valuessoft-shake.ch - Clojure Values
soft-shake.ch - Clojure Values
 
soft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolutionsoft-shake.ch - JBoss AS 7, la révolution
soft-shake.ch - JBoss AS 7, la révolution
 
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coinsoft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
soft-shake.ch - Java SE 7: The Fork/Join Framework and Project Coin
 
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquilliansoft-shake.ch - Tests d'intégration JavaEE avec Arquillian
soft-shake.ch - Tests d'intégration JavaEE avec Arquillian
 
soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!soft-shake.ch - Un zeste d’Erlang dans le shaker!
soft-shake.ch - Un zeste d’Erlang dans le shaker!
 
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStreamsoft-shake.ch - Déploiement continu sur le cloud avec SlipStream
soft-shake.ch - Déploiement continu sur le cloud avec SlipStream
 
soft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecturesoft-shake.ch - An introduction to social architecture
soft-shake.ch - An introduction to social architecture
 
soft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.jssoft-shake.ch - Hands on Node.js
soft-shake.ch - Hands on Node.js
 
soft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrumsoft-shake.ch - De Hermes RUP à Hermes Scrum
soft-shake.ch - De Hermes RUP à Hermes Scrum
 
soft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivationsoft-shake.ch - Stewardship et motivation
soft-shake.ch - Stewardship et motivation
 
soft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp leansoft-shake.ch - Agile qu'es aco : scrum xp lean
soft-shake.ch - Agile qu'es aco : scrum xp lean
 
soft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilitésoft-shake.ch - Documentation et agilité
soft-shake.ch - Documentation et agilité
 
soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?soft-shake.ch - Agilité = discipline et rigueur ?
soft-shake.ch - Agilité = discipline et rigueur ?
 
soft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changementsoft-shake.ch - Transition agile & Accompagnement au changement
soft-shake.ch - Transition agile & Accompagnement au changement
 
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structuréesoft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
soft-shake.ch - Agilité et Testing: de l'intérêt d'une démarche structurée
 
soft-shake.ch - Le développement durable
soft-shake.ch - Le développement durablesoft-shake.ch - Le développement durable
soft-shake.ch - Le développement durable
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

soft-shake.ch - Data grids and Data Caching