Home
Topic
websockets
2 articles across 2 sub-topics
Sub-topic
Interview-prep
1 article
Real-Time Communication: WebSockets, SSE, and Long Polling Explained
TLDR: 🔌 WebSockets = bidirectional persistent channel — use for chat, gaming, collaborative editing. SSE = one-way server push over HTTP with built-in reconnect — use for AI streaming, live logs, notifications. Long Polling = held HTTP requests — th...
•22 min read
Sub-topic
Architecture
1 article
System Design HLD Example: Collaborative Document Editing (Google Docs)
TLDR: Real-time collaborative editing relies on Operational Transformation (OT) or CRDTs to resolve concurrent edits without data loss. The core trade-off is Latency vs. Consistency: we use optimistic local updates for zero-latency typing and a centr...
•13 min read
