Kafka Event (Write) block

The event_publish_kafka block publishes event data to a Kafka topic as a destination block in a Connect+ dataflow. It connects to a specified Kafka service and writes data to a defined topic using a configured key. The block supports header attribute forwarding to enable traceability across downstream consumers.

When to use this block

Use this block when your dataflow needs to publish messages to a Kafka topic as its final step, for example, forwarding processed transaction events to a downstream consumer.

Prerequisites

Before configuring this block, make sure you have:

  • The name of the target Kafka topic
  • Access to the appropriate Kafka client service

Configuration fields

Field name

Required

Description

Block name

No

A name for the block instance. The name must be alphanumeric. There is no character limit.

Kafka client service to connect to server

Yes

The Kafka service used to connect to the server.
Select Event-notification-kafka or connectplus-kafka service.
Default value: Event-notification-kafka.

Kafka topic

Yes

The name of the Kafka topic to publish events to. For example, transactionAdded.

Kafka key

Yes

The key used when publishing messages to the Kafka topic. For example, ${customerId}.

Headers as Attribute

Yes

Determines which headers are forwarded as attributes to the Kafka message.
Select Traceable Id or All.
Default value: Traceable Id.