Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Ruby on Rails handle concurrent requests?

Does Ruby on Rails handle concurrent requests?

If not, how to make it so?

like image 795
Shuo Avatar asked Mar 08 '11 19:03

Shuo


1 Answers

It's less that Ruby on Rails handles the concurrent requests as it is the server that is running Ruby on Rails that handles the concurrent requests. When I say a server that is running Ruby on Rails I am referring to Phusion Passenger, Mongrel or WEBrick in combination with Apache or Nginx for example. In most cases concurrency is achieved by launching multiple Ruby on Rails applications that each handle requests separately. While this may take more memory than a truly threaded approach it does not require that Ruby on Rails developers write thread-safe code.

like image 130
Pan Thomakos Avatar answered Sep 20 '22 06:09

Pan Thomakos