1. HTTP (Hypertext Transfer Protocol)

The most widely used protocol on the web for request-response communication. Pattern: Synchronous request/response Transport: TCP Stateless: Yes Use Cases: Web APIs (REST), websites, microservices communication Protocols on top: REST, GraphQL, gRPC (over HTTP/2)

2. WebSocket

A full-duplex communication protocol over a single, long-lived TCP connection. Pattern: Bidirectional streaming Transport: TCP (via HTTP handshake) Stateful: Yes Use Cases: Real-time apps like chat, gaming, live dashboards Compared 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 calls Transport: HTTP/2 Efficient: 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-Subscribe Transport: TCP/IP Features: QoS levels, retained messages, last will Use 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/Sub Transport: TCP Features: Queues, topics, routing, transactions Used 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, Chat Transport: TCP Use Cases: Instant messaging, presence systems (e.g., Jabber)

Summary

ProtocolPatternTransportDefault PortCommon Use Case
HTTPRequest/ResponseTCP80/443Web, APIs
WebSocketFull-duplexTCP80/443Real-time apps
SMTPPushTCP25/587Sending email
IMAPPullTCP143/993Reading email
POP3Pull (delete local)TCP110/995Reading email
SSHRemote shellTCP22Secure remote access
FTPFile TransferTCP21File uploads/downloads
DNSLookupUDP/TCP53Domain resolution
SNMPMonitoringUDP161Network management
TelnetRemote shellTCP23Legacy access
gRPCRPCHTTP/250051Microservices, APIs
MQTTPub/SubTCP1883/8883IoT messaging
AMQPP2P + Pub/SubTCP5672/5671Enterprise messaging
XMPPMessaging + Pub/SubTCP5222Chat systems
CoAPREST + Pub/SubUDP5683Lightweight IoT