-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Keeny,
On 2/16/2009 5:15 AM, keenny wrote: > I'm currently working on a system that must be able to serve thousands of > requests per sec. The requests/responses contains only small amounts of data > (ajax XMLHTTPRequests) and are not long lived (connection keep). I'm using > java to generate the responses. Static content are served separately (by > lighttpd). I was just wondering if anybody has any opinions as to how this > can be done most effectively (highest throughput, low cpu consumption etc). > Some alternatives being: > > lighttpd -> mod_proxy -> tomcat -> application code > lighttpd -> fastcgi -> application code > tomcat -> application code > asyncweb/mina -> application code I'm not sure how "fastcgi" would run your Java application code. I think this all depends upon the types of requests you expect to get. lighttpd is presumably "faster than Tomcat" for static content. Tomcat itself is pretty fast as a static HTML server, so you might not want to discount your 3rd option there. If you don't expect a lot in the way of static content requests, then you should probably eliminate the extra processing that will have to be done with all your dynamic requests being forwarded through mod_proxy or some other communication channel. Apache mina doesn't appear to be an HTTP server. I'm sure you could re-build all that HTTP infrastructure on top of mina, but is it worth it? The same can be said of the Servlet API. If you're starting from scratch, the Servlet API might not be much of a concern. If you're looking to re-deploy an existing application, you might want to consider other options (such as mina). I think the use of XMLHttpRequest is going to be your limiting factor because they you /must/ use HTTP for communication. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmZ6N0ACgkQ9CaO5/Lv0PCTygCghkzi6Yfqkm4w4wL3RqoqpO/7 oiEAnjvJokCgtr6ggMofCtdQRQhkfA/w =V1bm -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org