Messaging

See Hazelcast in Action

Master intelligent applications with Hazelcast unified real-time stream processing platform.

Introduction

Hazelcast Platform provides real-time, scalable messaging for your large-scale applications

Hazelcast Platform can be used as a fast and lightweight messaging system that lets applications communicate in real-time at high speed. You can write to Hazelcast Platform in a publish-subscribe paradigm, which means your applications can write (“publish”) to specific channels, called “topics,” and then one or more subscribers can read the messages from that topic.

Hazelcast Platform processes all data in memory, so you are never speed-constrained by slow disk accesses. Also, Hazelcast Platform is lightweight, as it’s delivered in a compact JAR file, allowing you to embed it in any of your applications.

The Hazelcast Approach to Messaging

Messaging in Hazelcast Platform is inspired by JMS topics, but is scalable and extremely fast. This is important for large-scale applications that need the highest throughput and lowest latency.

When an event occurs, your applications immediately publish messages to topics, which can then be read from any number of subscribers. Hazelcast Platform is elastic, horizontally scalable, and fault-tolerant, so organizations can publish any number of messages with low latency. You can publish messages to Hazelcast Platform, and subscribe to a Hazelcast topic, with just a few lines of code.

This type of messaging implementation is good for preserving the order and timing of messages because much of the logic around order is built into these systems. You can have multiple consumers for any given message channel, so you can perform a lot of processing in parallel to increase performance.

Messaging in a Microservices Environment

Messaging plays a key role in microservices architectures, where compact, purpose-built applications are almost constantly sending events and small chunks of data to one another. With Hazelcast Platform as the foundation for messaging, developers have an easy-to-use platform to manage the logic of inter-service communications, and they benefit from simplified coding. A set of microservices can look like a data pipeline, where each microservice receives a message from the previous microservice in the workflow, does some processing, then passes the data to the next microservice. The message passing is done via Hazelcast, and with the use of separate topics, each microservice knows exactly where to get input data, and where to send output data.

The Hazelcast Advantage

High Speed, In-Memory Pub/Sub Messaging

Developers find it easy to leverage Hazelcast Platform to build out publish/subscribe messaging pipelines, even at scale with low latency. Applications can subscribe to multiple topics, and multiple applications may publish to the same topic. Hazelcast Platform orders messages, so subscribers process messages in the order they are actually published.

If you are familiar with JMS topics, it will be extremely simple to come up to speed with Hazelcast Platform for real-time scalable messaging.