Back to Glossary
ArchitectureIntermediate

What is Pub/Sub (Publish-Subscribe)?

A messaging pattern where senders publish messages to a topic and any number of subscribers receive them.

Why It Matters

Pub/sub decouples services so publishers do not need to know who receives their messages, making systems more flexible.

Real-World Example

A payment service publishes an 'order paid' event, and the shipping, email, and analytics services all receive it independently.

“Understanding terms like Pub/Sub (Publish-Subscribe) matters because it helps you have better conversations with developers and make smarter decisions about your software. You do not need to be technical. You just need to know enough to ask the right questions.”

Callum Holt, Founder, 13Labs

From definition to deployment

Knowing the term is step one. Using it in something real is the rest.