shared-nothing

Is Rails shared-nothing or can separate requests access the same runtime variables?

跟風遠走 提交于 2019-12-17 15:45:03
问题 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 -

Experience with Hadoop?

六眼飞鱼酱① 提交于 2019-12-09 05:29:58
问题 Have any of you tried Hadoop? Can it be used without the distributed filesystem that goes with it, in a Share-nothing architecture? Would that make sense? I'm also interested into any performance results you have... 回答1: Yes, you can use Hadoop on a local filesystem by using file URIs instead of hdfs URIs in various places. I think a lot of the examples that come with Hadoop do this. This is probably fine if you just want to learn how Hadoop works and the basic map-reduce paradigm, but you

Is Rails shared-nothing or can separate requests access the same runtime variables?

痴心易碎 提交于 2019-11-27 19:47:36
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 - suggesting a shared-nothing environment. The FAQ goes on to say that RoR is not thread safe, which further