rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
241 stars 84 forks source link

Creating a queue with a server-generated name #149

Closed simba909 closed 5 years ago

simba909 commented 5 years ago

I’ve tried reading through the source, but I can’t seem to find a way to create queues with server-generated names. Is this supported? If not, is support for it on the roadmap? :)

I would gladly help out with a PR if I could, but unfortunately I might not have time for that anytime soon.

michaelklishin commented 5 years ago

This client chose to generate queue names on its own when an empty string is passed. That's typically sufficient. We may revisit this at some point but it's not meaningfully different.

Bunny has been generating consumer tags for close to a decade and no one seems to mind, for example, even though technically the broker can do it.

michaelklishin commented 5 years ago

Integration tests such as these is the best source of information on API usage at the moment, and it will continue for a while as this client's API changes slightly to make it easier to use from Swift and I revisit some minor design decisions for 0.11.0 and beyond.