Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

You can use the Apache Kafka Producer adapter to write a message to a Kafka topic.

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamekafka_message
PageWithExcerptINTERNAL:_designer_excerpts
shouldDisplayInlineCommentsInIncludesfalse

Write a Message

Using the produce operation of the Apache Kafka adapter, you can write a message to a Kafka topic.

Multiexcerpt include
MultiExcerptNameproduce
PageWithExcerptApache Kafka Producer
shouldDisplayInlineCommentsInIncludesfalse

producerRecord is a complex structure that defines the message and target.The topic you want to write the message to is the only mandatory parameter.

Multiexcerpt include
MultiExcerptNameProducerRecord
PageWithExcerptApache Kafka Producer
shouldDisplayInlineCommentsInIncludesfalse

The Kafka Producer returns some meta data about the processing of the message.

Multiexcerpt include
MultiExcerptNameRecordMetaData
PageWithExcerptApache Kafka Producer
shouldDisplayInlineCommentsInIncludesfalse

Transaction Handling

The xUML Runtime handles Apache Kafka Producer calls like is specified in the Runtime transaction concept. All producer calls within a session are wrapped into a dedicated transaction with a random unique transaction ID. These transactions can be rolled back until they have been committed.
You cannot set a custom transaction ID (transactional.id), therefore there will be no fencing.

Panel
titleOn this Page:
Table of Contents
Panel
titleRelated Pages:

Otp
Floatingfalse

rprde
Panel
titleRelated Documentation: