SlideShare ist ein Scribd-Unternehmen logo
1 von 51
Downloaden Sie, um offline zu lesen
Thursday, November 3, 11
Ruby-on-Infinispan
Cloud-tastic Data Grids for Ruby apps
Galder Zamarreño
Senior Software Engineer
Red Hat, Inc
Thursday, November 3, 11
Galder Zamarreño
• R&D Engineer, Red Hat Inc.
• Infinispan developer
• Work on various JBoss projects
• Twitter: @galderz
• Blog: zamarreno.com
Thursday, November 3, 11
Agenda
• What is TorqueBox?
• Rails caching limitations
• What is Infinispan?
• TorqueBoxStore
• Cloud storage with Infinispan
Thursday, November 3, 11
What is TorqueBox?
The mating of JRuby to
JBoss Application Server
Thursday, November 3, 11
What is TorqueBox?
Thursday, November 3, 11
Goals of TorqueBox
• Support Ruby web frameworks
• Rails, Sinatra, Rack
• Go beyond web
• Messaging
• Enterprise-Grade Caching
• Data Grid Storage
Thursday, November 3, 11
Hmmm, but...
... Rails already supports
caching
... and why would I want to
store data in a data grid?
Thursday, November 3, 11
What’s wrong with
Rails caching?
Thursday, November 3, 11
Caches are OK
Actually, action and fragment
caches are useful in
production but they don’t cover
all needs
Thursday, November 3, 11
Cache Stores
Choice provided by Rails is a
bit limited...
Thursday, November 3, 11
MemoryStore
Does not share cache
contents and is not
concurrent-safe
Thursday, November 3, 11
MemCacheStore
Caches in Danga’s
Memcached servers
Probably the most popular
option in production
Thursday, November 3, 11
MemCacheStore
Do you really need a separate
process for a cache?
Cache operations not local...
Thursday, November 3, 11
TorqueBoxStore
Brand new store!
Integrates with Infinispan, a
data grid platform from JBoss
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
Clustered
Consistency achieved via
invalidation, replication and
distribution modes
Thursday, November 3, 11
API
Map-like key/value store and
JPA layer via Hibernate OGM
Thursday, November 3, 11
Embedded Access
Thursday, November 3, 11
Remote Access
•Via protocols :
•REST
•Hot Rod
Thursday, November 3, 11
And more...
• Highly concurrent with MVCC locking
• Persistence, not just in-memory
• Adaptive eviction and expiration
• JMX and RHQ server monitoring
• ...etc
Thursday, November 3, 11
Why should I use
TorqueBoxStore?
Thursday, November 3, 11
TorqueBoxStore
Provides a local, in-memory,
highly-concurrent, clustered
cache
Thursday, November 3, 11
config/application.rb
Thursday, November 3, 11
Default Cache Mode
When TorqueBox clustered, it
uses Invalidation, otherwise
it’s just Local
Thursday, November 3, 11
Beyond Rails
Caching...
Thursday, November 3, 11
Durable Counters
Thursday, November 3, 11
Enough of
caching...
Thursday, November 3, 11
What’s all about
data grid storage?
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
Characteristics of DaaS
Elastic, scalable and highly
available!
Thursday, November 3, 11
DaaS with
Infinispan
Thursday, November 3, 11
Architecture
ManageandMonitor
Thursday, November 3, 11
What are those
Infinispan nodes??
Thursday, November 3, 11
Either
• Infinispan Hot Rod servers started via:
• or servlet container w/ Infinispan REST war
• or JBoss Enterprise Data Grid nodes
Thursday, November 3, 11
How do Ruby apps
talk to them?
Thursday, November 3, 11
Talk to Infinispan REST
Thursday, November 3, 11
Hmm, Hot Rod is a
custom protocol...
Thursday, November 3, 11
JRuby Hot Rod client
github.com/noelo/hotrod-jruby.git
Thursday, November 3, 11
What’s next?
Thursday, November 3, 11
Roadmap
ActiveModel backend that
stores stuff in Infinispan data
grid nodes
Thursday, November 3, 11
Summary
TorqueBoxStore: in-memory,
clustered & highly concurrent
Rails and low level caching!
Thursday, November 3, 11
Summary
Infinispan servers: distributed,
elastic and highly available
cloud-ready store
Thursday, November 3, 11
Questions?
torquebox.org - infinispan.org
#torquebox #infinispan on IRC
@torquebox - @infinispan
speakerrate.com/galder
Thursday, November 3, 11

