[
http://jira.jboss.com/jira/browse/JBMESSAGING-1072?page=comments#action_1... ]
Tim Fox commented on JBMESSAGING-1072:
--------------------------------------
Solution to this would be to add a flag on the connection factory
"SlowConsumer".
This would filter through to the ServerConsumerEndpoint on creation.
If true, then the ServerConsumerEndpoint would only ever accept one message at a time and
would not buffer.
Implement slow consumers flag
-----------------------------
Key: JBMESSAGING-1072
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-1072
Project: JBoss Messaging
Issue Type: Task
Reporter: Tim Fox
Assigned To: Tim Fox
Fix For: 1.4.0.GA
If there are slow and fast consumer(s) consuming from the same queue, then load
balancing might not work as one would expect.
By default, each consumer has a prefetch size which determines how many messages it would
accept before accepting any more.
So if you send 100 messages, then 50 might go to the slow consumer then the other 50 the
fast consumer.
The slow consumer woud then take a long time to process the 50 messages, resulting in non
optimal processing time.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira