Transaction performance #4325
Unanswered
jonathangenlambda
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I plan to use Kafka Transactions via the Haskell library
hw-kafka-client
, that builds onlibrdkafka
, using the latest version 2.1.1. I conducted performance measurements for 2 different scenarios, running on a simple local Kafka environment, via docker compose, with 1 broker and 1 parition per topic. The way I measure is to count the throughput for each second (reset after 1000 milliseconds):I know that processing single messages in a transaction is not recommended, but still I am especially surprised by the low performance of the 2nd scenario, as didn't expect adding a transactional consume to drop the performance that severely.
I am wondering, why the performance of transactions is so low and what I could do to increase it? It might be a quirk of the Haskell
hw-kafka-client
library, but this is hard to tell - are there any reliable performance measurements on using transactions for single message processing usinglibrdkafka
?Beta Was this translation helpful? Give feedback.
All reactions