Re:600K concurrent HTTP connections with Clojure and http-kit
by shenedu on Monday January 28, 2013 @01:36AM
(#5127456)
yes, SQL is blocking, JVM also have threads. The http-kit is asynchronous(epoll on linux), the API for programmers is sync, which is more familiar.
Re:600K concurrent HTTP connections with Clojure and http-kit
by pygy_ on Monday January 28, 2013 @05:18AM
(#5127934)
Alternatively, you can use a message queue or a REST service, and whatever lightweight, async database frontend.
Re:600K concurrent HTTP connections with Clojure and http-kit
by fernandezpablo on Monday January 28, 2013 @08:46AM
(#5128436)
That would just move the blocking code elsewhere, and now you have one extra framework / message queue on your stack (free complexity)
Since this is on the JVM, SQL almost always means JDBC and JDBC is blocking so yes, SQL will in fact limit your concurrency.