DATA FLOW IN PUB/SUB
PUB/SUB
MESSAGE FLOW
The diagram given below
is a look of the components in the Pub/Sub system and how messages flow between
them:
1. A publisher application creates
a topic in the Pub/Sub service and then sends some messages to
the topic. The message consists of a payload and optional attributes that
describe the related payload content.
2. The
service must ensure that published messages are retained on behalf of respective
subscriptions. A published message is retained for a subscription until it is formally
acknowledged by any subscriber which is consuming messages from that
subscription.
3. Pub/Sub
then forwards messages from a topic to all its respective subscriptions individually.
4. A
subscriber receives messages either by Pub/Sub pushing them to that subscriber's
chosen endpoint, or by the subscriber pulling them from the service.
5. The
subscriber then sends an acknowledgement to the Pub/Sub service for each of
received message.
6.
The
service finally removes the acknowledged messages from the subscription's
message queue.
DATA FLOW
Comments
Post a Comment