Am 09.01.2013 um 16:11 schrieb Sven Van Caekenberghe <sven@stfx.eu>:

Norbert,

On 09 Jan 2013, at 14:57, Norbert Hartl <norbert@hartl.name> wrote:

Am 09.01.2013 um 14:30 schrieb Sven Van Caekenberghe <sven@stfx.eu>:

Since most proxies and load balancers, most notably Apache, don't handle the WebSocket protocol very well, the only solution is to arrange for direct connections to the Smalltalk image.

Who's interested in load balancing for websockets should look at HAProxy (http://haproxy.1wt.eu/)

FYI,

Norbert

Yeah, I knew that HAProxy seems to be able to do it, but I didn't want to learn how to deal with the complexity of yet another technology stack. There is also the fundamental question whether it makes sense to proxy/tunnel the semi-permanent WebSocket connections. You would consume twice the resources while gaining little.

Agreed about yet another stack. But I don't think there is something like a fundamental question about those things. In my experience the first or second new requirement to your project always proves you wrong :)  There are often use cases where it is inevitable to have a single entry point, have balancing even for TCP connections, pinning, etc� 

Have you used HAProxy ? For WebSockets too ?

I used HAProxy 5 years ago or so. But I'm referring to the experience of a friend of mine who actually uses it in production for http://www.userlike.de/. He uses Socket.IO for the chat connections and there are requirements he needs to use something like HAProxy.

Btw. my post wasn't meant to "you should use HAProxy". I just wanted to give some hints for people who feel they need for it.

Norbert