hello all. ive come to the point where im thinking about deploying my 'rails on 
rails' app-development solution built in camping.

mainly, im wondering what the barriers to thread-safety are.

for db, i use redland, and afaik it spawns a single db connection for each 
find, and keeps a pool around to reuse. iow, no ActiveRecord.

are class-vars a problem? theres one that i'd like to keep, a 'close' cache of 
triples in a normal ruby Array.. read/writes to this are fast (much faster than 
HTML generation in markaby, from what i can tell), but i guess they would need 
to lock the other threads briefly.

for simplicity. i'd prefer a single interpreter process. otherwise i'm going to 
have to come up with some distributed cache invalidation scheme (typically the 
user load is 1-15, small workgroups, which loadwise is fine except they may 
experience a few seconds lag in their requests if eg a heavy SPARQL query is 
going on in another request) 

oh, and id like to hear 'sure, but you have to hack up the mongrel configurator 
slightly, and not do this' rather than 'just use a pack of mongrels'


cheers :)
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to