streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.88k stars 621 forks source link

These durable queues can only be bound to non-durable exchanges? #453

Open tidyoux opened 4 years ago

tidyoux commented 4 years ago

The comment in channel.go says:

Non-Durable and Non-Auto-Deleted queues will remain declared as long as the server is running regardless of how many consumers. This lifetime is useful for temporary topologies that may have long delays between consumer activity. These queues can only be bound to non-durable exchanges.

but, the rabbitmq-tutorials shows it is ok to bind a Non-Durable and Non-Auto-Deleted queue to Durable exchange.

Which is the correct one, are there any restrictions on the binding between the queue and the exchange?

Related question on StackOverflow.