Skip to main content
Version: Streamsheets 2.5

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

TRUE, if no error.

Examples

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