Monday, May 24, 2010

Jetty + BlazeDS in NIO (async) mode

Ok so BlazeDS uses blocking IO normally, which makes it crap for when you're using long-polling clients because you run out of threads.

You can run it under Jetty instead, which supports continuations, which means that you can have thousands of (mostly idle) connections with only a few threads.

Basically follow Andrea blog with her patched code to run it in Jetty async mode...

http://blogs.webtide.com/athena/entry/asynchronous_blazeds_polling_with_jetty

..however it doesn't quite work with Jetty 7.1; if you apply this patch, it works!

http://jira.codehaus.org/browse/JETTY-1213

No comments: