Fundamentals · 12 min
Understand the HTTP upgrade handshake, the four ready states and the event model, then build a minimal echo client and a Node server.Разбираем HTTP-upgrade рукопожатие, четыре состояния и событийную модель, затем собираем минимальный echo-клиент и сервер на Node.
Read article
Reliability · 15 min
Detect dropped sockets, queue outgoing messages and reconnect with jittered exponential backoff so you never stampede the server.Определяем разрыв сокета, ставим исходящие сообщения в очередь и переподключаемся с джиттером, чтобы не «затоптать» сервер.
Read article
Protocol · 9 min
Idle connections are killed silently by proxies. A heartbeat detects half-open sockets early and keeps intermediaries from timing you out.Простаивающие соединения тихо убиваются прокси. Heartbeat рано обнаруживает «полуоткрытые» сокеты и не даёт посредникам сбросить вас по таймауту.
Read article
Performance · 11 min
Stream raw bytes efficiently with typed arrays, pick the right binaryType, and frame structured messages without JSON overhead.Эффективно передаём байты типизированными массивами, выбираем binaryType и формируем структурированные сообщения без накладных JSON.
Read article
Architecture · 18 min
Move beyond one process: sticky routing, a Redis pub/sub backplane, broadcast fan-out and graceful shutdown for rolling deploys.Выходим за рамки одного процесса: sticky-маршрутизация, pub/sub-шина на Redis, веерная рассылка и аккуратное завершение при выкатке.
Read article
Security · 14 min
You can't set headers from a browser WebSocket — so use cookies, the short-lived ticket pattern, and validate on upgrade. Plus re-auth and revocation.Из браузерного WebSocket нельзя задать заголовки — поэтому cookie, паттерн короткоживущего тикета и проверка при upgrade. Плюс повторная аутентификация и отзыв.
Read article
Architecture · 10 min
A side-by-side comparison of the three real-time transports — duplex, reconnection, payloads, proxies — and how to choose the right one.Сравнение трёх real-time транспортов — дуплекс, переподключение, данные, прокси — и как выбрать подходящий.
Read article
Tutorial · 16 min
A complete walkthrough: a broadcasting Node.js server with rooms, a JSON message protocol and a resilient browser client that renders live.Полный разбор: сервер на Node.js с комнатами и рассылкой, JSON-протокол сообщений и устойчивый браузерный клиент с живой отрисовкой.
Read article
Performance · 12 min
How the DEFLATE extension is negotiated, how to enable and tune it in Node.js, and the memory cost of context takeover at scale.Как согласуется расширение DEFLATE, как включить и настроить его в Node.js и чего стоит context takeover по памяти при масштабе.
Read article
Quality · 15 min
Promise-based helpers, integration tests against a real server, Playwright end-to-end, and load testing with k6 plus Autobahn protocol conformance.Промис-хелперы, интеграционные тесты против реального сервера, end-to-end на Playwright и нагрузка через k6 плюс соответствие протоколу через Autobahn.
Read article