message queue - yibinericxia/documents GitHub Wiki

Message Queue

Message queue is quite straightforward communication which attempt to distribute the messages to one or more consumers from the producer. While many consumers may be active, a message in a queue is delivered to a single consumer and then removed forever. A backup mechanism like batch layer could be used to put the message back into the queue for reprocessing.

Imperative programming

Usage

Message queue is often used for managing tasks and workloads where each task needs to be processed only once.

  1. Message queues only deliver each message once, to a single consumer
  2. Message queues process on a first-come, first-serve basis
  3. Message queues may not deliver in the same order that messages are queued.

ActiveMQ

RabbitMQ

⚠️ **GitHub.com Fallback** ⚠️