This Pre-Built Automation bundle contains example use cases that are applicable when Itential Automation Platform is integrated with Apache Kafka using the kafka-node npm library. Because every environment is different, these use cases are fully functioning examples that can be easily modified to operate in your specific environment. These workflows have been written with modularity in mind to make them easy to understand and simple to modify to suit your needs.
Name | Overview |
---|---|
Consume Message - Kafka - Library - Example |
This example use case consumes Kafka messages on a given topic and triggers a job from an IAP Operations Manager Event Trigger along with passing message data to that job's context. The Apache - Kafka - Library Pre-Built provides a modular worfklow that writes to a topic in Apache which then writes to a message queue in IAP's Event System. In order to subscribe to the relevant event topic, one must configure the adapter-kafka service configuration's topic properties correctly. The following topic properties is an example of setting the adapter-kafka service configuration so that the adapter subscribes to the Kafka event topic "topics": [
{
"name": "kafka-example-topic",
"always": true,
"subscriberInfo": [
{
"subname": "default",
"filters": [],
"rabbit": "iap-example-topic",
"throttle": {}
}
]
}
] Note when a new topic is set in the service configuration, a new topic is written to file in the adapter-kafka directory in the file On setting the adapter-kafka service configuration as shown above, navigate to the To then produce a message to the topic set, run the modular workflow from the Apache - Kafka - Library Pre-Built {
"adapterId": "kafka",
"topic": "kafka-example-topic",
"messages": [
"This is a message sent to topic kafka-example-topic and will then be picked up eventually by IAP's Event System in the topic iap-example-topic"
],
"suppressMessage": true
} Upon the Note the Trigger "topics": [
{
"name": "kafka-example-topic",
"always": true,
"subscriberInfo": [
{
"subname": "default",
"filters": [],
"rabbit": "kafka",
"throttle": {}
}
]
}
] |
Name | OS Version | API Version |
---|---|---|
Apache Kafka |
Name | Version | Configuration Notes |
---|---|---|
adapter-kafka | ^0.5.0 |