Re: High latency for Kafka transactions

2020-12-02 Thread Liam Clarke-Hutchinson
__ > From: John Coleman > Sent: Friday, November 13, 2020 4:09 AM > To: users@kafka.apache.org > Subject: High latency for Kafka transactions > > Hi, > > We have very high latency ~1 second when we send a small number of > small messages

Re: High latency for Kafka transactions

2020-12-02 Thread John Coleman
13, 2020 4:09 AM To: users@kafka.apache.org Subject: High latency for Kafka transactions Hi, We have very high latency ~1 second when we send a small number of small messages to Kafka. The whole group of messages is less than 1k. We are thinking better to just send the messages

Re: High latency for Kafka transactions

2020-12-02 Thread John Coleman
Hi, We send small transactions (2 to 3 messages) a few times per second from each of 5 to 10 producers, depending on the consumer partition size. Regards, John On 14/11/20 03:55, "Guozhang Wang" wrote: Hello John, It's a bit hard to reason what's your total producing traffic to the

Re: High latency for Kafka transactions

2020-11-14 Thread Mazen Ezzeddine
On 2020/11/13 09:09:00, John Coleman wrote: > Hi, > > We have very high latency ~1 second when we send a small number of small > messages to Kafka. The whole group of messages is less than 1k. We are > thinking better to just send the messages together as 1 message containing a >

Re: High latency for Kafka transactions

2020-11-13 Thread Gary Russell
to profile the app to see where the time is being spent. [1]: https://kafka.apache.org/documentation/#linger.ms From: John Coleman Sent: Friday, November 13, 2020 4:09 AM To: users@kafka.apache.org Subject: High latency for Kafka transactions Hi, We have very high

Re: High latency for Kafka transactions

2020-11-13 Thread Guozhang Wang
Hello John, It's a bit hard to reason what's your total producing traffic to the Kafka brokers, e.g. how frequently do you send a `whole group of messages`? If it is every 10ms e.g. then your traffic would be 100K per sec, which is pretty large enough with transactions. Guozhang On Fri, Nov

High latency for Kafka transactions

2020-11-13 Thread John Coleman
Hi, We have very high latency ~1 second when we send a small number of small messages to Kafka. The whole group of messages is less than 1k. We are thinking better to just send the messages together as 1 message containing a collection of all the messages. Is there something that we can tweak