SlideShare a Scribd company logo
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 vs
          Databases
soft-shake.ch - Data grids and Data Grids
Tuesday, October 11, 11
Tuesday, October 11, 11
Data Grids vs
                           Databases
                              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

                          •   Why do we need Data Grids?
                          •   What are exactly In-memory Data Grids?
                          •   Data Grids + Databases
                          •   Data Grids without a Database
                          •   Can Data Grids replace Databases?



Tuesday, October 11, 11
Traditionally...


                          Store everything in a DB!



Tuesday, October 11, 11
Modern requirements


                          DBs not particularly good at
                          horizontal scaling...


Tuesday, October 11, 11
One size doesn’t fill all!

                          DBs are not bad, but they’re
                          not the solution to every
                          problem either


Tuesday, October 11, 11
Data Grids


Tuesday, October 11, 11
Data Grids are not new

                          Mainstream traction only
                          recent: vertical scaling needs,
                          cheaper memory... and cloud!


Tuesday, October 11, 11
Who’s offering
                           Data Grids?

Tuesday, October 11, 11
The Players

                          • Open Source:
                           • Infinispan, EhCache, Hazelcast...
                          • Commercial:
                           • Oracle Coherence, Gigaspaces, Gemfire,
                             IBM eXtreme Scale



Tuesday, October 11, 11
But, what are
                          In-memory DGs?

Tuesday, October 11, 11
Definition

                          In-memory data structures that
                          offer extremely fast access to
                          data


Tuesday, October 11, 11
Maps are popular!

                          Normally come with a Map-like
                          API, but often come with
                          alternatives


Tuesday, October 11, 11
Data distribution

                          Store data in a subset of the
                          grid to provide failover while
                          being able to scale up!


Tuesday, October 11, 11
With failure in mind

                          Suitable for commodity
                          hardware because they can
                          handle failure


Tuesday, October 11, 11
Elastic


                          Remain available during
                          topology changes


Tuesday, October 11, 11
Durability


                          More durability achieved
                          flushing to a persistent store


Tuesday, October 11, 11
Access patterns

                          Embedded (client and DG in
                          same VM)
                          or Remote (just like DBs)


Tuesday, October 11, 11
ACID or BASE


                          Transactions or Eventual
                          Consistency?


Tuesday, October 11, 11
DGs + DBs?


Tuesday, October 11, 11
Caching!

                          Use Data Grids as caches to
                          enhance Database access
                          performance!


Tuesday, October 11, 11
Can a Data Grid
                           replace a DB?

Tuesday, October 11, 11
Reiterating benefits


                          Speed, scalability, cloud-
                          friendliness...etc


Tuesday, October 11, 11
What are the Data
                          Grid challenges?

Tuesday, October 11, 11
Access patterns


                          Migrating from SQL to Map or
                          alternative APIs not easy


Tuesday, October 11, 11
Skill set


                          Different skill set:
                          OO programmer vs SQL


Tuesday, October 11, 11
Application data layer

                          Data layer to take data
                          collocation into account and
                          do more validation (less strict
                          schema)

Tuesday, October 11, 11
E.g. with a DB...




Tuesday, October 11, 11
Same with Infinispan




Tuesday, October 11, 11
Map/Reduce in detail




Tuesday, October 11, 11
Technology to
                           bridge gap?

Tuesday, October 11, 11
What about JPA?

                          Hibernate OGM (Object/Grid
                          Mapper) uses JPA to store in
                          DGs as opposed to DBs


Tuesday, October 11, 11
Most frequent use
                           cases for DGs?

Tuesday, October 11, 11
Use cases

                          •   Analytic systems, i.e. financial/trading apps
                          •   XTP
                          •   Event driven apps, i.e. CEP
                          •   Clustering toolkit



Tuesday, October 11, 11
Do I see DGs as DB
                            replacements?

Tuesday, October 11, 11
DBs are here to stay!

                          No. DBs are proven, mature,
                          well understood plus, there are
                          millions of systems out there!


