Use the Kafka Producer step and the ProducerV2 API to publish messages
Push data from ServiceNow to Hermes so that the Kafka consumers can read them.
Before you begin
- Role required: integration_hub_admin
- This page is part of the Stream Connect quick start guide.
- This document shows you how to publish messages through your connection to Hermes. To set up and test your connection, see Set up a secure connection to the Hermes Messaging Service and Testing the connection to Hermes through the ADCv2 gateway.
- The first part of this page shows you how to use the Kafka Producer step in Workflow Studio to publish messages to Hermes. For more information about the step, see Kafka Producer step.
- The second part of this page shows you how to use the ProducerV2 API to publish messages. For more information, see ProducerV2 API.
- To receive all the messages, you need to run two consumers for different datacenters. See Consume test messages from a Hermes topic using the Kafka client for details.
Procedure
-
Start two consumers to receive messages.
-
Publish messages from the instance using a flow step.
-
Publish messages from the instance using a script.