distributed in memory data grid
TRANSCRIPT
Distributed in-
memory data
grid
Features Simple
Reliable
Fail-safe (automatic backups)
Fast (data stored in-memory)
Scalable
Usage of JDK interfaces: List, Map, Set, Queue, Lock, ExecutorService e.t.c.
Decentralized topology
Socket level traffic encryption
Spring Integration
Used by:
Hear of Hazelcast
HazelcastInstance node = Hazelcast.newHazelcastInstance(new Config());
Configuration
In-code configuration
Config cfg = new Config();
Address address = new Address("localhost", 5701);
cfg.getNetworkConfig().getJoin().getTcpIpConfig().addAddress(address);
XML file
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-2.4.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<group>
<name>dev</name>
<password>dev-pass</password>
</group>
<network>
<port auto-increment="true">5701</port>
<join>
<tcp-ip enabled="true">
<interface>127.0.0.1</interface>
</tcp-ip>
</join>
</network>
</hazelcast>
Collections (List, Set, Queue)
Automatic data partitioning and propagation between
nodes
Transaction support
Write-Through and Write-Behind persistence
Automatic replication (synchronous and asynchronous)
Distributed Map Automatic data partitioning and propagation
between nodes
Transaction support
Write-Through and Write-Behind persistence
Automatic replication (synchronous and
asynchronous)
SQL like queries
Automatic Map-Reduce in queries
Topic
Cluster-wide events
Events are ordered
Bonus (ExecutorService)
Distributed
Broadcast execution
Execution on specific node
Load balancing
Site: http://www.hazelcast.com/
Documentation: http://www.hazelcast.com/docs.jsp
Skype: albul.alexander
Email: [email protected], [email protected]