FYI, the reply from Niall.

-----Message d'origine-----
>From : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On behalf of Niall
Gallagher
Date : dimanche 21 mai 2006 22:28
To : [EMAIL PROTECTED]
Object : Re: [Simpleweb-Support] Restlet integration

Hi Jerome,

I have been looking at the Restlet framework over the
past couple of days. Looks really great! To answer
your questions.

1) I have performed some very quick benchmarks against
Jetty 6 (the new NIO implementation). The performance
tests using httperf and autobench have shown that
Simple performs slightly better under higher load.
However, my test environment is Linux and both servers
run out of file descriptors at about 3000 requests per
second, simulating about 300 new connections per
second. 

2) I have an initial implementation for an NIO core,
which is still in the early stages. Hopefully I will
get some time to work on this a bit more and complete
it. I have not had much time recently. 

I think the NIO implementation with the existing
design will improve observed performance. Currently
the IO strategy favours higher loads, which results in
response times that are not as snappy as I would like.
  

Just to mention, you can improve initial response
times of your implementation by changing the maximum
wait peroid for inactive connections to about 200ms
from the default 1000ms. The server will be a little
more responsive with that configuration. For example
in SimpleServer.java replace 

this.connection =
ConnectionFactory.getConnection(this, new
BufferedPipelineFactory());

to

this.handler = new
PipelineHandlerFactory.getInstance(this, 20, 200);
this.connection =
ConnectionFactory.getConnection(handler, new
BufferedPipelineFactory());

This ensures that should a pipeline be inactive it
will be placed in the wait queue for a maximum of
200ms. The  javadoc explains the logic in this design.

Niall

--- Jerome Louvel <[EMAIL PROTECTED]> wrote:

> 
> Hi all,
> 
> I wanted to let you know that a Simple connector
> (HTTP server) for the
> Restlet framework was contributed by Lars Heuer
> (Semagia) and is now part of
> the latest Restlet release (1.0 beta 12):
>
http://www.restlet.org/docs/nre/com/noelios/restlet/ext/simple/package-summa
> ry.html
> 
> First, thanks to Niall Gallagher for this cool piece
> of software. It's great
> to have such a powerful and performance HTTP
> connector in only 165kb and
> without any external dependency.
> 
> I had one question: the current Simple
> Request/Response interfaces only rely
> on Input/Outputstream. I wanted to know if there was
> any plan to also
> support the NIO buffers? The Restlet framework has
> provision for both BIO
> and NIO via its central Representation interface:
>
http://www.restlet.org/docs/api/org/restlet/data/Representation.html
> 
> Also, did you make any perf comparison with Jetty
> (which is a current
> recommanded HTTP connector).
> 
> Best regards,
> Jerome
> 
> 
> 
>
-------------------------------------------------------
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Simpleweb-Support mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> 


Niall Gallagher

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Simpleweb-Support mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/simpleweb-support

Reply via email to