-
Notifications
You must be signed in to change notification settings - Fork 141
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
Allow control over exchange creation #112
Comments
+1 Could really use this feature. |
This flexibility also exists in https://github.com/squaremo/amqp.node. Calling it a handicap here is not very fair: the idea of rabbit.js is to make using RabbitMQ transparently easy, and that means eliding options that don't matter for the socket-like abstractions given. I am starting to think that the socket-like abstractions are the less useful bit. Would it be better to just have ways, in amqplib, of publishing and consuming via streams? |
@squaremo I am new to RabbitMQ (and AMQP in general), and am under the impression that amqp.node is for any service that supports AMQP, while rabbit.js is specific to the RabbitMQ flavor and its individual paradigms. I could be wrong and incorrectly aligned with this project's goals, so I apologize for that. With this in mind, considering RabbitMQ's management interface (see Perhaps omitting functionality (e.g. options) altogether is less favorable than having them available but with intrinsic defaults. There already exists a hint of this with From a beginners perspective, the current socket-like abstractions are useful organizationally speaking, albeit I don't personally use them in a stream context (yet). |
I am also new in rabbit.js and the whole node.js context. For me, the abstraction of using sockets instead of streams was very helpful, because I don't need to deal with the pitfalls of streams, but use a concept that I know in general. But of course I also read the RabbitMQ documentation and was irritated because I was not able to create an So just adding the possibility to give, maybe optional, settings to the socket creation which then are merged with a default option set, would be a great thing. |
I recognized that is is not possible to control the process of creating an exchange.
In the
Sub
andPub.connect
functions the exchange is always created with a predefined set of exchange options:Here the setting is always
{durable: false, autoDelete: false})
.It would be really great to have the chance to overwrite these settings in the exchange creation.
This issue is to #63.
I would like to do something like:
The text was updated successfully, but these errors were encountered: