distributed in memory data grid

9

Click here to load reader

Upload: alexander-albul

Post on 09-Jul-2015

189 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Distributed in memory data grid

Distributed in-

memory data

grid

Page 2: 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:

Page 3: Distributed in memory data grid

Hear of Hazelcast

HazelcastInstance node = Hazelcast.newHazelcastInstance(new Config());

Page 4: Distributed in memory data grid

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>

Page 5: Distributed in memory data grid

Collections (List, Set, Queue)

Automatic data partitioning and propagation between

nodes

Transaction support

Write-Through and Write-Behind persistence

Automatic replication (synchronous and asynchronous)

Page 6: Distributed in memory data grid

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

Page 7: Distributed in memory data grid

Topic

Cluster-wide events

Events are ordered

Page 8: Distributed in memory data grid

Bonus (ExecutorService)

Distributed

Broadcast execution

Execution on specific node

Load balancing