wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
wood burning stoves
 
subject: Performance Comparison of REST with Rails
 
Similar Threads
Should I learn Hibernate or wait for EJB 3?
Disadvantages of Servlets
Servlets Performance Issue
Performance Isssue with Dozer 5.2.2
Options to get onto the REST bandwagon