Inspirel banner

Programming Distributed Systems with YAMI4

7.2.3 Publish

The ``publish'' command allows data producers to send a new value and associate it with a list of tags. In order to execute this command the publisher has to send the message with following structure:

Object name: comma-separated list of tags.

Message name: "publish".

Message content: arbitrary.

This is a one-way message and there is no reply.

The broker republishes the messages by sending the update message to each matching subscriber. The update message has the following structure:

Object name: as requested by the subscriber (see the description of "subscribe" command).

Message name: "update " followed by a list of tags, as used by the publisher.

Message content: as used by the publisher.