HazelCast IMDG
HELLO!
Hiten Pratap Singh
https://github.com/hitenpratap/
https://hprog99.wordpress.com/
hiten@fintechlabs.in
https://hitenpratap.github.io
2
IMDG: In Memory
Data Grid
3
IMDG
▸ Middleware Software
▸ Shared nothing architecture
▸ Manages objects across
distributed servers in the
RAM
▸ Ability to scale
▸ Provides fault tolerance
4
Cache Access
Patterns
5
Cache
Access
Patterns
▸ Cache Aside
▸ Read Through/Write Through
▸ Write Behind
▸ Refresh Ahead
6
Cache Types
7
Cache Types
▸ Local Cache
▸ Replicated Cache
▸ Distributed Cache
▸ Remote Cache
▸ Near Cache
8
IMDG
9 In Memory Data Grid
HazelCast Use-Cases
10
HazelCast
Use-Cases
▸ Scale your application
▸ Share data across cluster
▸ Partition your data
▸ Balance the load
▸ Messaging support
▸ Process in parallel on many
JVMs i.e. MPP
11
HazelCast Features
12
HazelCast
Features
▸ Dynamic clustering, backup,
discovery and failover
▸ Distributed map, set, list,
queue, lock, semaphore,
topic, query etc.
▸ Transport support
▸ Naive clients for accessing
clusters remotely
13
Data Partition in a
Cluster
14
Data
Partition in
a Cluster
15
HazelCast
Configuration
16
HazelCast
Configuratio
ns
▸ Programmatic Configuration
▸ XML COnfiguration
Note: It’s very important that configuration on every members
in a cluster must be the same, it doesn’t matter which one do
you choose.
17
Advanced
Techniques
18
Advanced
Techniques
▸ Indexing keys, values
▸ Distributed SQL like queries
▸ Write-Behind/Write-Through
persistence
▸ EntryListeners/EntryProcess
ors
▸ Automatic Eviction
▸ Control Partitioning
19
HazelCast
Alternatives
20
HazelCast
Alternatives
21
Who Uses
HazelCast!
22
Who Uses
HazelCast!
23
Hazelcast VS Redis
24
Hazelcast
VS Redis -
ThroughPut
25
Hazelcast
VS Redis -
Latency
26
Demo Time
27
THANKS!
Any questions?
You can find me at
▸ https://github.com/hitenpratap/
▸ https://hprog99.wordpress.com/
▸ hiten@fintechlabs.in
▸ https://hitenpratap.github.io
28
References
▸ https://whatis.techtarget.com/definition/in-me
mory-data-grid
▸ https://www.slideshare.net/jaxlondon2012/clus
tering-your-application-with-hazelcast
▸ https://www.slideshare.net/tmatyashovsky/dist
ributed-applications-using-hazelcast
▸ https://www.slideshare.net/tmatyashovsky/fro
m-cache-to-in-memory-data-grid-introduction-to-
hazelcast
▸ https://www.slideshare.net/memndmrc/introdu
ction-to-hazelcast-45064074
▸ https://hazelcast.com/use-cases/nosql/redis-re
placement/
▸ https://blog.hazelcast.com/hazelcast-radargun/
29

HazelCast