Ruby on Rails Sunday, December 26, 2010

Fearless Fool wrote in post #970802:
> What happens in a Rails app between http requests?

Generally nothing.

> Is it torn down
> entirely and re-started at the next request?

No, at least not in production mode.

> I know that's a rather
> open-ended question, but the answer has implications for code such as:
> =====
> class User < ActiveRecord::Base
> SOME_CONSTANT = difficult_to_compute_initialization_value()
> ...
> end
> =====
> Is there a writeup (and guiding principles) for the lifecycle of a Rails
> app?

You're overthinking again. It's just There.

> Or should I just not worry about this sort of thing until I
> actually deploy my app?

Good idea. Of course, you should be deploying all the time, even if only
to a staging box.

>
> TIA.
>
> - ff

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment