Skip to main content
Version: 3.0

Kafka Nodes

Produce messages to Kafka topics from a pipeline, with keys, headers and optional partition targeting.

Operations
Produce
Output
Topic, partition and offset

Apache Kafka is a distributed streaming platform widely used for event streaming, log aggregation, and real-time data pipelines. MaestroHub provides a Produce node so you can send messages to Kafka topics within your pipelines.

Configuration Quick Reference​

FieldWhat you chooseDetails
ParametersConnection, Function, Function Parameters, Timeout OverrideSelect the connection profile, function, configure function parameters with expression support, and optionally override timeout.
SettingsDescription, Timeout (seconds), Retry on Timeout, Retry on Fail, On ErrorNode description, maximum execution time, retry behavior on timeout or failure, and error handling strategy. All execution settings default to pipeline-level values.
Kafka Produce node configurationKafka Produce node configuration

Kafka Produce Node

Kafka Produce Node​

Produce messages to Kafka topics with key-based partitioning, custom headers, and dynamic payloads.

Supported Function Types:

Function NamePurposeCommon Use Cases
ProduceSend messages to Kafka topics with key, payload, headers, and optional partition targetingEvent streaming, log forwarding, data pipeline ingestion, inter-service messaging

How It Works​

When the pipeline executes, the Produce node:

  1. Connects to the Kafka cluster using the selected connection profile
  2. Serializes the message with the configured key, payload, and headers
  3. Sends the message to the target topic (with optional partition targeting)
  4. Returns delivery confirmation including partition and offset of the written message, once the record is acknowledged: with the connection's default Acknowledgements (all), by every in-sync replica, through an idempotent producer whose retries never write it twice. See Delivery guarantees

Configuration​

FieldWhat you chooseDetails
ConnectionKafka connection profileSelect a pre-configured Kafka connection from your connection library
FunctionProduce functionChoose a Kafka Produce function that defines the topic, key, payload, and headers
Function ParametersMessage valuesConfigure dynamic values for topic, key, payload, and headers using expressions or constants

For detailed function configuration options including partitioning strategies and header formatting, see the Kafka Produce Function documentation.

Looking for event-driven pipeline triggers?

If you want to automatically start a pipeline when Kafka messages arrive (rather than produce within an already-running pipeline), use the Kafka Trigger Node instead.

Output​

The broker's acknowledgement is delivered under result; execution facts (success, functionId, durationMs, timestamp) under _metadata. Kafka Produce:

ExpressionDescription
$node["Name"].result.topicThe topic produced to
$node["Name"].result.partitionThe partition the broker placed the record in
$node["Name"].result.offsetThe record's offset in that partition
$node["Name"].result.messageSizePayload size in bytes
$node["Name"]._metadata.method, $node["Name"]._metadata.connectionId, $node["Name"]._metadata.protocolThe call's own facts, on every node: the operation, the connection it ran over, kafka