Skip to content
Everything *[NYC] 2026: see what we announced. →

Publish-subscribe definition

Publish-subscribe (pub/sub) is a messaging pattern in which senders, called publishers, emit messages to a named topic or channel instead of to specific recipients, and receivers, called subscribers, register interest in that topic and are delivered every matching message. An intermediary broker handles routing, so publishers and subscribers never need to know about each other.


A diagram explaining Publish-subscribe in terms of related concepts.

How does publish-subscribe messaging work?

What is the difference between publish-subscribe and a message queue?

What is publish-subscribe used for?

What are the delivery guarantees in publish-subscribe?

What are the trade-offs of publish-subscribe?

Unlock New Possibilities with Sanity

With publish-subscribe under your belt, it's time to see what Sanity can do for you. Explore our features and tools to take your content to the next level.

Last updated: