Updated on 2024-11-27 GMT+08:00

Process of Using RabbitMQ

Based on the open-source RabbitMQ, Distributed Message Service (DMS) for RabbitMQ provides messaging services with rich messaging features, flexible routing, alarms, monitoring, and high availability functions. It is applicable to flash sales, flow control, and system decoupling scenarios.

The following figure shows the process of using a RabbitMQ instance to produce and consume messages.

Figure 1 Process of using RabbitMQ
  1. Creating an IAM User and Granting DMS for RabbitMQ Permissions

    Create IAM users and grant them only the DMS for RabbitMQ permissions required to perform a given task based on their job responsibilities.

  2. Buying a RabbitMQ Instance

    RabbitMQ instances are tenant-exclusive, and physically isolated in deployment.

  3. Creating a RabbitMQ Virtual Host

    To connect a producer or consumer to a RabbitMQ instance, you must specify a virtual host.

  4. Creating a RabbitMQ Exchange

    Producers send messages to exchanges first, rather than directly to queues. Exchanges route messages to queues based on routing keys.

  5. Creating a RabbitMQ Queue

    Queues store messages. Each message is sent to one or multiple queues.

  6. Binding a RabbitMQ Queue

    Exchanges route messages to queues based on routing keys.

  7. Accessing a RabbitMQ Instance

    The client access RabbitMQ instances over a private or public network, and produces and consumes messages.