Hi
Another newbe here… I was wondering if someone could please help me
understand the controllers/view inner working in Production
- If xxx_controller.rb is only loaded once does it mean there is only
one
instance of Controller serving all requests?
- If only one instance of controller is there then how are controllers
instance variables protected from data corruption when serving multiple
requests? Since these instance variables render data in views.
- If I store a SOAP::RPC::Driver object (pointing to a web service with
only one function) in a global variable Do I run the risk of corrupting
data
when the web service response arrives?
thanks in advance
-daya
On 8/8/06, linux user [email protected] wrote:
Hi
Another newbe here… I was wondering if someone could please help me
understand the controllers/view inner working in Production
- If xxx_controller.rb is only loaded once does it mean there is only one
instance of Controller serving all requests?
- If only one instance of controller is there then how are controllers
instance variables protected from data corruption when serving multiple
requests? Since these instance variables render data in views.
As far as I know, a new controller object is created for each request.
- If I store a SOAP::RPC::Driver object (pointing to a web service with
only one function) in a global variable Do I run the risk of corrupting data
when the web service response arrives?
It shouldn’t.
Joe