Primitive

Queue

A buffer that decouples producers from consumers by holding messages until they are processed exactly/at-least once.

Description

The messaging services (AWS SQS, GCP Pub/Sub, Azure Queue Storage / Service Bus) all buffer work to decouple producers from consumers, but they sit at different points on the simple-to-rich spectrum. SQS and Azure Queue Storage are simple at-least-once queues, while Azure Service Bus adds enterprise features like FIFO sessions, transactions, and topics; GCP Pub/Sub blends queue and pub/sub semantics in one service. They differ in ordering and exactly-once guarantees, dead-letter handling, and delivery model. To the best of our knowledge all provide reliable buffering; choose by the ordering and delivery semantics your workflow requires.

Capabilities

  • Decouple producers and consumers
  • Buffer load spikes
  • At-least-once delivery
  • Dead-letter handling

Vendor implementations

Icon-Architecture/64/Arch_Amazon-Simple-Notification-Service_64
AWS SNS
Icon-Architecture/32/Arch_Amazon-Simple-Queue-Service_32
AWS SQS
AZ Service Bus

Related primitives