Produce test messages to a Hermes topic using the Kafka client
Produce test messages to a Hermes topic by configuring a producer client.
Before you begin
- Secure your Kafka topics by generating a ServiceNow® instance-signed certificate and keystore. You must provide truststore and keystore details when you configure the Hermes producer. See Set up a secure connection to the Hermes Messaging Service.
- Download and install Apache Kafka. See Prepare your Apache Kafka client environment.
- Create a test topic to store the test messages that you produce. For details, see Create a test topic in Hermes using the Kafka client.
Role required: admin
About this task
The following steps describe how to configure a producer client and send test messages to the Hermes Kafka cluster. Refer to these steps when you're ready to produce messages to Hermes for business or production purposes.
Procedure
-
Navigate to the config directory where you extracted Kafka.
- For example, on Unix:
cd /home/user/Software/kafka/config - For example, on Windows:
cd C:\Software\kafka\config
- For example, on Unix:
-
Configure a producer.
-
Produce a test topic.
Result
Test messages are produced to the test topic in the Hermes Kafka cluster.
What to do next
Consume test messages from a Hermes topic using the Kafka client