--- url: "https://asyncapi.com/docs/concepts/protocol" titulek: "Protocol | AsyncAPI Initiative for event-driven APIs" h1: "Protocol" popis: "What is a protocol? A protocol is a set of rules that governs the exchange of information between applications and/or servers. Protocol examples: WebSockets HTTP Kafka MQTT Why do we need protocol" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:44:48" znaku: 1834 slov: 198 kodovani: "utf-8" sha256: "531c709c2f7f3e28f8e8e8579158f5514fbfd6a3a8b78d9d8d97924eb68c8160" --- ##### On this page What is a protocol? Why do we need protocols? # Protocol Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/website/blob/master/markdown/docs/concepts/protocol.md) ## What is a protocol? A *protocol* is a set of rules that governs the exchange of information between applications and/or servers. Protocol examples: - [WebSockets](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) - [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) - [Kafka](https://kafka.apache.org/) - [MQTT](https://mqtt.org/) ## Why do we need protocols? Protocols play a crucial role in message transmission. Whenever a producer detects a state change (events) and publishes those events as messages, a protocol carries those messages to the channel and then to the consumer. The diagram above illustrates the message exchange flow from `producer` to `broker` to `consumer` using the MQTT protocol with QoS0 (quality of service 0). In other words, the information transferred from the producer to broker to consumer is delivered at most once. The quality of service information rule is defined at the protocol level. Broker implementations and other involved parties must adhere to this rule. In AsyncAPI documents, all protocol-specific details that the application follows can be described using [bindings](https://www.asyncapi.com/docs/reference/specification/latest#definitionsBindings). [Go BackApplication](/docs/concepts/application) [Up NextMessage](/docs/concepts/message) 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%2Fconcepts%2Fprotocol&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)