Hello,
In DRb (or drb, or druby, or… what should I call it?), I’m starting a
server and my Apache/mod_ruby scripts are connecting to it when they need
to.
My question: If two (or more) people connect to my webserver at roughly the
same time, on two different Apache/mod_ruby processes, are their requests
all sent to the same DRb object, one at a time?
In other words, Jack and Jill request different pages. Jack’s page makes
two DRb requests: foo(1)' and
bar(1)’. Jill’s page makes two different
requests: foo(2)' and
bar(2)’. Do these get sent to different DRb
objects (i.e. does DRb spawn new processes like Apache does?), or are these
all sent to the same object, which may receive any of the following
sequences of messages?
foo(1), bar(1), foo(2), bar(2)
foo(2), bar(2), foo(1), bar(1)
foo(1), foo(2), bar(1), bar(2)
foo(1), foo(2), bar(2), bar(1)
etc.
(but never foo(1), bar(2), bar(1), foo(2))
Chris