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


With regards,
Apache Git Services

Reply via email to