Kafka Producer
Apache Kafka producer activity sends a record to a specified topic or channel in the Kafka cluster.
Settings
On the Settings tab, you can define the Apache Kafka connection and its details as given in the following table:
Condition Applicable | Field | Description |
---|---|---|
N/A | Apache Kafka Connection | Select the connection that you want to use from the dropdown list. |
N/A | Acks Mode | Select one of the following acknowledgment modes from the dropdown list:
|
Applicable only when All is selected in the Ack Mode field. | Ack Timeout | The amount of waiting time in milliseconds to receive confirmation. |
N/A | Partitioner |
Select one of the following partitioners from the dropdown list:
Note: If the Manual mode is selected, then the partition field is mandatory on the Input tab.
|
N/A | Compression Type | Select a compression type: None, GZIP, or LZ4. |
N/A | Value Serializer | Select the type of record value to be sent:
|
Applicable only when Avro is selected in the Value Serializer field. | Subject |
A list of all registered subjects in your Schema Registry. A subject refers to the name under which a schema is registered. Select the subject to be used. |
Applicable only when Avro is selected in the Value Serializer field. | Version | Version of the subject (registered name of schema) registered.
Select the version of the subject to be used. |
N/A | Max Request Size | The maximum size of buffered records that can be sent in one request.
Default value: 1048576 bytes |
N/A | Max Messages | The maximum number of records that can be sent in a single broker request. |
N/A | Frequency | The frequency of sending buffered records in milliseconds.
Default value: 1000 |
Input Settings
Condition Applicable | Field | Description |
---|---|---|
N/A | Headers |
Header record to be sent. Only the String datatype value is supported. Note: Headers are supported in the
Apache Kafka version 0.11.0 and later.
|
Applicable only when JSON is selected in the Value Serializer field on the Settings tab. | Schema for JSON value | The JSON schema for the Apache Kafka record value. |
Applicable only when Avro is selected in the Value Serializer field on the Settings tab. | Schema for Avro Value |
The Avro schema for the Apache Kafka record value. Depending on the Subject and Version selected, the schema is displayed here.
Note: This field is read-only if
Use Schema Registry in the
Apache Kafka Client Configuration dialog is set to
True. Otherwise, you can provide the schema using this editor.
|
Input
Condition Applicable | Field | Description |
---|---|---|
N/A | topic | Name of the topic. |
N/A | partition | Existing partition number where the record is to be sent. |
N/A | key | Optional key value. |
Applicable only when String is selected in the Value Serializer field. | stringValue | String value to be sent. |
Applicable only when JSON is selected in the Value Serializer field. | jsonValue | Data structure based on the JSON schema that you have configured on the Input Settings tab. |
Applicable only when Avro is selected in the Value Serializer field. | avroData | Data structure based on the Avro schema that you have configured on the Input Settings tab. |
N/A | headers | Header value to be sent. |
Output
Condition Applicable | Field | Description |
---|---|---|
N/A | topic | Name of the topic. |
N/A | partition | Partition number of the record to send. |
N/A | offset | Offset of the record. |
Loop
For information on the Loop tab, see the Using the Loop Feature in an Activity section in the TIBCO Flogo® app documentation.