2 ms·
"If we use websockets unwisely we could end up painting ourselves into a corner." They're sockets. If you can't build a scalable service on sockets, give up no
by jerf 15y ago
"If we use websockets unwisely we could end up painting ourselves into a corner."
They're sockets. If you can't build a scalable service on sockets, give up now, because they're already the only choice you have. The web is built on slightly simpler sockets (TCP). All IM services are built on slightly simpler sockets. All email runs over slightly simpler sockets.
Sockets themselves do not fail to scale. Your code may fail to scale, but it's not the socket's fault.
The only issue that sockets have is that there's this web server in the way which may or may not have actually been built to deal with the sockets, but that will resolve itself soon enough. I'm sure over time every language will grow the thinnest possible HTTP socket server shim possible for binding sockets as similarly to TCP as possible, and there will be plenty of socket proxies built on every platform known.