-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
amqp: vhost in channel binding #116
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@mr-nuno thanks for submitting this issue. I took a quick look into it and indeed it makes sense to me that the virtual host shouldn't be in channel binding but instead, be grabbed from the server URL whenever is needed. I think I'm ok with this suggestion, however, I'm not an expert on AMQP. Let's see what others say so I'm pinging some people that at some point have been involved with this particular binding: @iancooper @olvlvl @ericsampson |
Would you never want to have two channels use different vhost properties to the same server? I.e. is this never a use-case 🤔? servers:
production:
url: goose.rmq2.cloudamqp.com
protocol: amqps
channels:
user/signedup:
bindings:
amqp:
is: routingKey
queue:
name: my-queue-name
durable: true
exclusive: true
autoDelete: false
vhost: /hohmawct
bindingVersion: 0.2.0
user/signedup2:
bindings:
amqp:
is: routingKey
exchange:
name: myExchange
type: topic
durable: true
autoDelete: false
vhost: /hohmawct2
bindingVersion: 0.2.0 |
The use case on having different vhost is valid. However, you could have one server per vhost if needed. |
Yes, that's what I am trying to get at. Is it just because you want to set the |
Good question 😃
It's not really part of the |
Overall this goes to a question I raised some time ago, how do we map AsyncAPI document objects to broker capabilities. For my part I would suggest:
For RMQ I would map routing key and queue to channels (I can't see that being controversial) and vhost, exchange etc to server. I think there is an argument for an explicit Broker object because Server is really Client-Server not Pub-Sub broker and it's a discussion I was hoping to have coming up |
For RMQ, I think that channels are routing keys and a channel(routing key) can then declare a exchange or a queue in the binding. I'm not quite with you on why the exchange should be on the server level? But for this issue the question is if the |
Hi everyone, Although |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Describe the bug
When looking at the
channelBindings
for aamqp
thevhost
is on the channel level. But thevhost
is really part of theamqp
connection i.e. part of the authentication.For example,
user
andpassword
andvhost
is used when authenticating against a amqp RabbitMQ broker. I don´t think thevhost
is a part of the channel? When you look at theserver
part for aamqp
broker. Thevhost
is already part of theurl
Expected behavior
Remove
vhost
from thechannelBindings
The text was updated successfully, but these errors were encountered: