File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Performance Comparison of REST with Rails Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Ruby
Reply 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.
 
 
subject: Performance Comparison of REST with Rails
 
Threads others viewed
Disadvantages of Servlets
Options to get onto the REST bandwagon
Should I learn Hibernate or wait for EJB 3?
Performance Isssue with Dozer 5.2.2
Servlets Performance Issue

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture