SlideShare a Scribd company logo
Thursday, November 3, 11
Thursday, November 3, 11
Data Grids and
                            Data Caching
                                Galder Zamarreño
                             Senior Software Engineer
                                   Red Hat, Inc
                              3rd October 2011, Soft Shake

Thursday, November 3, 11
Galder Zamarreño

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



Thursday, November 3, 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?



Thursday, November 3, 11
Introducing



Thursday, November 3, 11
What is Infinispan?

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

Thursday, November 3, 11
Infinispan can be
                                used as...

Thursday, November 3, 11
Local in-memory cache

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


Thursday, November 3, 11
ConcurrentHashMap ?

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


Thursday, November 3, 11
Local cache example




Thursday, November 3, 11
A local cache might
                            not be enough...

Thursday, November 3, 11
Clustered caches


                           Scale up your application and
                           maintain cache consistency


Thursday, November 3, 11
Consistency in a
                           clustered cache...

Thursday, November 3, 11
Invalidation




Thursday, November 3, 11
Invalidation




Thursday, November 3, 11
Invalidation




Thursday, November 3, 11
Cache-oriented
                            operations...

Thursday, November 3, 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




Thursday, November 3, 11
Accessing
                           Infinispan caches

Thursday, November 3, 11
Embedded Access




Thursday, 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 store,
                           not just a cache!


Thursday, November 3, 11
Invalidation won’t
                           work for data grids!

Thursday, November 3, 11
Data distribution




Thursday, November 3, 11
Replication




Thursday, November 3, 11
Distribution
                           • With number of copies = 2




Thursday, November 3, 11
How is data
                           distributed??

Thursday, November 3, 11
Consistent Hashing




Thursday, November 3, 11
Solving unequal
                             distribution

Thursday, November 3, 11
Virtual Nodes




Thursday, November 3, 11
Accessing
                           Infinispan data grid

Thursday, November 3, 11
Remote Access

                                   • Via protocols :
                                    • REST
                                    • Hot Rod




Thursday, November 3, 11
Hot Rod clients




Thursday, November 3, 11
Infinispan as
                           cloud data store

Thursday, November 3, 11
Traditional 3-tier App




Thursday, November 3, 11
Typical IaaS App




Thursday, November 3, 11
Traditional PaaS App




Thursday, November 3, 11
Where’s your data
                              stored??

Thursday, November 3, 11
Clouds are
                           ephemeral!!

Thursday, November 3, 11
State




Thursday, November 3, 11
Virtualizing Data

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


Thursday, November 3, 11
Build your own
                           Data-as-a-Service!

Thursday, November 3, 11
Characteristics of DaaS


                           Elastic, scalable and highly
                           available!


Thursday, November 3, 11
DaaS with
                           Infinispan

Thursday, November 3, 11
Architecture




                                          Manage and Monitor
Thursday, November 3, 11
Who uses
                           Infinispan?

Thursday, November 3, 11
As a cache...


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


Thursday, November 3, 11
As a temporary store...


                           Http session cache & EJB
                           SFSB cache, in JBoss AS7


Thursday, November 3, 11
As data grid...


                           Real-time trading app of a well
                           known stock exchange


Thursday, November 3, 11
What’s next?


Thursday, November 3, 11
Towards EDG

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


Thursday, November 3, 11
Plus more data grid...

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


Thursday, November 3, 11
Summary

                           Infinispan as fast powerful
                           local cache that can be
                           clustered!


Thursday, November 3, 11
Summary

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


Thursday, November 3, 11
Summary

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


Thursday, November 3, 11
Questions
                           infinispan.org - @infinispan

                           speakerrate.com/galder

                           More on data grids at 5pm!

Thursday, November 3, 11

More Related Content

PDF
Data Grids vs Databases
PDF
Infinispan for Dummies
PDF
Ruby-on-Infinispan
PDF
Why RESTful Design for the Cloud is Best
PDF
soft-shake.ch - Data grids and Data Grids
PDF
Building high traffic http front-ends. theo schlossnagle. зал 1
PDF
Fast, In-Memory SQL on Apache Cassandra with Apache Ignite (Rachel Pedreschi,...
PPTX
From cache to in-memory data grid. Introduction to Hazelcast.
Data Grids vs Databases
Infinispan for Dummies
Ruby-on-Infinispan
Why RESTful Design for the Cloud is Best
soft-shake.ch - Data grids and Data Grids
Building high traffic http front-ends. theo schlossnagle. зал 1
Fast, In-Memory SQL on Apache Cassandra with Apache Ignite (Rachel Pedreschi,...
From cache to in-memory data grid. Introduction to Hazelcast.

Viewers also liked (20)

PPTX
In Memory Data Grids, Demystified!
PPTX
In memory grids IMDG
PPTX
Apache ignite Datagrid
PDF
Multi modularized project setup with gulp, typescript and angular.js
PDF
Cassandra on Castle
PDF
Infinispan – the open source data grid platform by Mircea Markus
PDF
Infinispan,Lucene,Hibername OGM
PDF
What's New in Infinispan 6.0
PPTX
Tales From the Field: The Wrong Way of Using Cassandra (Carlos Rolo, Pythian)...
PDF
Infinispan
PDF
Infinispan Data Grid Platform
PDF
London JBUG April 2015 - Performance Tuning Apps with WildFly Application Server
PDF
Apache conbigdata2015 christiantzolov-federated sql on hadoop and beyond- lev...
KEY
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
PDF
JBoss Community Introduction
PDF
Building Wall St Risk Systems with Apache Geode
PPTX
Архитектура Apache Ignite .NET
PDF
Infinispan Servers: Beyond peer-to-peer data grids
PDF
Apache Geode - The First Six Months
PDF
Infinispan from POC to Production
In Memory Data Grids, Demystified!
In memory grids IMDG
Apache ignite Datagrid
Multi modularized project setup with gulp, typescript and angular.js
Cassandra on Castle
Infinispan – the open source data grid platform by Mircea Markus
Infinispan,Lucene,Hibername OGM
What's New in Infinispan 6.0
Tales From the Field: The Wrong Way of Using Cassandra (Carlos Rolo, Pythian)...
Infinispan
Infinispan Data Grid Platform
London JBUG April 2015 - Performance Tuning Apps with WildFly Application Server
Apache conbigdata2015 christiantzolov-federated sql on hadoop and beyond- lev...
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
JBoss Community Introduction
Building Wall St Risk Systems with Apache Geode
Архитектура Apache Ignite .NET
Infinispan Servers: Beyond peer-to-peer data grids
Apache Geode - The First Six Months
Infinispan from POC to Production
Ad

Similar to Data Grids and Data Caching (7)

PDF
soft-shake.ch - Data grids and Data Caching
PDF
A PHP Christmas Miracle - 3 Frameworks, 1 app
PDF
Silverchair Strategies
PDF
Fast & Furious: Speed in the Opera browser
PDF
Apple Preso Ohio
PDF
Zookeeper at the bigdata roundtable
PDF
Riak Use Cases : Dissecting The Solutions To Hard Problems
soft-shake.ch - Data grids and Data Caching
A PHP Christmas Miracle - 3 Frameworks, 1 app
Silverchair Strategies
Fast & Furious: Speed in the Opera browser
Apple Preso Ohio
Zookeeper at the bigdata roundtable
Riak Use Cases : Dissecting The Solutions To Hard Problems
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
KodekX | Application Modernization Development
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced Soft Computing BINUS July 2025.pdf
KodekX | Application Modernization Development
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”

Data Grids and Data Caching