> Could you please let me know whether HTTP-Kit has built-in support for applying backpressure, and if it does then how to configure the same
If the backpressure is something like this: http://mechanical-sympathy.blogspot.jp/2012/05/apply-back-pressure-when-overloaded.html Then yes. http-kit uses a bounded queue for accepting request, when too many request coming, they get queued, if the queue exceeds a certain size(control by :queue-size option), request get rejected, client will get 503. And, there is another option :thread controls how many worker threads to compute HTTP response from request. There is another possible problem: many requests come in short time, server compute the response (which is large) very fast(so the request did not get rejected), and the output link is slow(like low bandwidth network connection). In this scenario, the HTTP response get queued, wait for TCP buffer to flush. 沈锋 On Sat, May 4, 2013 at 3:58 AM, Shantanu Kumar <kumar.shant...@gmail.com>wrote: > Congratulations on the release! Could you please let me know whether > HTTP-Kit has built-in support for applying backpressure, and if it > does then how to configure the same? > > Shantanu > > On May 3, 9:05 pm, Feng Shen <shen...@gmail.com> wrote: > > Hi, > > > > just released 2.1.0. > > > > [http-kit "2.1.0"] ; Add to your project.clj. > > > > Compare to 2.0.0, noticeable changes: > > > > 1. Much faster: about 30%~80% faster. > > 2. The client support HTTPS now > > 3. :as option to do client output coercion > > > > Not that noticeable changes: > > > > 1. few minor bugs fixes > > 2. less RAM usage > > > > The full update log: > https://github.com/http-kit/http-kit/blob/master/history.md > > > > Updated client documentation:http://http-kit.org/client.html > > > > > > > > > > > > > > > > On Friday, March 29, 2013 2:03:38 PM UTC+8, Feng Shen wrote: > > > > > Hello folks. > > > > > I just released version 2.0.0 of http-kit. > > > > > *2.0.0 (2013/3/29)* > > > > > 1. Unify WebSocket and HTTP long polling/streaming with Channel > > > protocol and with-channel (API breaks with the RC) > > > 2. WebSocket support sending and receiving binary frame with byte[] > > > 3. Support HTTP streaming > > > 4. WebSocket message ordering is guaranteed by server > > > > > Updated documentation:http://http-kit.org/server.html > > > > > Let's build amazing realtime applications with Clojure, using http-kit. > > > > > The with-channel API is not compatible with the RC releases. The new is > > > better and much easier to understand and use. The old's documentation > can > > > be found here <http://http-kit.org/server_old.html> > > > > > - feng > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/YcezxQKG6rs/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.