-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Given a channel name, how do you know which broker (server) should be used? #255
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Same issue here. The "channels" section has already a "channel.operation.bindings" field, which does not apply for this problem. As I have to make the code work, for the moment I added a non-official property called "channel.operation.binder" to the channel to point to the ID of the server.
|
Yeah, we'll work it out in future versions. In the meantime, make sure you use compatible property names so your AsyncAPI document is still valid. You can just rename your |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
yay this is being added, we just had a question about this in our team |
Another use case are all kinds of "protocol adapter" apps, i.e., apps that read from server S1 using protocol P1 and forward messages to server S2 using protocol P2. For example: Imagine an app that receives messages from an IBM MQ server and sends them to an MQTT server: it has a channel with a publish operation that must be linked to the IBM MQ server, and another channel with a subscribe operation that must be linked to the MQTT server. This should be expressed in one AsyncAPI document. Because if it were split into two separate AsyncAPI documents (one with IBM MQ as the server, the other with MQTT as the server) then the fact that the app essentially just routes incoming IBM MQ messages to an MQTT server is lost. |
The concept behind #244 shows a more distributed-systems-oriented approach where servers can be grouped (e.g. clusters). Then Operations would just specify in which group(s) or cluster(s) can be found. |
This is now supported by 2.2 release of the spec 🥳 |
Some things to consider:
The text was updated successfully, but these errors were encountered: