Getting Started with Hazelcast

In the current post we shall see how to getting started with hazelcast, its advanced features before getting in deeper.

In the previous posts we learnt how to install, use Hazelcast and access it using Java.

Ways to start a new Hazelcast Instance.
  • Shell Script:

  • Jar File:

  • Java Program

    When we type “help” in the command line, the following output is displayed, if we have look at it we get a brief idea about the operations supported by Hazelcast.

Data structures supported by Hazelcast

Hazelcast is much more powerful than a pure cache. It is an in-memory data grid that supports a number of distributed collections, processors, and features. We can load the data from various sources into differing structures, send messages across the cluster, perform analytical processing on the stored data, take out locks to guard against concurrent activity, and listen to the goings-on inside the workings of the cluster. Most of these implementations correspond to a standard Java collection.

  • Standard utility collections:
    • Map: Key-value pairs
    • List: A collection of objects
    • Set: Non-duplicated collection
    • Queue: Offer/poll FIFO collection
  • Specialized collection:
    • Multi-Map: Key–collection pairs
  • Lock: Cluster wide mutex
  • Topic: Publish and subscribe messaging
  • Concurrency utilities:
    • AtomicNumber: Cluster-wide atomic counter
    • IdGenerator: Cluster-wide unique identifier generation
    • Semaphore: Concurrency limitation
    • CountdownLatch: Concurrent activity gatekeeping
  • Listeners: This notifies the application as things happen
  • Distributed Executor Service
  • MapReduce Functionality
I hope this has been useful for you and I’d like to thank you for reading. If you like this article, please leave a helpful comment and share it with your friends.

Leave a Reply

Your email address will not be published. Required fields are marked *