Skip to content

Publish-subscribe

Publish-subscribe distributes published messages to interested subscribers without requiring the sender to contact each one directly.

Also known asPub/Sub
APIs and data contracts

Multiple subscriptions receive the same notification

Publish-subscribe, or Pub/Sub, is a messaging pattern. A publisher publishes a message; an intermediary distributes it to matching subscriptions. In a fictional example, both the catalogue and search index must react after product approval. The applications therefore have separate subscriptions.

This differs from multiple workers on the same work queue: they normally share tasks rather than each performing every task. Check whether every subscriber required by the business has processed successfully. Catalogue success does not confirm the search index. Retention, redelivery and reading past messages are product features and settings, not blanket Pub/Sub guarantees.

Sources