Weitere ähnliche Inhalte

Andere mochten auch

Patent office india published patent information - september -23rd 2011
Patent office india   published patent information - september -23rd 2011Patent office india   published patent information - september -23rd 2011
Patent office india published patent information - september -23rd 2011
InvnTree IP Services Pvt. Ltd.
 
Munmi_6 months_experience_cv
Munmi_6 months_experience_cvMunmi_6 months_experience_cv
Munmi_6 months_experience_cv
munmi talukdar
 
Programa de Feria y Fiestas en honor a San Julián 2014
Programa de Feria y Fiestas en honor a San Julián 2014Programa de Feria y Fiestas en honor a San Julián 2014
Programa de Feria y Fiestas en honor a San Julián 2014
Ayuntamiento de Marmolejo
 
Divide y venceras
Divide y vencerasDivide y venceras
Divide y venceras
Vanessajrp
 
Ciudespmus.l2011
Ciudespmus.l2011Ciudespmus.l2011
Ciudespmus.l2011
MAGARS
 
Jag jeevan mein chir mahan - poem
Jag jeevan mein chir mahan - poemJag jeevan mein chir mahan - poem
Jag jeevan mein chir mahan - poem
chintanmehta007
 
Transporte de mercancias por ferrocarril en Europa fin
Transporte de  mercancias por ferrocarril en Europa finTransporte de  mercancias por ferrocarril en Europa fin
Transporte de mercancias por ferrocarril en Europa fin
grupo3transporte
 
Modelo de negocio. Rodrigo Saa. TRS 2014
Modelo de negocio. Rodrigo Saa. TRS 2014Modelo de negocio. Rodrigo Saa. TRS 2014
Modelo de negocio. Rodrigo Saa. TRS 2014
PTF
 

Andere mochten auch (20)

Movoto product design - case study i - PMCamp1
Movoto product design -  case study i - PMCamp1Movoto product design -  case study i - PMCamp1
Movoto product design - case study i - PMCamp1
 
Choosing and using social software
Choosing and using social softwareChoosing and using social software
Choosing and using social software
 
Patent office india published patent information - september -23rd 2011
Patent office india   published patent information - september -23rd 2011Patent office india   published patent information - september -23rd 2011
Patent office india published patent information - september -23rd 2011
 
SökRabatt.se
SökRabatt.seSökRabatt.se
SökRabatt.se
 
Humanistas 7 Electromagn
Humanistas 7 ElectromagnHumanistas 7 Electromagn
Humanistas 7 Electromagn
 
Munmi_6 months_experience_cv
Munmi_6 months_experience_cvMunmi_6 months_experience_cv
Munmi_6 months_experience_cv
 
Programa de Feria y Fiestas en honor a San Julián 2014
Programa de Feria y Fiestas en honor a San Julián 2014Programa de Feria y Fiestas en honor a San Julián 2014
Programa de Feria y Fiestas en honor a San Julián 2014
 
Boletín del Sernac sobre uso de una tarjeta de crédito en la compra de vestua...
Boletín del Sernac sobre uso de una tarjeta de crédito en la compra de vestua...Boletín del Sernac sobre uso de una tarjeta de crédito en la compra de vestua...
Boletín del Sernac sobre uso de una tarjeta de crédito en la compra de vestua...
 
Thomafluid II english
Thomafluid II englishThomafluid II english
Thomafluid II english
 
Fania All Star
Fania All StarFania All Star
Fania All Star
 
London RCE newsletter (first issue)
London RCE newsletter (first issue)London RCE newsletter (first issue)
London RCE newsletter (first issue)
 
Antiguo Egipto
Antiguo EgiptoAntiguo Egipto
Antiguo Egipto
 
Divide y venceras
Divide y vencerasDivide y venceras
Divide y venceras
 
Prueba de texto
Prueba de textoPrueba de texto
Prueba de texto
 
Ciudespmus.l2011
Ciudespmus.l2011Ciudespmus.l2011
Ciudespmus.l2011
 
Jag jeevan mein chir mahan - poem
Jag jeevan mein chir mahan - poemJag jeevan mein chir mahan - poem
Jag jeevan mein chir mahan - poem
 
Expo 101
Expo 101Expo 101
Expo 101
 
