Liferay’s Message Bus is a service level API that components can use to send and receive messages. It provides loose coupling between message producers and consumers. The Message Bus is located in Liferay’s global class loader, making it accessible to every deployed web application. Remote messaging isn’t supported, but messages are sent across a cluster when ClusterLink is enabled.

Here are a few common uses of the Message Bus:

  • Sending search index write events
  • Sending subscription emails
  • Handling messages at scheduler endpoints
  • Running asynchronous processes

You can leverage the Message Bus to send messages between and within your plugins.

As you read through the Message Bus tutorials, you’ll learn about synchronous and asynchronous messaging, serial vs. in-parallel message dispatching, and how to style message formats.

Before you get into those topics, you should first learn about the Message Bus system’s architecture.

Related Topics

Service Builder and Services

Developing with the Plugins SDK

Developing Plugins with Liferay IDE

Developing with Maven

Liferay’s Message Bus System

Liferay’s Message Bus system is a great way to handle communication both between and within your applications. However, before you get started with Message Bus, you should know the basics of how...

Read More

Implementing Synchronous Messaging

Synchronous messaging occurs when the sender blocks, waiting for a response from the recipient. During this block, the sender cannot process any additional information. This means that the thread...

Read More

Asynchronous Messaging with Callbacks

Asynchronous messaging consists of sending a message and then continuing with processing. The sender doesn’t block and wait for an immediate response. This allows the sender to continue with other...

Read More

Asynchronous Send and Forget Messaging

Asynchronous messaging occurs when the sender sends a message and then continues processing. In the send and forget model of asynchronous messaging, the sender’s messages don’t contain any response...

Read More
0 (0 Votes)
Resolving Recycling Conflicts Previous