Message Consumption in Tutorials Push or Pull API?

994 views
Skip to first unread message

Asadullah Hussain

unread,
Aug 8, 2014, 7:36:19 AM8/8/14
to rabbitm...@googlegroups.com
Hello, I just started out with RabbitMQ on Linux and am going through the tutorialsThe AMQP protocol states that there are two ways to for consumer:
  1. Have messages delivered to them ("push API")
  2. Fetch messages as needed ("pull API")
Which type of message consumption is this (Push or Pull)? It seems the tutorials employ push API. Is there an example of pull API using python?

Laing, Michael

unread,
Aug 8, 2014, 8:22:17 AM8/8/14
to Asadullah Hussain, rabbitm...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Aug 8, 2014, 9:07:39 AM8/8/14
to rabbitm...@googlegroups.com, Asadullah Hussain
 On 8 August 2014 at 15:36:24, Asadullah Hussain (asad...@gmail.com) wrote:
> > Hello, I just started out with RabbitMQ on Linux and am going
> through the tutorials(http://www.rabbitmq.com/tutorials/).
> The AMQP protocol(https://www.rabbitmq.com/tutorials/amqp-concepts.html)
> states that there are two ways to for consumer:
> Have messages delivered to them ("push API")
> Fetch messages as needed ("pull API")
> Which type of message consumption is this (Push or Pull)? It seems
> the tutorials employ push API

The tutorials use basic.consume, which creates a subscription. RabbitMQ
then delivers messages to the consumer as they become available.

So yes, this is what is known as the "push API". The "pull API" uses
basic.get.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

software s

unread,
Nov 17, 2015, 6:45:52 AM11/17/15
to rabbitmq-users, asad...@gmail.com
Dear Michael,

I would like to ask you where it is possible to find more information concenring the "push API".
In particular, I would like to know if it is possible to deploy a "push API" on a mobile device (e.g. a smartphone), which not have a fixed IP.
If it is possible, could you explain how RabbitMQ works when the IP of the mobile device has changed. In this case, how the broker can find the client ("push API")?

Thank you in advance.

Michael Klishin

unread,
Nov 17, 2015, 6:49:32 AM11/17/15
to rabbitm...@googlegroups.com, asad...@gmail.com
Clients have to re-connect and begin consuming again.
--
Reply all
Reply to author
Forward
0 new messages