Send a test message from the ApsaraMQ for Kafka console to verify that your instance and topic are configured correctly.
Prerequisites
Before you begin, ensure that you have:
An ApsaraMQ for Kafka instance
At least one topic created in the instance
(Optional) The partition ID of the target partition, if you want to send to a specific partition. For more information, see View partition status
Send a test message from the console
Log in to the ApsaraMQ for Kafka console. In the left-side navigation pane, click Instances.
In the top navigation bar, select the region where your instance resides. On the Instances page, click the instance name.
In the left-side navigation pane, click Topics. Click the name of the target topic.
In the upper-right corner of the Topic Details page, click Send Message.
In the Start to Send and Consume Message panel, set the Sending Method to Console and configure the following fields:
Field Description Example Message Key The identifier for the test message. demoMessage Content The message body. You can use any text format. {"key": "test"}Send to Specified Partition Whether to send the message to a specific partition. Select Yes and enter the Partition ID, or select No if you do not want to send to a specific partition. 0Click OK.