realtime-patterns

Installation
SKILL.md

Real-Time Patterns

The hardest part of real-time systems is not the latency — it's the concurrent state. Two users editing the same document at the same millisecond must both win.


Transport Selection

Choose the transport based on what the data flow looks like:

Transport Direction Best For Avoid When
WebSocket Bidirectional Chat, multiplayer, collaboration Simple server push
SSE (Server-Sent Events) Server → client only AI streaming, dashboards, notifications Client needs to send data
WebRTC Peer-to-peer Video/audio, P2P file transfer Server coordination needed
HTTP Polling Client pull Low-frequency updates, fallback > 1 update per second
HTTP Streaming Server → client Large response streaming, AI output Need bidirectionality
Installs
1
Repository
harmitx7/odoo
GitHub Stars
2
First Seen
Sep 5, 2026