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
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Data caching and data grids
Galder Zamarreño
October 03, 2011
More Decks by Galder Zamarreño
See All by Galder Zamarreño
Principles and Patterns for Streaming Data Analysis
galderz
0
130
Streaming Data Analysis with Kubernetes
galderz
0
2.6k
The Rough Guide to Java RPC Frameworks
galderz
1
7.2k
Streaming Data Analysis with Kubernetes
galderz
1
450
Streaming Data Workshop @ Codemotion Madrid
galderz
0
1.5k
Streaming Data : ni pierdas el tren, ni esperes en balde
galderz
0
3.2k
Data grids : descubre qué esconden los datos
galderz
0
3.2k
Streaming Data Workhop @ Devoxx
galderz
0
390
Streaming Data Analysis with Kubernetes
galderz
0
2.2k
Other Decks in Technology
See All in Technology
勉強会企画をアプリで構造化してみた 〜そこで見えた、AIとの付き合い方〜 / I've structured a study group plan using an app.
pauli
0
340
AI Agent SaaS を支える自社仮想化基盤への挑戦と実運用 / ai-agent-saas-virtualization
flatt_security
2
3.4k
金融の未来を考える / Thinking About the Future of Finance
ks91
PRO
0
180
AIに「使われる」時代のSaaS戦略 〜既存WebAPIのMCPサーバー化における開発ノウハウ〜
ekispert_api
0
300
最近評価が難しくなった
maroon8021
0
260
小さいから、全部わかる。— 常駐AI "xangi" のすすめ
sugupoko
0
280
プロンプト_きのこカンファレンス2026_LT
yurufuwahealer
0
150
環境凍結という Toil を倒す -セルフサービス型 Ephemeral テスト環境の 設計と実践
shirouz
1
1.9k
人を動かすのは時間ではなく、納得感 〜新任EMが入社3ヶ月、組織を2回変えた話〜
kakehashi
PRO
3
200
次世代ランサムウェア対策の考察 / 20260704 Mitsutoshi Matsuo
shift_evolve
PRO
5
1.7k
デジタル・デザイン:次の50年を描く「進化する青写真」
y150saya
0
840
デジタル・デザイン構想 by Sayaka Ishizuka
y150saya
0
200
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
640
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
Designing for Timeless Needs
cassininazir
1
280
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
390
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
220
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Unsuck your backbone
ammeep
672
58k
Visualization
eitanlees
152
17k
4 Signs Your Business is Dying
shpigford
187
22k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
250
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!