On 10/30/06, snacktime <snacktime at gmail.com>
wrote:> Just an fyi for anyone interested. I put together an http server
> using EM and the mongrel parser that supports persistent connections.
> Right now it''s an http protocol handler for stompserver.
Performance
> is impressive. Consuming messages from a memory based queue clocks in
> at an average of 9 tenths of a second for 1000 GET requests. Using
> the filesystem queue it''s just under 1.5 seconds per 1000 on
average.
> Server/client on same server using localhost and the messages being
> consumed are small, 30 bytes or so.
>
> PUT requests are pitiful due to net/http. 10 requests per second.
> I''m guessing it would be around 1000 requests every 2 seconds or
less
> with a reasonably fast http client, given the performance I have seen
> with the native stomp protocol.
>
> I''m going to take what I have and put together an EM based http
proxy
> with ssl support. I''m tired of having to run apache2 as a proxy
for
> rails. I do have one question. Is there any reason to parse the
> headers on the reply from mongrel/rails on it''s way back through
the
> proxy to the client? I kind of have to do it on incoming requests,
> but I''d rather not do it both ways if it''s not necessary.
>
> Chris
> _______________________________________________
> Eventmachine-talk mailing list
> Eventmachine-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/eventmachine-talk
>
Awesome.. Chris..
May be we can have an alternative app server for rails written on top
of EventMachine.
Can you send me the code man?
--
There was only one Road; that it was like a great river: its springs
were at every doorstep, and every path was its tributary.