Skip to content

Kafka - transactional.id for horizontally scalable consume-transform-produce #2821

Answered by ozangunalp
kerkhofsd asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the very relevant question. That is something we need to document more.

First of all, the Kafka connector EOP support is already on KIP-447.
So you do not need a transactional.id suffixed with the partition id.

Reactive Messaging sets up transactional producer and calls initTransactions when it sees a transactional.id set. And in Quarkus when a KafkaTransactions is used, the transactional.id for that channel configuration will have a default value of ${quarkus.application.name}-${channelName}, which is of course configurable.

For horizontal scaling, this needs to be unique between your processor instances, to avoid fencing. However, it does not have to be the same between insta…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kerkhofsd
Comment options

@ozangunalp
Comment options

@kerkhofsd
Comment options

Answer selected by kerkhofsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2820 on November 14, 2024 09:32.