[Rails] Rails (internals) architectural question

Jeremy Kemper jeremy at bitsweat.net
Wed Aug 9 00:40:46 GMT 2006


On Aug 8, 2006, at 2:06 PM, linux user wrote:
> On 8/8/06, Jeremy Kemper <jeremy at bitsweat.net> wrote: On Aug 8,  
> 2006, at 9:56 AM, linux user wrote:
> > 1. If xxx_controller.rb is only loaded once does it mean there is
> > only one instance of Controller serving all requests?
>
> A controller is instantiated per request.
>
> Is this true even in Production mode ?? If yes, this will degrade  
> performance of rails compared other web frameworks?.

I think misunderstood you - seems you're referring to 'reloading  
Rails' as in reloading the entire app framework. That does not occur  
in production mode nor does it affect the issue you had in the  
original email regarding global variables.

jeremy


More information about the Rails mailing list