You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/12/23 09:26:32 UTC

[GitHub] [rocketmq] weavernet opened a new issue #1673: Why there is a pullMessageService in Producer ?

weavernet opened a new issue #1673: Why there is a pullMessageService in Producer ?
URL: https://github.com/apache/rocketmq/issues/1673
 
 
   I've found there is a `pullMessageService` start process when a `Producer` starts. I think the `pullMessageService` is used for pulling message from broker. It seem's like `Producer` doesn't need to pull any message from broker.
   So, what does the `pullMessageService` do in `Producer`?  Thank you.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] weavernet commented on issue #1673: Why there is a pullMessageService in Producer ?

Posted by GitBox <gi...@apache.org>.
weavernet commented on issue #1673: Why there is a pullMessageService in Producer ?
URL: https://github.com/apache/rocketmq/issues/1673#issuecomment-568738428
 
 
   > You have got the answer yourself :)
   > The `pullMessageService` is used for pulling messages from the broker, and that is how producer exactly works. In other words, `Producer` uses `pullMessageService` to pull messages from the brokers
   
   I think `Producer` is pushing message to `Broker`, not pulling message from `Broker`. 
   If `Producer` pull message from `Broker`,  what does the broker do with the message? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] xiangwangcheng commented on issue #1673: Why there is a pullMessageService in Producer ?

Posted by GitBox <gi...@apache.org>.
xiangwangcheng commented on issue #1673: Why there is a pullMessageService in Producer ?
URL: https://github.com/apache/rocketmq/issues/1673#issuecomment-568774798
 
 
   @weavernet  Sorry, now I get you. Both the producer and consumer have the MQClientInstance object as a property. Now the truth is either a producer of a consumer is created, A MQClientInstance attached with a pullMessageService is inited. Indeed, when it is a producer, the pullMessageService is useless. 
   But if we both have consumer and producer in one process(they share one MQClientInstance instance),
   the pullMessageService is used for consumer, pulling messages. 
   So IMO, init a pullMessageService in MQClientInstance is a rough, simple but useful way, for it is kind of difficult to know whether the client is a producer or consumer, or both of them.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] xiangwangcheng commented on issue #1673: Why there is a pullMessageService in Producer ?

Posted by GitBox <gi...@apache.org>.
xiangwangcheng commented on issue #1673: Why there is a pullMessageService in Producer ?
URL: https://github.com/apache/rocketmq/issues/1673#issuecomment-568736156
 
 
   You have got the answer yourself :)
   The `pullMessageService` is used for pulling messages from the broker, and that is how producer exactly works. In other words, `Producer` uses `pullMessageService` to pull messages from the brokers

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] duhenglucky closed issue #1673: Why there is a pullMessageService in Producer ?

Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #1673: Why there is a pullMessageService in Producer ?
URL: https://github.com/apache/rocketmq/issues/1673
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services