CometD over AWS ELB
<p>I want to integrate cometD as push technology in my application and I have problems to find any information both in cometD and AWS groups about their compatibility.</p>
<p>I've tried to integrate webSockets with STOMP over Sock.js but I couldn't make it work because of AWS ELB round robin nature. It sends connect request to one instance and next request to another which doesn't have a clue about any connection. So, I had to drop the implementation.</p>
<p>So I have two instances behind ELB with https protocol. I can't switch to TLS because of couple infrastructure reasons. I can't use sticky session as well.
Please, note that I don't want to use webSockets. I want to implement pub-sub notification system over technologies like poling/streaming etc.</p>
<p>My question is how well cometD works with AWS ELB? Is there any problems with ELB round robin nature. Can CometD work using one tunnel request?</p>
<p><strong>Update.</strong>
I can not use webSocket because some clients can have proxies which doesn't support upgraded http protocol.
As @sbordet mentioned in comments cometD won't work without sticky load balancer which I can not support. That is why my updated question would be:
Is there any comet like technology/library/framework which can work with AWS ELB without stickiness on multiple instances? Maybe something that will open one connection and handle all data transfer within that connection?</p>