Hi!I'm trying to implement very simple echo server using WebSockets, to test how playframework will handle 10K websocket connections. There is some tests with different servers (including java+netty) here https://github.com/ericmoritz/wsdemo/So I have the following piece of code, but suspect that it will not handle that many connections.Could you please advice how to do it in more reactive way, better not using actors:def index = WebSocket.using[String] { request =>val out = Enumerator.imperative[String] {}val in = Iteratee.foreach[String] { s =>out.push(s)}(in, out)}
Hi!I'm trying to implement very simple echo server using WebSockets, to test how playframework will handle 10K websocket connections. There is some tests with different servers (including java+netty) here https://github.com/ericmoritz/wsdemo/So I have the following piece of code, but suspect that it will not handle that many connections.Could you please advice how to do it in more reactive way, better not using actors:def index = WebSocket.using[String] { request =>val out = Enumerator.imperative[String] {}val in = Iteratee.foreach[String] { s =>out.push(s)}(in, out)}
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/BMrev4DFCCMJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P3R_g7suzBQJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.