I am trying to impl pull mechanism using Spring DMLC, using qpid broker for queue. I am using setCnocurrency/setMaxConsurrentConsumer params to specify min and max consumers for my listener. I can see those consumers coming up when app starts, the problem here is I am not able to achieve all the active consumers receiving equal number of messages from queue. Listing different combinations that I tried.
maxprefetch(say n) param in connection url so that every pull request will get a max of n messages per one pull req
setReceiveTimeout in DMLC, assuming each pull request will have specified time intervel so that other consumers can start and read messages as well
Can someone please review the approach and help me if it is possible for consumers to share equal number of messages in pull mechanism
Also, if I want to verify the maxConsumerlimit that I can set for my system, how can I calculate that taking system config into consideration.