Re:600K concurrent HTTP connections with Clojure and http-kit
by shenedu on Monday January 28, 2013 @05:53AM
(#5127996)
Yes. something like long polling do require server capable of maintaining many connections.
http-kit provide `async-response` for this kind of usage: see http://http-kit.org for more detail.
I am the author of http-kit, also one of the authors of delicious China: http://meiweisq.com, trying to do some useful thing for our users (like realtime) with it. :)
We maintain a large number of connections (doing overlapping long polling) and we send the same information to each connection (about 30 times an hour at peak). Even if the query to produce that data was poorly optimised it's only being performed once and then the results pushed out to every connection.