Message Queue (EN)

Technology

Service for asynchronous message transmission between system components

Definition

A message queue is a service that enables asynchronous message transmission between system components. It buffers messages that are sent by one service and intended to be received by another service. By decoupling sender and receiver, it enables robust and scalable communication in distributed systems.

Architecture

flowchart LR     Producer[Producer] -->|sendet Nachricht| MQ[Message Queue]     MQ -->|verarbeitet Nachricht| Consumer1[Consumer 1]     MQ -->|verarbeitet Nachricht| Consumer2[Consumer 2]     MQ -->|verarbeitet Nachricht| Consumer3[Consumer 3]          style MQ fill:#f9f,stroke:#333,stroke-width:4px 

Types

  • Point-to-Point: Each message is processed by only one consumer
  • Publish/Subscribe: Messages are distributed to multiple subscribers
  • FIFO (First-In-First-Out):strong> Messages are processed in the order of their arrival

Examples

  • RabbitMQ
  • Apache Kafka
  • Amazon SQS
  • Redis Streams
Quelle: AI Generated