All Products
Search
Document Center

ApsaraMQ for Kafka:Test message sending

Last Updated:Mar 11, 2026

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

  1. Log in to the ApsaraMQ for Kafka console. In the left-side navigation pane, click Instances.

  2. In the top navigation bar, select the region where your instance resides. On the Instances page, click the instance name.

  3. In the left-side navigation pane, click Topics. Click the name of the target topic.

  4. In the upper-right corner of the Topic Details page, click Send Message.

  5. In the Start to Send and Consume Message panel, set the Sending Method to Console and configure the following fields:

    FieldDescriptionExample
    Message KeyThe identifier for the test message.demo
    Message ContentThe message body. You can use any text format.{"key": "test"}
    Send to Specified PartitionWhether 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.0
  6. Click OK.