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 and has the publish permission.
Accessing RocketMQ on the Console to Produce Messages
- Log in to the console.
- Click
in the upper left corner to select a region.
DMS for RocketMQ instances in different regions cannot communicate with each other over an intranet. Select a nearest location for low latency and fast access.
- Click
and choose Middleware > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
- Click a RocketMQ instance to go to the instance details page.
- In the navigation pane, choose Instance > Topics.
- Click Produce Message in the row containing the desired topic. The Produce Message dialog box is displayed.
- Enter the message body, key, and tag (Message Key and Message Tag are optional) and click OK.
When a message "Message sent." is displayed in the upper right corner, the message is sent.
Table 1 Message production parameters Parameter
Description
Message Body
Content of the message to be produced.
The value can contain a maximum of 2,000 characters.
Message Key
If there are spaces, this will be parsed as multiple keys, and cannot be filtered by Message Key in specific message queries.
The value can contain a maximum of 128 characters.
Message Tag
Used as message categories in a topic, and used in produced messages.
The value can contain a maximum of 128 characters.
You can view the sent messages on the Message Query page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot