spring-guides / gs-messaging-stomp-websocket

Using WebSocket to build an interactive web application :: Learn how to the send and receive messages between a browser and the server over a WebSocket

Home Page:http://spring.io/guides/gs/messaging-stomp-websocket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why create a new TCP connection to MQ for each JS client?

rockywebasm opened this issue · comments

We build an application like webchat, use ActiveMQ as the broker, when one browser client connect to chat server, we find that a new TCP connection for MQ, so if we want to support millions client, it may create too many connections for MQ, can we reuse the connection between chat server and MQ?

This guide has nothing to do with any MQ broker. Please open usage questions on stackoverflow.com.