Date post: | 12-Apr-2017 |
Category: |
Software |
Upload: | emrah-kocaman |
View: | 166 times |
Download: | 1 times |
Emrah Kocaman
Software Engineer @ Hazelcastemrahkocaman
Martin Black
Regional Sales Director @ [email protected]
http://www.zenika.com/formation-hazelcast-essentials.html
30Th November - Free Training
Hazelcast For Beginners
What is Hazelcast?Hazelcast DemoHazelcast Data DistributionHazelcast FeaturesQ/A Session
Agenda
what is ?
“Hazelcast is In-Memory Data Grid (IMDG) Solution”
010011010101010
In Memory Data Computing
In Memory Data Messaging + + In Memory
Data Storage
an open-source project
an open-source projectleading open-source in-memory
data grid.Apache 2 Licensedead simple distributed programminglightweight w/o any dependencybuilt with in Istanbul
Hazelcast Inc.Hazelcast EnterpriseSupport ContractsTraining / ConsultingOffices in Istanbul & Ankara (Engineering) , Palo Alto(HQ+Sales) and London(Sales)
“Hazelcast is a java library to create distributed applications”
What are the main features of Distributed Applications?
• Scalability
What are the main features of Hazelcast?
• Scalability
• Speed
What are the main features of Hazelcast?
MemoryGetting cheaper and faster
Reference : http://www.statisticbrain.com/average-historic-price-of-ram/
• Scalability
• Speed
• Simplicity
What are the main features of Distributed Applications?
Hazelcast is simple!
IT’S DEMO TIME
<backup-count>1</backup-count>
max backup count is 6
Backups increase memory usage since they are also kept in memory.
Data Backup
DATA PARTITIONING
With 4 cluster nodes every server holds1/4 real data and 1/4 of backups
© 2015 Hazelcast Inc. Confidential & Proprietary
Rebalance Data on New Node
44
© 2015 Hazelcast Inc. Confidential & Proprietary
Distributed Maps
Fixed number of partitions (default 271)Each key falls into a partitionpartitionId = hash(keyData)%PARTITION_COUNTPartition ownerships are reassigned upon membership change
A B C
© 2015 Hazelcast Inc. Confidential & Proprietary
New Node Added
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Migration Complete
DA B C
© 2015 Hazelcast Inc. Confidential & Proprietary
Data Safety when Node Dies
54
© 2015 Hazelcast Inc. Confidential & Proprietary
Node Crashes
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Backups Are Restored
DA B C
Crash
© 2015 Hazelcast Inc. Confidential & Proprietary
Recovery Is Complete
DA C
Client/Server Architecture
Embedded Architecture
Deployment Options
Great for early stages of rapid application development and iteration
Necessary for scale up or scale out deployments – decouples upgrading of clients and cluster for long term TCO
Embedded Hazelcast
Hazelcast Node 1
Applications
Java API
Client-Server Mode
Hazelcast Node 3
Java API
Applications
Java API
Applications
Java API
Applications
Hazelcast Node 2
Hazelcast Node 1
Hazelcast Node 2
Applications
Java API
Hazelcast Node 3
Applications
Java API
Deployment Options
Multicast (default)
TCP/IP
AWS
Networking Options
Hazelcast Features
Data Store Features Java Collection API: Map, List, Set, Queue
JCache
High Density Memory Store
Hibernate 2nd Level Cache
Web Session Replication: Tomcat, Jetty
Predicate API: Indexes, SQL Query
Persistence: Map/Queue Store & Loader. Write Behind/Through
Eviction
Near Cache
Transactions: Local & XA
WAN Replication
Memcached Interface
Distributed Computing Features
Java Concurrency API (Lock, Semaphore, AtomicLong, AtomicReference, Executor Service, Blocking Queue)
Entry and Item Listeners
Entry Processor
Aggregators
Map/Reduce
Data Affinity
Continues Query
Map Interceptors
Delta Update
Distributed Messaging Features
Queue
Topic (Pub/Sub)
Event Listeners
Ring Buffers
Spring Cache ManagerHibernate 2nd Level Cache ProviderWeb Session ReplicationOSGI Support
Hazelcast Integration Modules
Management Center (free up to 2 nodes)High-Density MemoryTomcat/Jetty Session ReplicationEnterprise WAN ReplicationSecurityNative Clients (.NET/C++)
Hazelcast Enterprise Features
http://www.zenika.com/formation-hazelcast-essentials.html
30Th November - Free Training