aspose file tools*
The moose likes Ruby and the fly likes Performance Comparison of REST with Rails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Performance Comparison of REST with Rails" Watch "Performance Comparison of REST with Rails" New topic
Author

Performance Comparison of REST with Rails

Shahzad Masud
Greenhorn

Joined: Oct 18, 2007
Posts: 11
I am planning to develop an REST based services for one of my client who is very touchy about performance related issues. Any thoughts on the comparison between normal REST using servlets & REST with Rails. I have created one service (add/update/delete/list) in Ruby on Rails using a tutorial. But that wasn't that efficient as compared to normal normal REST using servlets.

Any thoughts? pros & cons?

Thanks,
Shahzad
Ben Scofield
author
Greenhorn

Joined: May 20, 2008
Posts: 29
I haven't seen or run any benchmarks on RESTful applications specifically, but I'm willing to go out on a limb and say that Rails will probably be slower than a well-written set of servlets. For my purposes, this difference has been insignificant, but obviously your mileage may vary.

The real benefits of building RESTful systems in Rails lie more on the developer side - Rails makes it easy to follow most of the RESTful principles, and its features and conventions mean that more of your time and energy is devoted to the interesting problems of building your service, rather than to the nitty-gritty of handling browser-unsupported HTTP verbs and the like. In my experience, it's just faster and more enjoyable to develop with Ruby, Rails, and REST than in other languages and frameworks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance Comparison of REST with Rails