3 ms·
Updating a bitmap 333 times a second is trivial with one core. Handling 100K websocket connections is the tricky bit I think!
by Ono-Sendai 10y ago
Updating a bitmap 333 times a second is trivial with one core.
Handling 100K websocket connections is the tricky bit I think!
- repsilat 10y agoAnd there's only half a meg of data! Serving the readers is a much more interesting problem than managing the writes, and tbh I'd just keep a rolling "pixels that have changed in the last 10 seconds" diff going, pushed out every 100ms, compressed and cached, and have clients poll for it. Easy peasy, websockets just complicate life.