--- url: "https://asyncapi.com/docs/tutorials/getting-started/servers" titulek: "Servers | AsyncAPI Initiative for event-driven APIs" h1: "Servers" popis: "In the previous lesson, you learned how to create the definition of a simple Hello World application. Let's take it from there. In this tutorial, you'll learn how to add servers to your AsyncAPI docu" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:44:55" znaku: 2473 slov: 319 kodovani: "utf-8" sha256: "d6e08c6557a50b53b18a677a3b45af60911a4bf9b3921da190aaee0ab0c61c94" --- ##### On this page Conclusion # Servers Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/website/blob/master/markdown/docs/tutorials/getting-started/servers.md) In the previous lesson, you learned how to create the definition of a simple [Hello World application](/docs/getting-started/hello-world). Let's take it from there. In this tutorial, you'll learn how to add `servers` to your AsyncAPI document. Adding and defining servers is useful because it specifies where and how to connect. The connection facilitates where to send and receive messages. ``` asyncapi: 3.1.0 info: title: Hello world application version: '0.1.0' servers: production: host: broker.mycompany.com protocol: amqp description: This is "My Company" broker. channels: hello: address: 'hello' messages: sayHelloMessage: payload: type: string pattern: '^hello .+$' operations: receiveHello: action: 'receive' channel: $ref: '#/channels/hello' ``` You've now added a new section called `servers` in your AsyncAPI document. You might have noticed that our example mentions `amqp`, a very common protocol that was popularized by RabbitMQ (among others). While our example uses `amqp`, you can use any protocol. The most common protocols used are `mqtt` (widely adopted by the Internet of Things and mobile apps), `kafka` (popular for its streaming solution), `ws` (WebSockets are frequently used in browsers), and `http` (used in HTTP streaming APIs). ##### Remember The `servers` section defines where your application should connect to start sending and receiving messages. 1. If you are using a broker-centric architecture such as Kafka or RabbitMQ, specify the broker URL. 2. If you have the classic client-server model such as for REST APIs, then your `server` should be the URL of the server. ## Conclusion Now you know where the `Hello world application` connects to, and you can start receiving `hello {name}` messages. In the next section, you'll learn how to add security requirements to your server. [Go BackAsyncAPI documents](/docs/tutorials/getting-started/asyncapi-documents) [Up NextAdding security](/docs/tutorials/getting-started/security) Was this helpful? Help us improve the docs by sharing your feedback. [Submit Feedback](https://github.com/asyncapi/website/issues/new?template=docs-feedback.yml&title=Docs%20Feedback%3A%20%2Fdocs%2Ftutorials%2Fgetting-started%2Fservers&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)