[rabbitmq-discuss] flow control issues
mabrek at gmail.com
Fri Sep 24 16:01:30 BST 2010
On Fri, Sep 10, 2010 at 5:06 PM, Marek Majkowski <majek04 at gmail.com> wrote:
> The flow control was heavily modified between 1.8.1 and 2.0.0. In summary:
> - 1.8.1 - we have send Channel.flow AMQP message to everyone once
> rabbit reached memory limit
> - 2.0.0 - once we reach memory limit, the connections from which we hear
> publishes are stopped temporarily. We stop receiving bytes from tcp sockets.
> That 'stop' shouldn't take too long, as data should be swapped out to disk
> and memory pressure will drop pretty quickly.
We use channel.basicPublish (java client) from web request handler and
need to reply quickly. Hanging basicPublish will ruin our response
time. It would be better to specify timeout on publishing or to throw
an exception in case of server reaching memory limit.
More information about the rabbitmq-discuss