tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitri <mi...@cargosoft.ru>
Subject Scalable WebSocket broadcast with Tomcat 7
Date Sun, 02 Jun 2013 20:12:14 GMT
Hi,

I am developing a collaboration webapp using Tomcat 7 implementation of
WebSockets. Imagine we have a 1000+ of connected clients, each of them
having his own WsOutbound. How do we implement broadcast messages in a
scalable way? Yet I've seen only examples that do iterate over connected
clients and send messages in a sequential manner. Obviously, this
approach doesn't scale to hundreds an thousands of clients.

I've yet come up with a workaround using a fixed ThreadPool executor of
some 50 threads that do the work in parallel, however, this approach is
far from perfect, too. I'm wondering if there exists more elegant,
standard way to do the same, probably employing NIO and multiplexing?
I've heard that this will be available in JSR-356 out-of-the-box, but
the application is going to enter production soon, with TomEE 1.6.0 as
target platform.

Thanks!
Dimitri


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message