Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  is prefetch count available in erlang rabbitmq client

Guest
Posted: Thu Sep 17, 2009 6:57 pm Reply with quote
Guest
I would like to limit the number of commands an instance of a worker is
allowed to have that is un-acked at a time, to say one. So that each
worker is allowed to receive, via a subscription, a single message,
completely process it and then ack the message in order to receive the
next one.

Setting the prefetch count to one sounds like that will do what I need,
but I have not found how to do this in the erlang client. Is it there.?

I am using the erlang client that was tagged at the time of the rabbitmq
1.6.0 release.

Thanks,
Mark.

--
Principal Engineer
Cheyenne Software Engineering
mark.geib@echostar.com / 35-215

PGP fingerprint:6DFC 389D 9796 0188 92E5 58F5 34C5 6B47 D091 76FD

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
0x6e6562
Posted: Mon Sep 21, 2009 1:01 pm Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Hey Mark,

On Thu, Sep 17, 2009 at 7:56 PM, Mark <mark.geib@echostar.com> wrote:
> Setting the prefetch count to one sounds like that will do what I need,
> but I have not found how to do this in the erlang client. Is it there.?

Yes, this is a simple RPC command that is exposed in the Erlang
client. Just create a basic.qos record, set the prefetch_count field
and send it via amqp_channel:call/2. There is a test case called
basic_qos_test in the test_util module that illustrates this.

Ben

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Mon Sep 21, 2009 1:49 pm Reply with quote
Guest
Folks,

FYI

Chris Duncan aka @bunny_amqp has written a note on prefetch and qos,
in the context of Bunny on Ruby:

http://bunnyamqp.wordpress.com/2009/09/20/bunny-quality-of-service-or-prefetch/

alexis


On Mon, Sep 21, 2009 at 2:00 PM, Ben Hood <0x6e6562@gmail.com> wrote:
> Hey Mark,
>
> On Thu, Sep 17, 2009 at 7:56 PM, Mark <mark.geib@echostar.com> wrote:
>> Setting the prefetch count to one sounds like that will do what I need,
>> but I have not found how to do this in the erlang client. Is it there.?
>
> Yes, this is a simple RPC command that is exposed in the Erlang
> client. Just create a basic.qos record, set the prefetch_count field
> and send it via amqp_channel:call/2. There is a test case called
> basic_qos_test in the test_util module that illustrates this.
>
> Ben
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss@lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
wuji
Posted: Sat Aug 18, 2012 7:29 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
For the next 11 years, doctors treated him with with replica designer *beep* with anti-retroviral therapy, to which he responded positively.In 2006, however,
health deteriorated. He was diagnosed with acute myeloid leukemia -- -- [h3]cheap Christian Louboutin[/h3] -- and underwent chemotherapy. While the first round of treatment
to work, it also made him more susceptible to infections. infections. cheap polo shirts infections. Brown developed pneumonia early on in his treatment, and
battled sepsis halfway through his third round of chemo. His His [h3]replica designer bags for sale[/h3] His doctors realized they would have to try a different
oncologist, Dr. Gero Hutter of the Charite Hospital in Berlin, Berlin, cheap replica *beep* Berlin, opted to give Brown a stem cell transplant to
his leukemia. But rather than choosing a matched donor, he he cheap louboutins he used the stem cells of a donor he found
had what is known as a CCR5 mutation -- a a discount designer *beep* a mutation that makes cells immune to the HIV.In
later published in the New England Journal of Medicine, Hutter Hutter [h1]cheap Ralph Lauren Polo[/h1] Hutter and his colleagues reported that the transplant not only
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum