All Products
Search
Document Center

ApsaraMQ for Kafka:How can I test message sending?

Last Updated:Dec 02, 2024

This topic describes how to test message sending in the ApsaraMQ for Kafka console.

Quickly test message sending and receiving

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

  2. In the top navigation bar, select the region where the instance that you want to manage resides. On the Instances page, click the name of the instance that you want to manage.

  3. In the left-side navigation pane, click Topics. On the page that appears, click the name of the topic that you want to manage.

  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 parameter to Console.

    1. In the Message Key field, enter the message key. Example: demo.

    2. In the Message Content field, enter the message content. Example: {"key": "test"}.

    3. Configure the Send to Specified Partition parameter to specify whether to send the test message to a specific partition.

      • If you want to send the test message to a specific partition, click Yes and enter the partition ID in the Partition ID field. Example: 0. For information about how to query partition IDs, see View partition status.

      • If you do not want to send the test message to a specific partition, click No.

    4. Click OK.