Core Concept

Network Protocols: HTTP, gRPC, WebSocket, DNS

Protocol choice encodes constraints around latency budget, data consistency, browser compatibility, and network bandwidth.


What:

Application protocols (HTTP, gRPC, WebSocket) and naming backbones (DNS) that coordinate network data serialization and client-server routing.

Primary purpose:

Selecting the optimal communication contract based on payload budgets, connection latencies, and state dynamics.

Usually used for:

Microservice RPC, real-time push platforms, and public geo-located traffic routing.

How should I think about this inside system architectures?

🌐 Public HTTP Edge Gateway

Serve REST/JSON at the public API boundary to maximize public firewall compliance, client ease-of-use, and CDN caching compatibility.

⚡ Internal gRPC Microservices

Use gRPC (HTTP/2 binary streams) inside your private VPC network to maximize microservices performance and enforce strict type contracts.

🔌 Persistent Bidirectional Push

Avoid heavy client HTTP polling loop overhead by establishing durable, stateful TCP WebSocket channels for instant push events.