|
Posted by pierre.bru on 09/27/05 16:01
hi,
fist the context: I have a web server which query a mySql database. but
as the number of parralel queries increase, the server slows down too
much.
I got 2 ideas, one of which is to run N deamons which effectively
execute requests. the PHP uses message queuing(1) to queue queries
request to the daemons. but the answer may be quite large, larger than
messages the message queueing service can handle.
I thought to open back a communication link between the current daemon
and the waiting PHP to tranfer/process the result, using the message
queueing service to send back info regarding the opened link.
I thought to open a pipe between the current daemon and the PHP. is
this possible? and if so, how? if not, is an IP link to localhost be as
fast as a pipe?
TIA,
Pierre.
(1) http://www.phpfreaks.com/phpmanual/page/function.msg-get-queue.html
Navigation:
[Reply to this message]
|