#Websocket
6 notas · última:
How Discord Reduced Websocket Traffic by 40%
Discord reduced gateway bandwidth by replacing zlib with tuned zstandard, then cutting passive session snapshots with PASSIVE_UPDATE_V2, reaching almost 40% less traffic overall.
Guts of Phoenix websocket channels
The post breaks Phoenix channels into transport, channel, and PubSub layers, then explains how Cowboy, GenServers, ETS, and PG2 move messages between clients and nodes.
Using ReactJS with Rails Action Cable
The post shows how to wire React into a Rails chat app built with Action Cable, using jbuilder, a React comment list, channel subscriptions, and a broadcast job to refresh comments in real time.
HTML5 WebSocket Security is Strong
The post argues that WebSocket inherits several HTTP security mechanisms because it starts as an HTTP handshake, and it also adds native protections like subprotocol validation and client-to-server masking.
600k concurrent websocket connections on AWS using Node.js
The post explains how to push an AWS EC2 instance toward 600k persistent websocket connections by choosing Node.js, using ws and sticky-session, and raising V8 and system limits.
Simple Dart + WebSocket demo
The post presents a small Dart WebSocket demo and uses it to show top-level functions and variables, modular libraries, inline callbacks, optional parameters, and the main() entry point.
