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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org