Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Data caching and data grids
Search
Galder Zamarreño
October 03, 2011
Technology
0
54
Data caching and data grids
Galder Zamarreño
October 03, 2011
Tweet
Share
More Decks by Galder Zamarreño
See All by Galder Zamarreño
Principles and Patterns for Streaming Data Analysis
galderz
0
96
Streaming Data Analysis with Kubernetes
galderz
0
2.5k
The Rough Guide to Java RPC Frameworks
galderz
1
7k
Streaming Data Analysis with Kubernetes
galderz
1
410
Streaming Data Workshop @ Codemotion Madrid
galderz
0
1.4k
Streaming Data : ni pierdas el tren, ni esperes en balde
galderz
0
3k
Data grids : descubre qué esconden los datos
galderz
0
3.1k
Streaming Data Workhop @ Devoxx
galderz
0
360
Streaming Data Analysis with Kubernetes
galderz
0
2k
Other Decks in Technology
See All in Technology
RAID6 を楔形文字で組んで現代人を怖がらせましょう(実装編)
mimifuwa
1
320
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
2
20k
JavaScript 研修
recruitengineers
PRO
4
860
ZOZOTOWNフロントエンドにおけるディレクトリの分割戦略
zozotech
PRO
18
5.7k
【 LLMエンジニアがヒューマノイド開発に挑んでみた 】 - 第104回 Machine Learning 15minutes! Hybrid
soneo1127
0
150
Amazon Bedrock AgentCore でプロモーション用動画生成エージェントを開発する
nasuvitz
6
470
Product Management Conference -AI時代に進化するPdM-
kojima111
0
250
『FailNet~やらかし共有SNS~』エレベーターピッチ
yokomachi
1
130
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
8.6k
kintone開発チームの紹介
cybozuinsideout
PRO
0
73k
AIエージェント就活入門 - MCPが履歴書になる未来
eltociear
0
630
Devinを使ったモバイルアプリ開発 / Mobile app development with Devin
yanzm
0
200
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Music & Morning Musume
bryan
46
6.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Code Review Best Practice
trishagee
70
19k
Into the Great Unknown - MozCon
thekraken
40
2k
Building Flexible Design Systems
yeseniaperezcruz
328
39k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
Transcript
None
None
Data Grids and Data Caching ! Galder Zamarreño Senior Software
Engineer Red Hat, Inc ! 3rd October 2011, Soft Shake
Galder Zamarreño • R&D Engineer, Red Hat Inc. • Infinispan
developer • 5+ years exp. with distributed data systems • Twitter: @galderz • Blog: zamarreno.com
Agenda • What is Infinispan? • Infinispan as in-memory cache
• Infinispan as in-memory data grid • Data-as-a-Service with Infinispan • Who uses Infinispan?
Introducing
What is Infinispan? An in-memory, highly available, elastic, and open
source (LGPL) data grid platform
Infinispan can be used as...
Local in-memory cache Boost performance caching data which is hard
to calculate or expensive to retrieve
ConcurrentHashMap ? Infinispan provides greater concurrency with MVCC, has built-in
eviction...etc
Local cache example
A local cache might not be enough...
Clustered caches Scale up your application and maintain cache consistency
Consistency in a clustered cache...
Invalidation
Invalidation
Invalidation
Cache-oriented operations...
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 fail Will never affect existing transactions
Accessing Infinispan caches
Embedded Access
Infinispan is not just a cache!
In-memory data grid It’s a Fast, Available, Distributed, Elastic data
store, not just a cache!
Invalidation won’t work for data grids!
Data distribution
Replication
Distribution • With number of copies = 2
How is data distributed??
Consistent Hashing
Solving unequal distribution
Virtual Nodes
Accessing Infinispan data grid
Remote Access •Via protocols : •REST •Hot Rod
Hot Rod clients
Infinispan as cloud data store
Traditional 3-tier App
Typical IaaS App
Traditional PaaS App
Where’s your data stored??
Clouds are ephemeral!!
State
Virtualizing Data Some public services exist (i.e. Amazon RDS), but
not all cloud deployments are public!
Build your own Data-as-a-Service!
Characteristics of DaaS Elastic, scalable and highly available!
DaaS with Infinispan
Architecture Manage and Monitor
Who uses Infinispan?
As a cache... Hibernate 2nd level cache, Torquebox Rails cache...
As a temporary store... Http session cache & EJB SFSB
cache, in JBoss AS7
As data grid... Real-time trading app of a well known
stock exchange
What’s next?
Towards EDG Solidifying Infinispan towards integration with Red Hat’s Enterprise
Data Grid
Plus more data grid... Enhancing Hot Rod protocol, Hibernate Object/Grid
Mapper ...etc
Summary Infinispan as fast powerful local cache that can be
clustered!
Summary But also a F.A.D.E. data grid, accessible in embedded
or remote fashion
Summary Build your own Infinispan based Data-as-a-Service in your private
cloud!
Questions infinispan.org - @infinispan ! speakerrate.com/galder ! More on data
grids at 5pm!