Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we really need queue semantics in the Sender? #107

Open
gregturn opened this issue Aug 26, 2019 · 2 comments
Open

Do we really need queue semantics in the Sender? #107

gregturn opened this issue Aug 26, 2019 · 2 comments

Comments

@gregturn
Copy link

I was confused when I saw Sender with methods like declareQueue(). I thought that in AMQP, queues were components of the Receiver, and that senders only talk to exchanges.

Seeing no declareQueue() methods on the Receiver, it almost sounds like the methods were put in the wrong class. This forced me to use Spring AMQP's BindingBuilder` to construct the queue and bindings for the consumer.

@acogoluegnes
Copy link
Contributor

Fair enough, the semantics behind the Sender are write operations, which loosely includes any operation on resources (exchanges, bindings, and queues). One benefit is to use only one class (and a fluent API) to configure a topology and publish messages.

This remark makes me think we could introduce (in 2.0) an Admin class to deal only with resources, just like in Spring AMQP. We could still be able to use a fluent API to configure and publish, but not on the same class.

@acogoluegnes
Copy link
Contributor

Another comment leaning toward removing queue semantics from the Sender.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants