Communication Overview
Communication Protocols

- REST
- GraphQL
- Websocket
- Webhook
- gRPC
- Kafka
- SOAP

Realtime Classification
Classification | Examples | Latency measured in | Tolerance for delay |
Hard | Pacemaker, anti-lock brakes | microseconds - milliseconds | None - total system failure, potential loss of life |
Soft | Airline reservation system, online stock quotes, VoIP (Skype) | milliseconds - seconds | Low - no system failure, no life at risk |
Near | Skype video, home automation | seconds - minutes | High - no system failure, no life at risk |
Among Services

REST

GraphQL

gRPC

Server-sent events

Comparision

REST vs GraphQL

Webhook vs Polling

RPC vs REST
