Multiple Message Types

There are six message types within Diffusion:

  • Broadcast message
  • Exclusive Broadcast message
  • Group Broadcast message
  • Private message
  • Priority message
  • Client message

Broadcast message

A broadcast message is the most common message type. A broadcast message is sent to all the clients on a given topic.

Exclusive Broadcast message

An exclusive broadcast message is sent to all clients except for one on a given topic. For example, should a client publish a message to Diffusion for general broadcast there is little point sending this back to the sender.

Group Broadcast message

A group broadcast message is a message sent to a given group of clients on a given topic.

Private message

Private message is a message sent to one client on a given topic.

Priority message

Priority message allows you to publish a message, which will jump to the front of each client’s queue. For example, you may want to send a broadcast message to all the clients to inform them that the application or business may be temporarily closing or shutting down and finish off what they are doing by a given time. You may want to warn a client that their roundtrip/connectivity is very poor, the high water mark in their queue has been broken and it is worth their while contacting their local support team.

Diffusion, priority messages

Client message

A message sent from the client down a given topic to the Diffusion server. This message can then either be served as a request to your application server (i.e. place an order, logon etc.) or published to other connected clients (i.e. a forum, twitter etc.).