[rabbitmq-discuss] Durable exchanges

Valentino Volonghi dialtone at gmail.com
Tue Jan 13 17:58:35 GMT 2009


On Jan 13, 2009, at 1:03 AM, Matthias Radestock wrote:

> The above *is* part of the client api.
>
> Should lib_amqp contain a separate function for every conceivable  
> combination of flags and exchange types, e.g.
> declare_durabe_auto_delete_topic_exchange(...)
> ...
> ?
>
> If not, where do you draw the line?

It seems to me that what declare_queue and publish do is a step
in the right direction, maybe what I would change still is to avoid  
having
to pass a structure and instead pass a list of tuples that will be  
used to
construct the structure that will be sent.

declare_exchange(X, [{durable, true}, {auto_delete, false}]).

But yes, I see your point and I wish erlang had default arguments
without the need to overload the function several times because
essentially this is a non existent problem in python libraries.

> lib_amqp predates the use of defaults in the record definitions.  
> With those defaults in place, creating small wrappers in lib_amqp  
> saves no more than a couple of tokens. And on the downside you then  
> have to remember what all those different functions are called and  
> in which order they take their arguments.

Sure, but it also means that every time you don't use a single
default you have to write those wrappers and those wrappers
will be only in your code and won't be shared.

> Well, it does concern me when you are seeing apparently non-sensical  
> behaviour in your tests. If you do run into this again, could you  
> perhaps post step-by-step instructions to reproduce the results from  
> a fresh broker install?


Yes I will.

-- 
Valentino Volonghi aka Dialtone
Now running MacOS X 10.5
Home Page: http://www.twisted.it
http://www.adroll.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090113/1a607098/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090113/1a607098/attachment.pgp 


More information about the rabbitmq-discuss mailing list