Home
Publishing information
When an application wants to publish some information, it sends a Publish command message to the stream queue at the broker. This command is described in Publish.
The publisher must specify the topic to which the publication applies. If a publication matches several subscriptions for which a subscriber is registered, only one copy of the publication is sent to the subscriber for all matching subscriptions. The publisher can also specify the name of a stream; however, this is not necessary if the message is put to the correct stream queue at the broker.
If the publisher is not registered with the broker for those topics, the broker automatically registers the publisher when it receives this message, unless you tell it not to (see Choosing not to register).
If an application is registered as both a publisher and a subscriber for a topic, it can use an option when publishing to say that it does not want to receive a copy of this publication.
Home