Abhishek K wrote:
> I am just checking out RabbitMQ for use at a small company.
> I need to know if there is Batch Consume Option and even batch publish .
>
> (Basically instead of sending messages one by one, the messages can be
> sent to the Consumer in one network transfer)
> Is there any plugin available for it.
> It would be great if you point me to some links.
>
>
Does one really need that? RabbitMQ is very, very fast and batching is
usually not needed...how many data do you need to store in "batch"?
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxRYf0ACgkQCJIWIbr9KYzMoACfaKRpLmpGn7n+jkceCQYJGod2
sBgAn0VQf7jFkIs64/iwsBh8MnLAOhu3
=0ltN
-----END PGP SIGNATURE-----
Abhishek K <abhish...@gmail.com> writes:
> I am just checking out RabbitMQ for use at a small company.
> I need to know if there is Batch Consume Option and even batch publish .
>
> (Basically instead of sending messages one by one, the messages can be sent
> to the Consumer in one network transfer)
> Is there any plugin available for it.
> It would be great if you point me to some links.
Batch operations are normally useful in a protocol with synchrnous
operations, so that rather than having to wait for a response on each
operation, a client can perform many operations and only wait for one
response.
But the publish and consume operations in AMQP are not synchronous, so
it's not clear what efficiency improvements could be allowed by batch
operations.
> Also can you give me some links /guides for Clustering ?
See the clustering guide at <http://www.rabbitmq.com/clustering.html>.
If you are interested in clustering, you probably also want to look at
the active/passive failover guide at
<http://www.rabbitmq.com/pacemaker.html>.
David
--
David Wragg
Staff Engineer, RabbitMQ
SpringSource, a division of VMware
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
AMQP already permits an AMQP server to deliver many messages to a
consumer in a single network transfer (unless the consumer does
something like setting qos which would prevent this).
The RabbitMQ broker does not currently strive to make this happen - it
looks like it will do one write to the socket for each AMQP frame. But
the operating system TCP stack might coalesce several socket writes into
a single IP packet. I haven't looked at packet traces to check whether
this actually happens.
So RabbitMQ is either already doing what you suggest, or could be
optimised to do so, without introducing batch operations. This is a key
advantage of an asynchronous protocol.
We turn Nagel off by default to reduce latency. You can always turn it
back on to allow the kernel to minimise packets.
Matthew