[rabbitmq-discuss] load balancing for consummer

Ben Hood 0x6e6562 at gmail.com
Sat Aug 22 11:58:59 BST 2009


On Sat, Aug 22, 2009 at 10:54 AM, Benoit Chesneau<bchesneau at gmail.com> wrote:
> I've a consummer using erlang-rabbitmq-client
> http://www.friendpaste.com/1vohm5UA0oZpcDyONuikHy.

Just took a peek at this, here are some minor observations:

- Realms and tickets have been toast for a while now. The server
treats them as NOOPs;
- You might want to check the rabbit_framing.hrl header file to find
out what default values are set in each record definition - this may
help make your code terser;
- You don't need to set consumer_tags when subscribing unless you
really want to - the server will generate them for you;
- Are you sure you need a topic exchange?
- Furthermore, I assume that your code works, but I what I'm not
getting on first glance is how the subscription works when you use the
name of the module instead of a pid - maybe there's something else
going on here?

Also, as some other users of the Erlang client have already noticed,
the API has undergone a lot of cleanup to get it to a releasable state
- you might want to keep this in mind as it is likely to land some
time soon.


More information about the rabbitmq-discuss mailing list