Updated on 2024-09-20 GMT+08:00

Accessing RocketMQ on the Console

This section describes how to produce a specified message for a RocketMQ instance to verify service logic.

Prerequisites

  • A RocketMQ instance is in the Running state.
  • A topic has been created.

Accessing RocketMQ on the Console to Produce Messages

  1. Log in to the console.
  2. Click in the upper left corner to select a region.

    Select the region where your RocketMQ instance is located.

  3. Click and choose Middleware > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
  4. Click a RocketMQ instance to go to the instance details page.
  5. In the navigation pane, choose Topics.
  6. Click Produce Message in the row containing the desired topic. The Produce Message dialog box is displayed.
  7. Enter the message body, key, and tag (Message Key and Message Tag are optional) and click OK.

    • Message Body: The message content. The value can contain a maximum of 2000 characters.
    • (Optional) Message Key: The value can contain a maximum of 128 characters. If there are spaces, this will be parsed as multiple keys, and cannot be filtered by Message Key in specific message queries.
    • (Optional) Message Tag: used as message categories in a topic, and used in produced messages. The value can contain a maximum of 128 characters.

    When "Message sent." is displayed in the upper right corner, the message is sent successfully. You can view the message on the Message Query page.