Kafka Connector Guide > Kafka Connections and Processes > Kafka Event Target Properties
  

Kafka Event Target Properties

When you create a Kafka event target, you create a Kafka producer to write Kafka messages. You can use each Kafka event target in a process that writes Kafka messages.
For each Kafka connection that you create, you can include one or more event targets that specify operations for writing messages or when the event target is called from a process. For example, you might define an event target that reads from a process object and writes to a Kafka topic.
When you run a Kafka connection on the Cloud Server, the Kafka producer can write a maximum of 5 MB Kafka messages.
To create event targets for a Kafka connection, click Add Event Target on the Event Targets tab. Select the event target type as Kafka Producer.
Note: If the content format specified in the event source of the Kafka connection does not match what the producer sends, the consumer process won't get triggered. You can see the error details in the Catalina logs.
The following table describes the basic event target properties that you can configure:
Property
Description
Name
Required. The event target name that appears in the Process Designer. The name must be unique for the connection.
Description
Optional. A description for the Kafka event target that appears in the Process Designer.
The following table describes the Kafka event target properties that you can configure:
Event Target Property
Description
Topic
Required. The name of the Kafka topic to which you want to write messages.
Group Id
Required. This field is reserved for future use. However, you must enter a value in this field because it is a required field. Kafka Connector ignores the value that you enter.
Content Format
Required. The format in which you want to write the messages.
Select one of the following options:
  • - TEXT
  • - XML
  • - JSON
Default is TEXT.
Other Attributes
Optional. A list of additional Apache Camel configuration properties for the Kafka producer.
Specify the properties in key-value pairs. Separate multiple properties with an ampersand character (&) without any space.
For example, enter the following phrase to group records into fewer requests whenever multiple records are being sent to the same partition and the size of the TCP receive buffer to use when reading data:
batchSize=10000&receiveBufferBytes=60000
When you configure producer-specific connection properties in both the Event Targets tab and the Properties tab, the connection properties in the Event Targets tab take precedence.
For more information about the properties that you can specify, see the Apache Camel documentation.