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
55
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
99
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
webpack依存からの脱却!快適フロントエンド開発をViteで実現する #vuefes
bengo4com
2
2.5k
生成AI時代のPythonセキュリティとガバナンス
abenben
0
100
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
3
20k
From Natural Language to K8s Operations: The MCP Architecture and Practice of kubectl-ai
appleboy
0
110
物体検出モデルでシイタケの収穫時期を自動判定してみた。 #devio2025
lamaglama39
0
270
SCONE - 動画配信の帯域を最適化する新プロトコル
kazuho
1
320
AI時代の開発を加速する組織づくり - ブログでは書けなかったリアル
hiro8ma
1
260
OSSで50の競合と戦うためにやったこと
yamadashy
3
950
もう外には出ない。より快適なフルリモート環境を目指して
mottyzzz
13
9.1k
まだ間に合う! 2025年のhono/ssg事情
watany
2
240
「魔法少女まどか☆マギカ Magia Exedra」の多様なバトルの開発を柔軟かつ効率的に実現するためのPure C#とUnityの分離について
gree_tech
PRO
0
250
Biz職でもDifyでできる! 「触らないAIワークフロー」を実現する方法
igarashikana
3
2.2k
Featured
See All Featured
The Invisible Side of Design
smashingmag
302
51k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Music & Morning Musume
bryan
46
6.9k
We Have a Design System, Now What?
morganepeng
53
7.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
610
Producing Creativity
orderedlist
PRO
347
40k
Unsuck your backbone
ammeep
671
58k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Context Engineering - Making Every Token Count
addyosmani
8
300
Facilitating Awesome Meetings
lara
57
6.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!