The most widely used protocol on the web for request-response communication.Pattern: Synchronous request/responseTransport: TCPStateless: YesUse Cases: Web APIs (REST), websites, microservices communicationProtocols on top: REST, GraphQL, gRPC (over HTTP/2)
2. WebSocket
A full-duplex communication protocol over a single, long-lived TCP connection.Pattern: Bidirectional streamingTransport: TCP (via HTTP handshake)Stateful: YesUse Cases: Real-time apps like chat, gaming, live dashboardsCompared to HTTP: Persistent and allows server push
3. gRPC
A high-performance RPC framework using HTTP/2 and Protocol Buffers.Pattern: Client-server, supports streaming and unary callsTransport: HTTP/2Efficient: Binary data (Protobuf)Use Cases: Internal service communication, mobile/backend APIs
4. MQTT (Message Queuing Telemetry Transport)
A lightweight Pub/Sub protocol optimized for unreliable or low-bandwidth networks.Pattern: Publish-SubscribeTransport: TCP/IPFeatures: QoS levels, retained messages, last willUse Cases: IoT devices, telemetry, sensors
5. AMQP (Advanced Message Queuing Protocol)
A binary, application-layer protocol for message-oriented middleware.Pattern: Supports both Point-to-Point and Pub/SubTransport: TCPFeatures: Queues, topics, routing, transactionsUsed By: RabbitMQ, Apache Qpid
6. SMTP (Simple Mail Transfer Protocol)
Protocol for sending email between servers.Pattern: Push (store-and-forward)Transport: TCP (port 25/587)Use Cases: Email services
7. XMPP (Extensible Messaging and Presence Protocol)
An XML-based messaging protocol.Pattern: Publish-Subscribe, ChatTransport: TCPUse Cases: Instant messaging, presence systems (e.g., Jabber)
Summary
Protocol
Pattern
Transport
Default Port
Common Use Case
HTTP
Request/Response
TCP
80/443
Web, APIs
WebSocket
Full-duplex
TCP
80/443
Real-time apps
SMTP
Push
TCP
25/587
Sending email
IMAP
Pull
TCP
143/993
Reading email
POP3
Pull (delete local)
TCP
110/995
Reading email
SSH
Remote shell
TCP
22
Secure remote access
FTP
File Transfer
TCP
21
File uploads/downloads
DNS
Lookup
UDP/TCP
53
Domain resolution
SNMP
Monitoring
UDP
161
Network management
Telnet
Remote shell
TCP
23
Legacy access
gRPC
RPC
HTTP/2
50051
Microservices, APIs
MQTT
Pub/Sub
TCP
1883/8883
IoT messaging
AMQP
P2P + Pub/Sub
TCP
5672/5671
Enterprise messaging
XMPP
Messaging + Pub/Sub
TCP
5222
Chat systems
CoAP
REST + Pub/Sub
UDP
5683
Lightweight IoT
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mint Starter Kit","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/akshanshgusain/U9KiYWNLHNn_ZtUv/logo/light.svg?fit=max\u0026auto=format\u0026n=U9KiYWNLHNn_ZtUv\u0026q=85\u0026s=07a697a3d04ef4dc936a2014794adeae","dark":"https://mintcdn.com/akshanshgusain/U9KiYWNLHNn_ZtUv/logo/dark.svg?fit=max\u0026auto=format\u0026n=U9KiYWNLHNn_ZtUv\u0026q=85\u0026s=010af35734daa4b92a641bfc03707af7"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:hi@mintlify.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.mintlify.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"akshanshgusain","hasAudioNarration":false,"actualSubdomain":"akshanshgusain","customDomains":[],"gitSource":{"type":"github","owner":"akshanshgusain","repo":"cheat-sheet","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92a8b424103980001f2bd:success","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"High Level Design","count":46},{"language":"default","tag":"HLD Fundamentals","count":42},{"language":"default","tag":"Primer","count":41},{"language":"default","tag":"Fundamentals","count":27},{"language":"default","tag":"Low Level Design","count":25},{"language":"default","tag":"Database","count":14},{"language":"default","tag":"Design Patterns","count":14},{"language":"default","tag":"DSA","count":9},{"language":"default","tag":"NoSQL","count":8},{"language":"default","tag":"Network and Protocols","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"hld/fundamentals/primer/network/layer-7-protocols/intro","slug":"/hld/fundamentals/primer/network/layer-7-protocols/intro","pageMetadata":{"title":"Application Layer Protocols","description":"Introduction to Layer 7 Protocols","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/network/layer-7-protocols/intro"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Introduction to Layer 7 Protocols\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`1-http-hypertext-transfer-protocol`,children:`1. HTTP (Hypertext Transfer Protocol)`}),`\n`,_jsx(_components.p,{children:`The most widely used protocol on the web for request-response communication.`}),`\n`,_jsx(_components.p,{children:`Pattern: Synchronous request/response`}),`\n`,_jsx(_components.p,{children:`Transport: TCP`}),`\n`,_jsx(_components.p,{children:`Stateless: Yes`}),`\n`,_jsx(_components.p,{children:`Use Cases: Web APIs (REST), websites, microservices communication`}),`\n`,_jsx(_components.p,{children:`Protocols on top: REST, GraphQL, gRPC (over HTTP/2)`}),`\n`,_jsx(Heading,{level:`2`,id:`2-websocket`,children:`2. WebSocket`}),`\n`,_jsx(_components.p,{children:`A full-duplex communication protocol over a single, long-lived TCP connection.`}),`\n`,_jsx(_components.p,{children:`Pattern: Bidirectional streaming`}),`\n`,_jsx(_components.p,{children:`Transport: TCP (via HTTP handshake)`}),`\n`,_jsx(_components.p,{children:`Stateful: Yes`}),`\n`,_jsx(_components.p,{children:`Use Cases: Real-time apps like chat, gaming, live dashboards`}),`\n`,_jsx(_components.p,{children:`Compared to HTTP: Persistent and allows server push`}),`\n`,_jsx(Heading,{level:`2`,id:`3-grpc`,children:`3. gRPC`}),`\n`,_jsx(_components.p,{children:`A high-performance RPC framework using HTTP/2 and Protocol Buffers.`}),`\n`,_jsx(_components.p,{children:`Pattern: Client-server, supports streaming and unary calls`}),`\n`,_jsx(_components.p,{children:`Transport: HTTP/2`}),`\n`,_jsx(_components.p,{children:`Efficient: Binary data (Protobuf)`}),`\n`,_jsx(_components.p,{children:`Use Cases: Internal service communication, mobile/backend APIs`}),`\n`,_jsx(Heading,{level:`2`,id:`4-mqtt-message-queuing-telemetry-transport`,children:`4. MQTT (Message Queuing Telemetry Transport)`}),`\n`,_jsx(_components.p,{children:`A lightweight Pub/Sub protocol optimized for unreliable or low-bandwidth networks.`}),`\n`,_jsx(_components.p,{children:`Pattern: Publish-Subscribe`}),`\n`,_jsx(_components.p,{children:`Transport: TCP/IP`}),`\n`,_jsx(_components.p,{children:`Features: QoS levels, retained messages, last will`}),`\n`,_jsx(_components.p,{children:`Use Cases: IoT devices, telemetry, sensors`}),`\n`,_jsx(Heading,{level:`2`,id:`5-amqp-advanced-message-queuing-protocol`,children:`5. AMQP (Advanced Message Queuing Protocol)`}),`\n`,_jsx(_components.p,{children:`A binary, application-layer protocol for message-oriented middleware.`}),`\n`,_jsx(_components.p,{children:`Pattern: Supports both Point-to-Point and Pub/Sub`}),`\n`,_jsx(_components.p,{children:`Transport: TCP`}),`\n`,_jsx(_components.p,{children:`Features: Queues, topics, routing, transactions`}),`\n`,_jsx(_components.p,{children:`Used By: RabbitMQ, Apache Qpid`}),`\n`,_jsx(Heading,{level:`2`,id:`6-smtp-simple-mail-transfer-protocol`,children:`6. SMTP (Simple Mail Transfer Protocol)`}),`\n`,_jsx(_components.p,{children:`Protocol for sending email between servers.`}),`\n`,_jsx(_components.p,{children:`Pattern: Push (store-and-forward)`}),`\n`,_jsx(_components.p,{children:`Transport: TCP (port 25/587)`}),`\n`,_jsx(_components.p,{children:`Use Cases: Email services`}),`\n`,_jsx(Heading,{level:`2`,id:`7-xmpp-extensible-messaging-and-presence-protocol`,children:`7. XMPP (Extensible Messaging and Presence Protocol)`}),`\n`,_jsx(_components.p,{children:`An XML-based messaging protocol.`}),`\n`,_jsx(_components.p,{children:`Pattern: Publish-Subscribe, Chat`}),`\n`,_jsx(_components.p,{children:`Transport: TCP`}),`\n`,_jsx(_components.p,{children:`Use Cases: Instant messaging, presence systems (e.g., Jabber)`}),`\n`,_jsx(Heading,{level:`2`,id:`summary`,children:`Summary`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Protocol`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Pattern`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Transport`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Default Port`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Common Use Case`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`HTTP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Request/Response`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`80/443`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Web, APIs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`WebSocket`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Full-duplex`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`80/443`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Real-time apps`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`SMTP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Push`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`25/587`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Sending email`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`IMAP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Pull`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`143/993`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Reading email`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`POP3`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Pull (delete local)`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`110/995`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Reading email`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`SSH`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Remote shell`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`22`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Secure remote access`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`FTP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File Transfer`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`21`}),_jsx(_components.td,{style:{textAlign:`left`},children:`File uploads/downloads`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`DNS`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Lookup`}),_jsx(_components.td,{style:{textAlign:`left`},children:`UDP/TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`53`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Domain resolution`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`SNMP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Monitoring`}),_jsx(_components.td,{style:{textAlign:`left`},children:`UDP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`161`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Network management`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Telnet`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Remote shell`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`23`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Legacy access`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`gRPC`}),_jsx(_components.td,{style:{textAlign:`left`},children:`RPC`}),_jsx(_components.td,{style:{textAlign:`left`},children:`HTTP/2`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`50051`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Microservices, APIs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`MQTT`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Pub/Sub`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`1883/8883`}),_jsx(_components.td,{style:{textAlign:`left`},children:`IoT messaging`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`AMQP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`P2P + Pub/Sub`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`5672/5671`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Enterprise messaging`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`XMPP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Messaging + Pub/Sub`}),_jsx(_components.td,{style:{textAlign:`left`},children:`TCP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`5222`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Chat systems`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`CoAP`}),_jsx(_components.td,{style:{textAlign:`left`},children:`REST + Pub/Sub`}),_jsx(_components.td,{style:{textAlign:`left`},children:`UDP`}),_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:`5683`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Lightweight IoT`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Application Layer Protocols","description":"Introduction to Layer 7 Protocols","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/network/layer-7-protocols/intro"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. HTTP (Hypertext Transfer Protocol)","slug":"1-http-hypertext-transfer-protocol","depth":2,"children":[]},{"title":"2. WebSocket","slug":"2-websocket","depth":2,"children":[]},{"title":"3. gRPC","slug":"3-grpc","depth":2,"children":[]},{"title":"4. MQTT (Message Queuing Telemetry Transport)","slug":"4-mqtt-message-queuing-telemetry-transport","depth":2,"children":[]},{"title":"5. AMQP (Advanced Message Queuing Protocol)","slug":"5-amqp-advanced-message-queuing-protocol","depth":2,"children":[]},{"title":"6. SMTP (Simple Mail Transfer Protocol)","slug":"6-smtp-simple-mail-transfer-protocol","depth":2,"children":[]},{"title":"7. XMPP (Extensible Messaging and Presence Protocol)","slug":"7-xmpp-extensible-messaging-and-presence-protocol","depth":2,"children":[]},{"title":"Summary","slug":"summary","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"akshanshgusain","siteName":"Mint Starter Kit","title":"Application Layer Protocols - Mint Starter Kit","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-08-11T08:47:38.845Z","originalFileLocation":"hld/fundamentals/primer/network/layer-7-protocols/intro.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Introduction to Layer 7 Protocols\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Application Layer Protocols - Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Introduction to Layer 7 Protocols\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://akshanshgusain.mintlify.site/_mintlify/api/og/v2?division=Layer+7+Protocols\u0026amp;title=Application+Layer+Protocols\u0026amp;description=Introduction+to+Layer+7+Protocols\u0026amp;theme=77ece92d591d6b1fdf64d1e8\u0026amp;signature=4e714923b58665862f784e04092d3e9acf2604e339564bc0489d276b14c65d85\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Application Layer Protocols - Mint Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Introduction to Layer 7 Protocols\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://akshanshgusain.mintlify.site/_mintlify/api/og/v2?division=Layer+7+Protocols\u0026amp;title=Application+Layer+Protocols\u0026amp;description=Introduction+to+Layer+7+Protocols\u0026amp;theme=77ece92d591d6b1fdf64d1e8\u0026amp;signature=4e714923b58665862f784e04092d3e9acf2604e339564bc0489d276b14c65d85\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/akshanshgusain/JS_E2GliXwwTj604/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mint Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/hld/fundamentals/primer/network/layer-7-protocols/intro.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://akshanshgusain.mintlify.app/#organization\",\"name\":\"Mint Starter Kit\",\"url\":\"https://akshanshgusain.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/akshanshgusain/U9KiYWNLHNn_ZtUv/logo/light.svg?fit=max\u0026auto=format\u0026n=U9KiYWNLHNn_ZtUv\u0026q=85\u0026s=07a697a3d04ef4dc936a2014794adeae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://akshanshgusain.mintlify.app#website\",\"name\":\"Mint Starter Kit\",\"url\":\"https://akshanshgusain.mintlify.app\",\"publisher\":{\"@id\":\"https://akshanshgusain.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro#webpage\",\"url\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro\",\"name\":\"Application Layer Protocols\",\"description\":\"Introduction to Layer 7 Protocols\",\"dateModified\":\"2025-08-11T08:47:38.845Z\",\"isPartOf\":{\"@id\":\"https://akshanshgusain.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HLD Fundamentals\",\"item\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/scalability\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Primer\",\"item\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/scalability\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Network and Protocols\",\"item\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/intro\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Application Layer Protocols\",\"item\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro#article\",\"headline\":\"Application Layer Protocols\",\"name\":\"Application Layer Protocols\",\"description\":\"Introduction to Layer 7 Protocols\",\"url\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro\",\"mainEntityOfPage\":{\"@id\":\"https://akshanshgusain.mintlify.app/hld/fundamentals/primer/network/layer-7-protocols/intro#webpage\"},\"dateModified\":\"2025-08-11T08:47:38.845Z\",\"publisher\":{\"@id\":\"https://akshanshgusain.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://akshanshgusain.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mint Starter Kit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mint Starter Kit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/hld/fundamentals/primer/network/layer-7-protocols/intro.md","siteName":"Mint Starter Kit","nav":{"global":{},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"DSA","pages":[{"title":"DSA","href":"/dsa/fundamentals/computational-complexity"}]},{"tab":"Low Level Design","pages":[{"title":"Low Level Design","href":"/lld/fundamentals/oop/encapsulation"}]},{"tab":"High Level Design","groups":[{"group":"HLD Fundamentals","pages":[{"group":"Primer","pages":[{"title":"Scalability in Distributes Systems","sidebarTitle":"Scalability","href":"/hld/fundamentals/primer/scalability"},{"title":"Fallacies of Distributes Systems","sidebarTitle":"Fallacies","href":"/hld/fundamentals/primer/fallacies"},{"title":"CAP Theorem","sidebarTitle":"CAP Theorem","href":"/hld/fundamentals/primer/cap"},{"title":"Consistency in Distributes Systems","sidebarTitle":"Consistency","href":"/hld/fundamentals/primer/consistency-patterns"},{"title":"Availability in Distributes Systems","sidebarTitle":"Availability","href":"/hld/fundamentals/primer/availability-patterns"},{"title":"Load Balancer","sidebarTitle":"Load Balance","href":"/hld/fundamentals/primer/load-balancer"},{"title":"API Gateway","sidebarTitle":"API Gateway","href":"/hld/fundamentals/primer/api-gateway"},{"title":"Reverse proxy","sidebarTitle":"Reverse proxy","href":"/hld/fundamentals/primer/reverse-proxy"},{"title":"Domain Name Servers","sidebarTitle":"DNS","href":"/hld/fundamentals/primer/dns"},{"title":"Content Delivery Network","sidebarTitle":"CDN","href":"/hld/fundamentals/primer/cdn"},{"title":"What is Serverless?","sidebarTitle":"Serverless","href":"/hld/fundamentals/primer/serverless"},{"title":"Service Discovery","sidebarTitle":"Service Discovery","href":"/hld/fundamentals/primer/service-discovery"},{"title":"Calc","href":"/hld/fundamentals/primer/calc"},{"group":"Database","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/db/intro"},{"group":"SQL","pages":[{"title":null,"href":"/hld/fundamentals/primer/db/sql/acid"},{"title":"Scale a relational database","sidebarTitle":"Scaling","href":"/hld/fundamentals/primer/db/sql/scale"},{"title":"Scale a relational database","sidebarTitle":"Replication","href":"/hld/fundamentals/primer/db/sql/replication"},{"title":"Automatic Conflict Resolution","sidebarTitle":"Automatic Conflict Resolution","href":"/hld/fundamentals/primer/db/sql/conflict-resolution"}]},{"group":"NoSQL","pages":[{"title":"NoSQL","sidebarTitle":"NoSQL","href":"/hld/fundamentals/primer/db/nosql/nosql"},{"title":"Key-value store","sidebarTitle":"Key-value store","href":"/hld/fundamentals/primer/db/nosql/key-value"},{"title":"Document store","sidebarTitle":"Document store","href":"/hld/fundamentals/primer/db/nosql/document"},{"title":"Wide Column store","sidebarTitle":"Wide Column store","href":"/hld/fundamentals/primer/db/nosql/wide-column"},{"title":"Graph Database","sidebarTitle":"Graph Database","href":"/hld/fundamentals/primer/db/nosql/graph"},{"title":"Distributed NoSQL, Availability-Partitioning","sidebarTitle":"AP-NoSQL","href":"/hld/fundamentals/primer/db/nosql/ap-dbs"},{"title":"Distributed NoSQL, Consistency-Partitioning","sidebarTitle":"CP-NoSQL","href":"/hld/fundamentals/primer/db/nosql/cp-dbs"},{"title":"AWS DynamoDB","sidebarTitle":"DynamoDB","href":"/hld/fundamentals/primer/db/nosql/aws-dynamo-db"}]},{"title":"Comparison Between SQL and NoSQL DataStores","sidebarTitle":"SQL vs NoSQL","href":"/hld/fundamentals/primer/db/sql-vs-nosql"}]},{"group":"Cache","pages":[{"title":"Introduction to Caches","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/cache/intro"},{"title":"Caching Strategies - \"How and When You Cache\"","sidebarTitle":"Caching Strategies","href":"/hld/fundamentals/primer/cache/caching-strategies"},{"title":"Cache Invalidation Strategies – \"How You Keep Cache Up-to-date\"","sidebarTitle":"Cache Invalidation Strategies","href":"/hld/fundamentals/primer/cache/cache-invalidation"},{"title":"Cache Eviction Policies – \"How You Decide What to Remove When Cache Is Full\"","sidebarTitle":"Cache Eviction Strategies","href":"/hld/fundamentals/primer/cache/cache-eviction"},{"title":"Redis In-Depth","sidebarTitle":"Redis","href":"/hld/fundamentals/primer/cache/redis"}]},{"group":"Queue","pages":[{"title":"Message Queues","sidebarTitle":"Message Queues","href":"/hld/fundamentals/primer/queue/intro"},{"title":"Message Queues vs Pub-Subs","sidebarTitle":"Queues vs Pub-Subs","href":"/hld/fundamentals/primer/queue/queue-v-pubsub"},{"title":"Comparison Between SQL and NoSQL DataStores","sidebarTitle":"BackPressure","href":"/hld/fundamentals/primer/queue/back-pressure"},{"title":"Apache Kafka","sidebarTitle":"Kafka","href":"/hld/fundamentals/primer/queue/apache-kafka"}]},{"group":"Network and Protocols","pages":[{"title":"Network and Communications","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/network/intro"},{"group":"Layer 4 Protocols","pages":[{"title":"Transport Layer Protocols","description":"TCP is a Layer 4 (Transport Layer) protocol, sitting just beneath the Application Layer and providing reliable communication services to protocols like HTTP, SMTP, or FTP.","sidebarTitle":"TCP","href":"/hld/fundamentals/primer/network/layer-4-protocols/tcp"}]},{"group":"Layer 7 Protocols","pages":[{"title":"Application Layer Protocols","sidebarTitle":"Introduction","href":"/hld/fundamentals/primer/network/layer-7-protocols/intro"},{"title":"Application Layer Protocols","description":"Introduction to Layer 7 Protocol HTTP","sidebarTitle":"HTTP","href":"/hld/fundamentals/primer/network/layer-7-protocols/http"},{"title":"Application Layer Protocols","sidebarTitle":"RPC","href":"/hld/fundamentals/primer/network/layer-7-protocols/rpc"},{"title":"Application Layer Protocols","sidebarTitle":"REST","href":"/hld/fundamentals/primer/network/layer-7-protocols/rest"}]}]}]},{"title":"Scalable System Design Patterns","sidebarTitle":"Scalable System Design Patterns","href":"/hld/fundamentals/scalability-patterns"}]},{"group":"HLD Case Studies","pages":[{"title":"Framework for System Design Interviews","sidebarTitle":"Framework","href":"/hld/case-studies/framework"},{"title":"Back of the Envelope Calculation","sidebarTitle":"Estimation Calculations","href":"/hld/case-studies/calc"},{"title":"Design Pastebin","sidebarTitle":"Design Pastebin","href":"/hld/case-studies/pastebin"},{"title":"Consistent Hashing","sidebarTitle":"Consistent Hashing","href":"/hld/case-studies/consistent-hashing"}]}]},{"tab":"Behavioural","pages":[{"title":"Behavioural","href":"/behavioural/competency-interviews"}]}]},"basePath":"","title":"Application Layer Protocols - Mint Starter Kit","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}