tomcat-users mailing list archives

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

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message