jump to navigation

Benchmark shows Restlet scalability March 28, 2007

Posted by Jerome Louvel in Restlet General.

One of the recurrent questions that people ask when evaluating the Restlet framework are:

  • Does it scale?
  • Is it properly multi-threaded?
  • How do the standalone HTTP server connectors compare to Servlet containers?

As the code was designed since day one with this concern for multi-threading, high-availability and scalability, we were confident about the performance. We run our http://www.restlet.org Web site on the Noelios Restlet Engine with a standalone Simple connector and never had any scalability or stability issue, even when the site experienced peak loads, during new releases or during denial of service attempts.

Thierry Boileau, another core developer, took the time to do a formal benchmark using ab, a common Apache stressing tool. Those tests confirm the scalability and responsiveness of all connectors and show a similar performance between the standalone connectors and the Servlet adapter.

This is encouraging and it will be quite interesting to compare these results with the ones of the future full NIO connectors that we plan for version 1.1. Those connectors will attempt to fully leverage the NIO part of the Restlet API, by using proven NIO frameworks such as Glassfish’s Grizzly and Apache’s MINA. This should give a significant performance advantage to Restlets over classic Servlets which are limited by blocking BIO streams to a large extend.



1. Alexis MP - March 30, 2007

It’s really GlassFish’s Grizzly, not Sun’s 🙂

2. Jérôme Louvel - March 31, 2007

Ooops, sorry for the confusion 🙂 Grizzly is now a standalone project, but indeed still part of the Glassfish community! I’ve updated the post.

3. 4H with Philip « Seize the Moment of Excited Curiosity for the Acquisition of Knowledge - May 4, 2007

[…] We walked through the tutorials included with Restlet, and after adding a bunch of JARs to Philip’s Eclipse library path, they all seemed to work. There was one that downloaded the most recent bookmarks from del.icio.us, and also Yahoo searches. I believe the examples came from the upcoming O’Reilly book RESTful Web Services. All in all, Restlet looks like a decent foundation for Hackystat 8, and there is even some evidence that it performs well compared to Tomcat. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s