Transporte de mercancias por ferrocarril en Europa fin
Transporte de  mercancias por ferrocarril en Europa finTransporte de  mercancias por ferrocarril en Europa fin
Transporte de mercancias por ferrocarril en Europa fin
 
Modelo de negocio. Rodrigo Saa. TRS 2014
Modelo de negocio. Rodrigo Saa. TRS 2014Modelo de negocio. Rodrigo Saa. TRS 2014
Modelo de negocio. Rodrigo Saa. TRS 2014
 
Taller de generación de ideas de negocio mba 2014
Taller de generación de ideas de negocio mba 2014Taller de generación de ideas de negocio mba 2014
Taller de generación de ideas de negocio mba 2014
 

Ähnlich wie Ruby-on-Infinispan

Proud to be polyglot!
Proud to be polyglot!Proud to be polyglot!
Proud to be polyglot!
NLJUG
 
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case StudyPLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PROIDEA
 
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
 
Scalable crawling with Kafka, scrapy and spark - November 2021
Scalable crawling with Kafka, scrapy and spark - November 2021Scalable crawling with Kafka, scrapy and spark - November 2021
Scalable crawling with Kafka, scrapy and spark - November 2021
Max Lapan
 
Riak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard ProblemsRiak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard Problems
Andy Gross
 

Ähnlich wie Ruby-on-Infinispan (20)

Better, Faster, Cheaper Infrastructure: Apache CloudStack and Riak CS
Better, Faster, Cheaper Infrastructure: Apache CloudStack and Riak CSBetter, Faster, Cheaper Infrastructure: Apache CloudStack and Riak CS
Better, Faster, Cheaper Infrastructure: Apache CloudStack and Riak CS
 
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services 2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
2013 - Matías Paterlini: Escalando PHP con sharding y Amazon Web Services
 
Escalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP ConferenceEscalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP Conference
 
Building A Scalable Open Source Storage Solution
Building A Scalable Open Source Storage SolutionBuilding A Scalable Open Source Storage Solution
Building A Scalable Open Source Storage Solution
 
soft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Cachingsoft-shake.ch - Data grids and Data Caching
soft-shake.ch - Data grids and Data Caching
 
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
 
Interop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A ServiceInterop 2011 - Scaling Platform As A Service
Interop 2011 - Scaling Platform As A Service
 
Optiq: A dynamic data management framework
Optiq: A dynamic data management frameworkOptiq: A dynamic data management framework
Optiq: A dynamic data management framework
 
Proud to be polyglot!
Proud to be polyglot!Proud to be polyglot!
Proud to be polyglot!
 
Qcon talk
Qcon talkQcon talk
Qcon talk
 
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case StudyPLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
 
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)
 
Hive spark-s3acommitter-hbase-nfs
Hive spark-s3acommitter-hbase-nfsHive spark-s3acommitter-hbase-nfs
Hive spark-s3acommitter-hbase-nfs
 
Scaling Pinterest
Scaling PinterestScaling Pinterest
Scaling Pinterest
 
Exploring MongoDB & Elasticsearch: Better Together
Exploring MongoDB & Elasticsearch: Better TogetherExploring MongoDB & Elasticsearch: Better Together
Exploring MongoDB & Elasticsearch: Better Together
 
Building Complete Private Clouds with Apache CloudStack and Riak CS
Building Complete Private Clouds with Apache CloudStack and Riak CSBuilding Complete Private Clouds with Apache CloudStack and Riak CS
Building Complete Private Clouds with Apache CloudStack and Riak CS
 
Scalable crawling with Kafka, scrapy and spark - November 2021
Scalable crawling with Kafka, scrapy and spark - November 2021Scalable crawling with Kafka, scrapy and spark - November 2021
Scalable crawling with Kafka, scrapy and spark - November 2021
 
CloudFoundry and MongoDb, a marriage made in heaven
CloudFoundry and MongoDb, a marriage made in heavenCloudFoundry and MongoDb, a marriage made in heaven
CloudFoundry and MongoDb, a marriage made in heaven
 
Getting it Right: OpenStack Private Cloud Storage
Getting it Right: OpenStack Private Cloud StorageGetting it Right: OpenStack Private Cloud Storage
Getting it Right: OpenStack Private Cloud Storage
 
Riak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard ProblemsRiak Use Cases : Dissecting The Solutions To Hard Problems
Riak Use Cases : Dissecting The Solutions To Hard Problems
 

Kürzlich hochgeladen

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@
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Ruby-on-Infinispan