Tuesday, October 11, 11
One size doesn’t fill all!


                          DBs are not a universal data
                          storage system any more


Tuesday, October 11, 11
Consider Data Grids

                          For their speed, capabilities as
                          data store, and cloud
                          friendliness


Tuesday, October 11, 11
Still some way to go

                          More deployments and
                          standardization (JSR-107,
                          JSR-347)


Tuesday, October 11, 11
Questions

                          infinispan.org - @infinispan

                          speakerrate.com/galder


Tuesday, October 11, 11

More Related Content

PPTX
Horror key concepts
KEY
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
PDF
Infinispan - Galder Zamarreno - October 2010
PPTX
Infinispan, transactional key value data grid and nosql database
PDF
soft-shake.ch - Data grids and Data Caching
DOCX
FOLLETO DE SOCIOLOGÌA
PDF
Data Grids vs Databases
PDF
Infinispan for Dummies
Horror key concepts
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
Infinispan - Galder Zamarreno - October 2010
Infinispan, transactional key value data grid and nosql database
soft-shake.ch - Data grids and Data Caching
FOLLETO DE SOCIOLOGÌA
Data Grids vs Databases
Infinispan for Dummies

Similar to soft-shake.ch - Data grids and Data Grids (20)

PDF
Data Grids and Data Caching
PDF
Non-Relational Databases & Key/Value Stores
PDF
Big Data - architectural concerns for the new age
PDF
Intro to NoSQL and MongoDB
PDF
Hadoop: A Hands-on Introduction
PPTX
Microsoft Openness Mongo DB
PPTX
Silicon valley nosql meetup april 2012
PDF
Morning with MongoDB Paris 2012 - Accueil et Introductions
PDF
Big Data @ Bodensee Barcamp 2010
PDF
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
PDF
Spring Data NHJUG April 2012
PDF
AFCEA C4I Symposium: The 4th C in C4I Stands for Cloud:Factors Driving Adopti...
PDF
No SQL Technologies
PDF
CloudFoundry and MongoDb, a marriage made in heaven
PDF
TUW- 184.742 Data as a Service – Concepts, Design & Implementation, and Ecosy...
PDF
Non Relational Databases And World Domination
PDF
The Coming Database Revolution
PDF
MongoDB Use Cases and Roadmap
PDF
MySQL Cluster no PayPal
PDF
Big data: analyzing large data sets
Data Grids and Data Caching
Non-Relational Databases & Key/Value Stores
Big Data - architectural concerns for the new age
Intro to NoSQL and MongoDB
Hadoop: A Hands-on Introduction
Microsoft Openness Mongo DB
Silicon valley nosql meetup april 2012
Morning with MongoDB Paris 2012 - Accueil et Introductions
Big Data @ Bodensee Barcamp 2010
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
Spring Data NHJUG April 2012
AFCEA C4I Symposium: The 4th C in C4I Stands for Cloud:Factors Driving Adopti...
No SQL Technologies
CloudFoundry and MongoDb, a marriage made in heaven
TUW- 184.742 Data as a Service – Concepts, Design & Implementation, and Ecosy...
Non Relational Databases And World Domination
The Coming Database Revolution
MongoDB Use Cases and Roadmap
MySQL Cluster no PayPal
Big data: analyzing large data sets
Ad

More from soft-shake.ch (20)

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

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Spectral efficient network and resource selection model in 5G networks
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Programs and apps: productivity, graphics, security and other tools
The Rise and Fall of 3GPP – Time for a Sabbatical?
sap open course for s4hana steps from ECC to s4
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Assigned Numbers - 2025 - Bluetooth® Document
MIND Revenue Release Quarter 2 2025 Press Release
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation

