Home

 

 

How does it work?

 

+

Search Tips   |   Advanced Search

 

Publishers, subscribers, and brokers communicate with each other using command messages. These messages are used to do the following things:

Publisher and broker

The following communications take place between publishers and brokers:

  1. Optional. A publisher can register its intention to publish information about certain topics

  2. A publisher sends publication messages to the broker, containing the publication data (or referring to it). The messages can be forwarded directly to the subscribers, or, in the case of retained publications, be held at the broker until requested by a subscriber.

  3. A publisher can send a message to the broker requesting that a retained publication held at the broker be deleted.

  4. A publisher can deregister with the broker when it has finished sending messages about a certain topic.

Subscriber and broker

The following communications take place between subscribers and brokers:

  1. A subscriber registers with a broker, specifying the topics that it is interested in.

  2. The broker sends to the subscriber subsequent publications that match the topics specified. Alternatively, the subscriber can request retained publications held at the broker.

  3. The subscriber can deregister with the broker for certain topics when it is no longer interested in them.

Broker and broker

The following communications take place between brokers:

  1. Brokers can exchange subscription registrations and deregistrations.

  2. Brokers can exchange publications, and requests to delete publications.

  3. Brokers can exchange information about themselves.

 

See also

Write subscriber applications

 

Home