Skip to catalogue

pub/sub

Publish/subscribe distributes events to interested subscribers.

Use this when Several independent consumers need to react to the same event.

without the term

“When an order is placed, the email service, analytics, and inventory all need to know. Right now the order code calls each one directly. Can we broadcast an event they listen to?”

with the term · How do you ask a model for pub/sub?

Choose pub/sub delivery semantics for this event. Test a disconnected subscriber, reconnect, and duplicates against the required retention policy.

XBlueskyLinkedIn

What is pub/sub?

Publishers send events to a topic, and every subscriber gets its own copy. Whether a disconnected subscriber misses events, and whether duplicates arrive, depends on the system.

Why does pub/sub matter when vibe coding?

A broadcast channel may lose events while a subscriber is disconnected.

How do you do pub/sub?

Define which consumers require durable delivery and how they handle repeated events.

What goes wrong with pub/sub?

Assuming pub/sub or a work queue guarantees exactly-once side effects.

adjacent

reviewed

report a correction