soft-shake.ch - Data grids and Data Grids

  • 1. 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 vs Databases
  • 5. Data Grids vs Databases Galder Zamarreño Senior Software Engineer Red Hat, Inc 3rd October 2011, Soft Shake Tuesday, October 11, 11
  • 6. 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
  • 7. Agenda • Why do we need Data Grids? • What are exactly In-memory Data Grids? • Data Grids + Databases • Data Grids without a Database • Can Data Grids replace Databases? Tuesday, October 11, 11
  • 8. Traditionally... Store everything in a DB! Tuesday, October 11, 11
  • 9. Modern requirements DBs not particularly good at horizontal scaling... Tuesday, October 11, 11
  • 10. One size doesn’t fill all! DBs are not bad, but they’re not the solution to every problem either Tuesday, October 11, 11
  • 12. Data Grids are not new Mainstream traction only recent: vertical scaling needs, cheaper memory... and cloud! Tuesday, October 11, 11
  • 13. Who’s offering Data Grids? Tuesday, October 11, 11
  • 14. The Players • Open Source: • Infinispan, EhCache, Hazelcast... • Commercial: • Oracle Coherence, Gigaspaces, Gemfire, IBM eXtreme Scale Tuesday, October 11, 11
  • 15. But, what are In-memory DGs? Tuesday, October 11, 11
  • 16. Definition In-memory data structures that offer extremely fast access to data Tuesday, October 11, 11
  • 17. Maps are popular! Normally come with a Map-like API, but often come with alternatives Tuesday, October 11, 11
  • 18. Data distribution Store data in a subset of the grid to provide failover while being able to scale up! Tuesday, October 11, 11
  • 19. With failure in mind Suitable for commodity hardware because they can handle failure Tuesday, October 11, 11
  • 20. Elastic Remain available during topology changes Tuesday, October 11, 11
  • 21. Durability More durability achieved flushing to a persistent store Tuesday, October 11, 11
  • 22. Access patterns Embedded (client and DG in same VM) or Remote (just like DBs) Tuesday, October 11, 11
  • 23. ACID or BASE Transactions or Eventual Consistency? Tuesday, October 11, 11
  • 24. DGs + DBs? Tuesday, October 11, 11
  • 25. Caching! Use Data Grids as caches to enhance Database access performance! Tuesday, October 11, 11
  • 26. Can a Data Grid replace a DB? Tuesday, October 11, 11
  • 27. Reiterating benefits Speed, scalability, cloud- friendliness...etc Tuesday, October 11, 11
  • 28. What are the Data Grid challenges? Tuesday, October 11, 11
  • 29. Access patterns Migrating from SQL to Map or alternative APIs not easy Tuesday, October 11, 11
  • 30. Skill set Different skill set: OO programmer vs SQL Tuesday, October 11, 11
  • 31. Application data layer Data layer to take data collocation into account and do more validation (less strict schema) Tuesday, October 11, 11
  • 32. E.g. with a DB... Tuesday, October 11, 11
  • 35. Technology to bridge gap? Tuesday, October 11, 11
  • 36. What about JPA? Hibernate OGM (Object/Grid Mapper) uses JPA to store in DGs as opposed to DBs Tuesday, October 11, 11
  • 37. Most frequent use cases for DGs? Tuesday, October 11, 11
  • 38. Use cases • Analytic systems, i.e. financial/trading apps • XTP • Event driven apps, i.e. CEP • Clustering toolkit Tuesday, October 11, 11
  • 39. Do I see DGs as DB replacements? Tuesday, October 11, 11
  • 40. DBs are here to stay! No. DBs are proven, mature, well understood plus, there are millions of systems out there! Tuesday, October 11, 11
  • 41. One size doesn’t fill all! DBs are not a universal data storage system any more Tuesday, October 11, 11
  • 42. Consider Data Grids For their speed, capabilities as data store, and cloud friendliness Tuesday, October 11, 11
  • 43. Still some way to go More deployments and standardization (JSR-107, JSR-347) Tuesday, October 11, 11
  • 44. Questions infinispan.org - @infinispan speakerrate.com/galder Tuesday, October 11, 11