Skip to main content

KAFKA.PUBLISH

Publishes either a message or an arbitrary value using a specified Producer and topic. To reference a message from the outbox use the outbox function and to reference a message from the inbox use INBOX. You can use the Function Wizard for this function.

Syntax

=KAFKA.PUBLISH(Producer, Message, Topic)

Arguments

NameDescription
ProducerProducer to use for publishing.
MessageEither an existing message from the outbox a JSON or a primitive value to publish.
TopicTopic the message is published to.

Return Value

TRUE, if no error.

Examples

FunctionResultComment
=KAFKA.PUBLISH(|Kafka Producer, "Message", "test")TRUEThis publishes the string value "Message" using the "Kafka Producer" to the topic "test"