huangydyn opened a new issue, #15176:
URL: https://github.com/apache/pulsar/issues/15176

   ### What issue do you find in Pulsar docs?
   
   It's said that consumer send Flow command to ask give permission to the 
broker to push messages.
   
   My Question is that how consumer send flow command to broker?  Is this a 
long polling or short polling?
   
   refer doc [Pulsar binary protocol 
specification](https://pulsar.apache.org/docs/en/develop-binary-protocol/#consumer)
   
   ### What is your suggestion?
   
   As we know, both kafka and rocketmq use long polling to pull message, and 
pulsar use push and pull.
   
   Could this be explained in the doc why pulsar use push and pull and why it 
is better then other implementation?
   
   My understand is that
   
   - Flow command is not long polling
   - Kafka and RocketMq use long polling which caused more network consumption, 
and Repeat consumption might be introduced
   - Push/Pull is used in Pulsar to relieve network consumption and client 
consuming pressure
   
   
   ### Do you have any references?
   
   https://pulsar.apache.org/docs/en/develop-binary-protocol/#consumer
   
   ### Would you like to fix this issue?
   
   yes, i'm will to ^^
   
   ### Note
   
   - [X] I have researched my question.


-- 
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