- Print
- DarkLight
- PDF
Creating a Kafka Listen Adaptor
The Kafka Listen Adaptor allows a Graph to respond to new messages as they are published to a Kafka Topic.
In order to create a Kafka Listen Adaptor, you must first create a Kafka Connection.
To create the Kafka Listen to Adaptor on any graph, click on the “Graph Options” button in the top left-hand side of the Graph Editor, then select “Add Listener”.
This will direct you to the “Listener Editor” modal. Select the Kafka listener type from the “Listener Type” dropdown.
- Select a connection from the “Connection” dropdown.
The “Number of Consumers” is configurable, but each Kafka Broker can only have one active Consumer per Topic.
For Example:
If a Kafka Cluster has a Topic shared across 3 Brokers, only 3 Kafka Consumers will be active, even if “Number of Consumers” is set to 5.
Messages the Kafka Listener receives will be returned to the Records Selected output destination in JSON serialized format.
Validation Warnings
New Notification : All the warning notifications will be displayed in the Notification Panel at the right side of the page.
Notification | Note |
---|---|
Kafka Listener must have an output. | It is necessary to select an output location for the Kafka Adaptor. |
Kafka Listener must have a connection set. | No connection has been selected. |