1

I'm trying to understand Hazelcast library. Online studies says its an in-memory data grid and works on distributed network. Beyond that am very confused to understand this.

Correct me if am wrong(My understanding). Here working on distributed network means that some data is stored in Hazelcast's in-memory data grid which is accessible to all nodes in cluster ? Is it correct ? Any node in a cluster can perform (Insert or delete or update) to that in-memory data grid, and which is commonly available to all nodes.

Can anyone help me to explain what is the main purpose of Hazelcast in simple terms with any example?

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
Andrea
  • 109
  • 2
  • 10
  • 1
    If you are going to ask about a specific product name or technical term, take care in proper spelling and case. Fixed now, on your behalf. – Basil Bourque Sep 20 '18 at 04:39

2 Answers2

14

You can start by thinking of Hazelcast as a cache; there are features that go beyond that but it's a good starting point. The main advantage is that having an operational in-memory grid can provide much faster access (lower latency) than going to a database or other back-end store. Another advantage is that the clustering means that you can provide access at memory speed to an amount of data that exceeds the largest feasible Java heap or even the physical memory of any single cluster node.

Each node in the cluster manages a subset of the partitioned data. The partitioning scheme is known to all cluster members as well as to clients, so access can be made directly to the node[s] containing the needed data, spreading the I/O and processing load.

Each partition of data also has one or more backups that will be on different nodes, so if a cluster member is lost, no data is lost. Data will be re-partitioned across the remaining nodes, and new backups created where needed.

Mike Yawn
  • 796
  • 3
  • 8
1

It's a clustered data-grid, backed by physical or virtual machines.

The features and use cases probably explain it the best (notice the menu to the left).

or explore the hazelcast content tag, to get an idea which kind of applications it enables.

Martin Zeitler
  • 1
  • 19
  • 155
  • 216
  • I have seen those links. Lets say I have three nodes and two gets failed(machines Turned OFF), then after coming up from where it retrieves that data ? Where that hazel cast's grid resides ? – Andrea Sep 20 '18 at 03:55
  • @Andrea there is a difference in between those editions. https://docs.hazelcast.org/docs/3.9.2/manual/html-single/index.html ...generally speaking, that's the `on-heap store` and this is called resilience. while only the "HD Enterprise Edition" may restore locally, from `hot restart store` and then synchronizes, otherwise from the remaining one node. – Martin Zeitler Sep 20 '18 at 10:14
  • https://db-engines.com/en/system/Cassandra%3BHazelcast%3BRedis this might help understanding, what it is (and what it isn't). – Martin Zeitler Sep 20 '18 at 10:18