Queue vs Pub/Sub: one message, one consumer vs one message, every subscriber
_jaydeepkarale · x · 2026-09-04
A concise explainer on the difference between queues and pub/sub: a queue delivers each message to one consumer, which breaks when payment, email, and inventory services all need the same event. Pub/Sub sends one message to every subscriber via a topic, with the publisher unaware of listeners. Examples: Kafka, SNS, Google Pub/Sub, Redis Pub/Sub.
More from coding & agent
- Yoav Goldberg floats 'harness distillation' to explain Claude Code's 80% shorter prompt — yoavgo · 2026-09-04
- Dev decries chaos of AGENTS.md vs CLAUDE.md vs .cursor: unify agent configs — DanielLockyer · 2026-09-04
- Grok now has native computer access built into its apps, no setup needed — XFreeze · 2026-09-04
- Allowed MCP tools can still hijack the next allowed call — the second-hop injection problem — Future_AGI · 2026-09-04
- Skybridge 2.0 ships stateless MCP app framework rebuild with LLM-checked Evals beta — harijoe_ · 2026-09-04
- Gemini-based agentic video understanding experiment goes viral, repo coming soon — MarioLucic_ · 2026-09-04