You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/01/02 07:08:06 UTC

[GitHub] merlimat commented on issue #1007: Use EventLoopGroup for internal consumers on PartitionedConsumerImpl

merlimat commented on issue #1007: Use EventLoopGroup for internal consumers on PartitionedConsumerImpl
URL: https://github.com/apache/incubator-pulsar/issues/1007#issuecomment-354712097
 
 
   > I realised we only use a single thread executor per Consumer instance, is there a reason for this? 
   
   The main reason is to retain the message ordering. This might not be important in a shared subscription but it is for the other types.
   
   > I think it would be nice to be able to disable externalExecutorProvider in PulsarClientImpl 
   
   Sounds good to me. As long as we document the behavior and the user knows that it has to do non-blocking operations (or else slow down potentially the consumption for other consumers in the same client).
   
   > If implementing the previous, it would probably make more sense to use MoreExecutors.newDirectExecutorService() though we probably shouldn't use a single instance but a few, but it could be hard to track them and shut them down.
   
   I think that `newDirectExecutorService()` should just return a simple lambda that execute directly, there shouldn't be the need to have multiple instances of it, no?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services