[ 
https://issues.apache.org/jira/browse/ROCKETMQ-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16289205#comment-16289205
 ] 

ASF GitHub Bot commented on ROCKETMQ-233:
-----------------------------------------

dongeforever commented on a change in pull request #127: [ROCKETMQ-233] Fix 
pull interval issue
URL: https://github.com/apache/rocketmq/pull/127#discussion_r156645862
 
 

 ##########
 File path: 
client/src/main/java/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java
 ##########
 @@ -231,6 +234,7 @@ public DefaultMQPushConsumer(final String consumerGroup, 
RPCHook rpcHook, Alloca
         this.consumerGroup = consumerGroup;
         this.allocateMessageQueueStrategy = allocateMessageQueueStrategy;
         defaultMQPushConsumerImpl = new DefaultMQPushConsumerImpl(this, 
rpcHook);
+        this.pullIntervalPolicy = new 
BoundedExponentialPullIntervalPolicy(100, 300000);
     }
 
 Review comment:
   300s is too long. 
   For SUB latency-sensitive applications, long polling is suggested.
   So fix pull interval policy is suggested, and the default pull interval 
should be zero.

----------------------------------------------------------------
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:
[email protected]


> Apply pull interval when pull result contains no new matched msg
> ----------------------------------------------------------------
>
>                 Key: ROCKETMQ-233
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-233
>             Project: Apache RocketMQ
>          Issue Type: Bug
>            Reporter: Zhanhui Li
>            Assignee: Zhanhui Li
>             Fix For: 4.3.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to