[rabbitmq-discuss] How can we stop rpcserver gracefully?
yhtonline at gmail.com
Fri Oct 5 08:14:46 BST 2012
Thanks Emile for the response and help.
We really want to have a function for terminating rpc server, when clients
still sending msg to that, I mean, that function will make rpc server stop
to recieve new msg from que, and we can stop rpc server easyly and
or any suggestion/best practices for stopping rpc server will be very
2012/10/4 Emile Joubert <emile at rabbitmq.com>
> On 04/10/12 04:10, Hongtao wrote:
> > but, for shtutting down rpc server, how can we make sure all
> > messages have been dealt with, and no msg lost. we want a graceful
> > shutdown process, seems no document talking about that.
> > if we call: execService.shutdown();
> > Consumer.handleDelivery will not be triggerred then?
> If you make sure not to acknowledge RPC requests until after sending the
> RPC reply then message will not be lost, even if you shut down the RPC
> server. Your clients must be prepared to handle duplicates though, as
> replies might be sent more than once.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss