lhotari commented on issue #22709:
URL: https://github.com/apache/pulsar/issues/22709#issuecomment-2112409431

   > .batchingMaxPublishDelay(properties.getBatchingMaxPublishDelayMicros(), 
TimeUnit.MICROSECONDS) //100000
   >                 .batcherBuilder(BatcherBuilder.KEY_BASED)
   
   This is another reason to use Failover subscription so that KEY_BASED 
batching wouldn't be needed. A multi-topic producer will automatically route 
keyed messages to a single partition and allow batching of all messages in that 
partition.
   When you switch to use Failover subscription, you should also remove 
`.batcherBuilder(BatcherBuilder.KEY_BASED)`.
   
   With sparse keys, you would need a huge throughput to reach reasonable batch 
sizes when KEY_BASED batching is used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to