Client Requests

4 views
Skip to first unread message

txjflip9557

unread,
Jul 21, 2010, 1:48:42 PM7/21/10
to Ramaze
I think my last question was worded poorly.

When multiple clients are requesting the same server page, does Ramaze
Controller handle these multiple requests somehow? i.e. have some
kind of queue control?

or would we have to write our own queue functionality for handling
multiple client requests?

Michael Lang

unread,
Jul 22, 2010, 11:05:05 PM7/22/10
to ram...@googlegroups.com
I use Apache + Phusion Passenger for handling multiple requests.  By default, I think Passenger starts 6 processes, so you can handle 6 concurrent requests.  Apache will manage the queue when you have more concurrent requests than processes to handle them.

Michael


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




--
http://codeconnoisseur.org

Lars Olsson

unread,
Jul 23, 2010, 4:06:48 AM7/23/10
to Ramaze
While some adapters (web servers) may span over several processes (and
thus can handle multiple requests "concurrently") the general client/
server model applies to Ramaze as well. Whenever a request comes in,
Ramaze does not block other requests until the first request is
processed. Instead, a new thread is started and that thread takes care
of processing that single request. In the meantime, the main thread
returns to wait for more requests.

What this means is that Ramaze by itself does not run concurrently,
but in practice it takes a very short time to start a new thread. As
long as you have enough processing power and memory Ramaze will "look"
like its serving pages concurrently. This is true even if you run an
adapter using only one process.

/lasso



On 23 Juli, 05:05, Michael Lang <mwl...@cybrains.net> wrote:
> I use Apache + Phusion Passenger for handling multiple requests.  By
> default, I think Passenger starts 6 processes, so you can handle 6
> concurrent requests.  Apache will manage the queue when you have more
> concurrent requests than processes to handle them.
>
> Michael
>
>
>
>
>
> On Wed, Jul 21, 2010 at 1:48 PM, txjflip9557 <txjflip9...@yahoo.com> wrote:
> > I think my last question was worded poorly.
>
> > When multiple clients are requesting the same server page, does Ramaze
> > Controller handle these multiple requests somehow?  i.e. have some
> > kind of queue control?
>
> > or would we have to write our own queue functionality for handling
> > multiple client requests?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ramaze" group.
> > To post to this group, send email to ram...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > ramaze+un...@googlegroups.com<ramaze%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/ramaze?hl=en.
>
> --http://codeconnoisseur.org- Dölj citerad text -
>
> - Visa citerad text -

txjflip9557

unread,
Jul 23, 2010, 7:47:49 PM7/23/10
to Ramaze
Great, thanks guys.

J
> > --http://codeconnoisseur.org-Dölj citerad text -
Reply all
Reply to author
Forward
0 new messages