In ruby, if muliple HTTP request comes for single action/method then how ruby handles each and every request?
I don’t know exactly, I heard that java uses multi thread concept. Is ruby uses the same or anything else? If it uses to create process for every request then this thing eat the cpu process.
In Rails process takes care of only one request. If you have only one Rails process than all other requests would have to wait until first one is finished and so on.
Some time ago people were using Mongrel Cluster to have many Rails processes so each can handle one request at a time. Now I think that the most popular is Passenger – it can start dynamicaly more Rails processes is there is a need.