GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Products
  • Platform
  • Management Center
  • Operator
  • Cloud
  • CLC
  • Tutorials
  • 6.0-SNAPSHOT
  • 5.6
  • 5.5
  • 5.4
  • 5.3
  • Archives
  • Try Hazelcast

This view

  • Original page
  • New address

GeezerVison is showing docs.hazelcast.com — Distributed Map | Hazelcast Documentation

Version: 5.7

Distributed maps, also known as maps or IMaps, are key-value pairs that are partitioned across a cluster. Use maps to distribute data across a cluster and make it easy to scale your applications while protecting data against member failures.

Distributed maps store values that you can access, using a unique key. These values can be primitives, serialized objects, or JSON values. In the following example, the map stores the names of capital cities as simple strings. The key is an incrementing integer to make sure that each entry is unique.

1. Tokyo
2. Paris
3. London
4. Ankara
5. Berlin

How Map Entries are Distributed​

Hazelcast uses the keys to distribute map entries across the cluster. Each member in a cluster stores an almost equal number of entries. For example, if you have a map with 1000 entries on one member, then you start a second member, each member will store 500 entries. To learn more about how data is partitioned in a cluster, see Data Partitioning and Replication.

What Makes Maps Fault Tolerant​

By default, all maps are backed up by one other member to avoid data loss. If a member goes down, the members holding the backup data take over. Backup copies are then redistributed across remaining cluster members.

Availability vs Consistency​

In terms of the CAP theorem, distributed maps are designed to ensure that data is available rather than consistent. However, you can configure maps to reduce the chances of data becoming stale.

Next Steps​

Find out how to configure maps. You can then create a map that inherits your configuration.

  • How Map Entries are Distributed
  • What Makes Maps Fault Tolerant
  • Availability vs Consistency
  • Next Steps
Edit this page
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.