Kafka SendMessage Activity
The Kafka SendMessage activity is used to send or publish messages to consumers through Kafka brokers.
General
In the General tab, you can specify the required parameters before you use this activity. The General tab contains the following fields:
Advanced
Specify the Batch Size, Client ID, Linger, Max Request Size, and Properties.
Field | Literal Value/ Module Property? | Description |
---|---|---|
Batch Size | None | Records are batched together by producer whenever multiple records are sent to the same partition. No attempt is made to batch the records larger than this size.
The default value is 16384. |
Client ID | Yes | A String client ID is passed to the server while making the requests to track the source of the requests. |
Linger | Yes | You can set linger.ms to something greater than 0 to instruct the producer to wait up to that number of milliseconds before sending a request in hope that more records arrive to fill up the same batch. The default behavior is to send messages immediately even if there is additional space in the buffer. |
Max Request Size | Yes | Limits the number of record batches the producer sends in a single request to avoid sending huge requests.
The default value is 1048576. |
Properties | None | Provide the properties name and value for the producer. |
Note: Kafka plug-in supports
Fault Tolerance. In case of any errors, you can use
Properties to add the correct name and value.
Input
The following table describes the fields in the Input tab of the SendMessage activity.
Output
The following table describes the fields in the Output tab of the SendMessage activity.
Output Item | Data Type | Description |
---|---|---|
KafkaSendMessageOutput | complex | The complete output of the SendMessage activity. |
result | complex | Information about the content of the sent and failed messages. |
status | string | Status of the message sent by a producer. |
SendSuccess | complex | Information about the content of the sent message. |
topic | string | The topic name for publishing the message. |
offset | number | The sequence ID number assigned to each record within a partition. |
Partition | number | The sequence ID of the partition to which a record is sent within a topic. |
SendFailed | complex | Information about the content of the failed message. |
errorCode | string | Displays the error code. |
errorMessage | string | Displays the error message. |
Copyright © Cloud Software Group, Inc. All rights reserved.