[Rails] Rails (internals) architectural question

Jeremy Kemper jeremy at bitsweat.net
Thu Aug 10 09:43:59 GMT 2006


On Aug 9, 2006, at 6:28 AM, linux user wrote:
> I understand that reloading happens in Development to reload any  
> source code changes and it doesn't happen in production. And I am  
> not talking about reloading entire framework (the CGI approach) but  
> My question is that if a new instance of the controller is created  
> for each request, that in itself would be a performance overhead,

Yes, it is. I just couldn't believe that was your concern :)

> when compared to a multi-thread model of Java servlets in which  
> there is only one instance of the servlet which serves all requests.

Please look into Mongrel or WEBrick handlers if you wish to pursue  
the servlet model.

> Are you aware of any performance comparisons between Java Servlets  
> and Rails Controllers?? would be interesting to see how Rails fares  
> in comparison to Java Servlets.

I haven't, sorry.

jeremy


More information about the Rails mailing list