Hi Dionisios,

What you observe is the expected performance of the *internal* HTTP connector, 
built-in the org.restlet.jar. This connector has been redesigned for 2.0 to 
support advanced HTTP features such as provisional responses, pipelining, 
asynchronous handling and future enhancements such as unified thread pool, 
IO-level firewall, etc. 

The initial focus has been on design flexibility for 2.0 to the expense of 
latency/performance. We only recommend this connector for development or light 
deployments. For regular performances, you should use an pluggable connector 
such as Jetty. See this page for configuration details:

"API - Connectors"
http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/325-restlet/37-restlet.html

"Extensions - Eclipse Jetty"
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/78-restlet.html

For Restlet 2.1, we are working of the performance of this internal connector 
by leveraging non-blocking NIO. So far, we obtained performances on par with 
extension connectors (benchmarks will come). We hope to let people feel the 
improvements in 2.1 M1 so stay tuned! If you want to know more about the 
internal connector design, please see this page:
http://wiki.restlet.org/developers/172-restlet/354-restlet.html

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg
Noelios Technologies ~ http://www.noelios.com



-----Message d'origine-----
De : Dionisios Lialios [mailto:d.lial...@xe.gr] 
Envoyé : mardi 5 octobre 2010 10:53
À : discuss@restlet.tigris.org
Objet : Restlet performance

Hello, I am quite new here and have just started evaluating Restlet for a 
project.

I have tried the sample applications (for example, a simple Server Resource 
that just returns a simple string) and some more complex ones from the Manning 
book, but in all cases I can't get the response time to fall down from 160-200 
ms, which is way more than what I'd like it to be.

I am probably doing something very wrong; on the other hand, the documentation 
regarding issues like this is really scarce so any help would be very welcome.

Thanks
Dionisios Lialios

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668112

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668171

Reply via email to