Kafka ReceiveMessage Activity
Kafka ReceiveMessage activity is an event source activity which can be configured as a process starter in any TIBCO BusinessWorks process. It starts the process execution on receiving a Kafka message event.
General
In the General tab, specify the required parameters before using this activity. The General tab has the following fields:
Field | Literal Value/ Process Property/ Module Property? | Description |
---|---|---|
Name | None | The name to be displayed as the label for the activity in the process. |
Kafka Connection | Yes | The Kafka connection resource for communicating with a Kafka server instance. |
Group Id | Yes | The group ID for the consumer group. |
Topic Names | Yes | The topic name where Kafka cluster stores streams of record. |
Assign Custom Partition | None | This is a check box to select if Partition ID needs to be entered. You can select the check box to override Kafka's default partition assignment behavior. |
Partition ID | Yes | Sequence ID of the custom partition to which the message is sent. Default is 0. |
Key Deserializer | Yes | Class for the key that implements the serializer interface. |
Value Deserializer | Yes | Value for the serializer interface. |
Fetch Timeout | Yes | Specifies the maximum time in milliseconds to get the metadata about the topic before a timeout occurs.
The default value is 1000. |
Fetch Min Bytes | Yes | The minimum amount of data that the server would send on receiving a fetch request. The default setting of 1 byte means that fetch requests are answered as soon as a single byte of data is available or the fetch request times out waiting for data to arrive. |
Fetch Max Wait | Yes | The maximum amount of time that the server would block before answering a fetch request if there is not sufficient data to immediately satisfy the requirement given by
fetch.min.bytes.
The default value is 500. |
Heartbeat Interval | Yes | Time in milliseconds between heartbeats to the consumer. Heartbeats are used to make sure that the consumer's session stays active and to facilitate rebalancing and information when consumers join or leave a group.
The default value is 3000. |
Session Timeout | Yes | The consumer sends periodic heartbeats to server indicating about its liveness to the broker. If no heartbeats are received by a broker before the expiration of this session timeout, the broker removes this consumer from the group and initiates a rebalance.
The default value is 30000. |
Advanced
The following table describes the Advanced tab of the ReceiveMessage activity.
Conversation
You can initiate the conversation here. Click the Add New Conversation button to initiate multiple conversations.
Output
The following table describes the fields in the Output tab.
Field | Type | Description |
---|---|---|
KafkaReceiverMessageOutput | complex | The complete output for the ReceiveMessage activity. |
topic | string | The topic name. |
Partition | number | The sequence ID of the partition. |
offset | number | The sequence ID assigned to each record within the partition. |
Key | String | Specified key of the incoming record. |
Message | String | Message received through Kafka. |