Servers
Define server URLs and protocols to help users connect to your event-driven API.
Define server URLs and protocols to help users connect to your event-driven API.
AsyncAPI allows you to specify one or more server configurations under the servers key.
Specifying servers is valuable for both SDKs and Docs:
AsyncAPI supports various protocols for event-driven communication:
We recommend giving your servers descriptive names to make it clear what each server is for:
You can use variables in your server configurations to make them more flexible:
If you have different channels that use different protocols, you can specify this in your server configuration:
This allows different channels to use the most appropriate protocol for their use case.