Is Rails shared-nothing or can separate requests access the same runtime variables?
问题 PHP runs in a shared-nothing environment, which in this context means that every web request is run in a clean environment. You can not access another request's data except through a separate persistence layer (filesystem, database, etc.). What about Ruby on Rails? I just read a blog post stating that separate requests might access the same class variable. It has occurred to me that this probably depends on the web server. Mongrel's FAQ states that Mongrel uses one thread per request -