Re: WebSockets with Clojure

2012-02-04 Thread Martin Jul
In our perf lab tests for a trading system we have gone up to around 10,000 concurrent connections and up to 20-40k messages per second with sub-10 millisecond latency on web sockets on a single server before things start breaking down (in this case the data is generated on another machine so the s

Re: WebSockets with Clojure

2012-02-03 Thread Takahiro
> Ouch. Not simply the Java hash function? That will work for Clojure > objects that don't contain identities, only values. Whereas the above > has issues with sets and maps that are semantically equal but get put > together differently: Yeah, with-out-str can be replaced to suit your data. I think

Re: WebSockets with Clojure

2012-02-03 Thread Cedric Greevey
On Thu, Feb 2, 2012 at 8:30 PM, Takahiro Hozumi wrote: > 1. Resolve a server name which client should be connected to. > If a client need to be connected to specific resource (chat room etc) > consistent hashing is useful. > http://nakkaya.com/2010/05/05/consistent-hashing-with-clojure/ > (defn s

Re: WebSockets with Clojure

2012-02-02 Thread Takahiro Hozumi
If you need scalability, two phase connect might be necessary. 1. Resolve a server name which client should be connected to. If a client need to be connected to specific resource (chat room etc) consistent hashing is useful. http://nakkaya.com/2010/05/05/consistent-hashing-with-clojure/ 2. Connect.

Re: WebSockets with Clojure

2012-02-01 Thread Moritz Ulrich
There's also aleph[1] which also uses netty. I'd suggest trying it, as it encapsulates websockets and other means of transportation in a clean way. (Although I have no idea how well aleph scales) [1]: https://github.com/ztellman/aleph Cheers, Moritz On Wed, Feb 1, 2012 at 23:52, Jay Fields wrot

Re: WebSockets with Clojure

2012-02-01 Thread Jay Fields
I haven't hooked up that many clients, but I can recommend Webbit (https://github.com/webbit/webbit) based on experience. Cheers, Jay On Wed, Feb 1, 2012 at 5:05 PM, blais wrote: > Hi Clojurians, > > Does anyone have experience with serving WebSockets from Clojure, in > particular w.r.t. scalabi

WebSockets with Clojure

2012-02-01 Thread blais
Hi Clojurians, Does anyone have experience with serving WebSockets from Clojure, in particular w.r.t. scalability? I'm evaluating server-side options for handling a large number of simultaneous web clients (>100) and wondering how well this scales. I already hooked up Clojure to Netty and built a