[rabbitmq-discuss] asynchronous RPC / activation with RabbitMQ

Alexandru Scvortov alexandru at rabbitmq.com
Tue Oct 25 11:49:36 BST 2011


> Have a look at the examples in your preferred language:
>   http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/examples/
>   http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/default/projects/examples/client/
> You'll be looking for the client/server pairs.

Actually, it seems we have a Python tutorial for RPC:
  http://www.rabbitmq.com/tutorials/tutorial-six-python.html

On Tue, Oct 25, 2011 at 11:44:53AM +0100, Alexandru Scvorţov wrote:
> > Is it possible with RabbitMQ to implement asynchronous remote procedure calls
> > and throttle the rate at which these are called ?,
> 
> Probably.  You can certainly do RPC, asynchronous messaging and
> rate throttling with RabbitMQ.
> 
> Have a look at the examples in your preferred language:
>   http://hg.rabbitmq.com/rabbitmq-java-client/file/default/test/src/com/rabbitmq/examples/
>   http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/default/projects/examples/client/
> You'll be looking for the client/server pairs.
> 
> I'm not sure what you mean by *asynchronous* RPC.  I think you mean
> "send a message"/"a bit later, a reply comes back".
> 
> > throttle the rate at which these are called 
> 
> Depending on what you mean, that may be a bit hard.  There's no way in
> RabbitMQ to throttle producers (you can certainly write throttling into
> your clients, but a rogue producer will still be able to dump a lot of
> messages onto RabbitMQ).  The consumer can still throttle the broker,
> though.  So, the broker is going to be the one overloaded with
> messages; in this case, it will start writing messages to disk; only if
> it is really having problems with lack of memory, will it throttle
> publishers.
> 
> Hope this helps.
> 
> Cheers,
> Alex
> 
> On Tue, Oct 25, 2011 at 03:10:33AM -0700, ChrisAdkin wrote:
> > 
> > Is it possible with RabbitMQ to implement asynchronous remote procedure calls
> > and throttle the rate at which these are called ?, I ask this as a complete
> > newbie to RabbitMQ. 
> > -- 
> > View this message in context: http://old.nabble.com/asynchronous-RPC---activation-with-RabbitMQ-tp32716352p32716352.html
> > Sent from the RabbitMQ mailing list archive at Nabble.com.
> > 
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list