You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John den Haan <Jo...@chello.nl> on 2009/12/26 14:29:52 UTC

Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

I figure SOAP might be what you need.

-
This message was sent using a mobile device. I apologize for any  
seplling errors that may result.

Op 26 dec 2009 om 14:04 heeft Andrei Paul Nistor  
<pa...@gmail.com> het volgende geschreven:\

> Hello all.
>
> Question: Is it any way possible to access through the httpd server  
> resources like objects or remote procedures that run on the server  
> in binary form and dont get disposed after each call of the resources?
>
> I read lately alot about cgi and the apache server but i haven't  
> found an answer for what I'm looking for. I developed a small  
> "program" (script) in javascript that runs local in each browser. I  
> also can comunicate with a http server via ajax form within the  
> browsers and ask for resouces.  Now I need a way to create on the  
> serverside a program that builds up compiled objects that can read  
> each other properties and running in an semi-endless loop, it also  
> has to run very fast, but it seems i miss the technologie for this.
>
> Lets think about it like in each browser we have players of a game.   
> So we have in each browser an object with properties x,y  as  
> coordinates. I can post via ajax to the server if on the client a  
> directional key is pressed. The server has to compute the new  
> position and reply back to the client its new position but not only  
> its new position cause the server has to reply also the computed  
> coordinates of the other objects so he needs at least read the  
> coordinates of the other objects. So there can be around 25 requests/ 
> s from a browser (thats not the problem). The other problem is the  
> server program has to run in an endless loop until only a player  
> remains alive. And the last problem is that the program has to run  
> fast because on the server i need to do collision detection etc.
>
> I hope you guys and girls can help me with some advises of how i can  
> do this via the httpd server or point me to some other tehnologies  
> that could solve my problems.
>
> Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

Posted by Morten Kirkegaard Poulsen <mo...@fabletech.com>.
On Sat, 2009-12-26 at 18:20 +0200, Andrei Paul Nistor wrote:
> This sounds something that I'm interested in i mean onc-rpc
> implemented in php and this could solve my problem. I would like to
> also help you guys if its that what I'm thinking about.  If you could
> share the code it would be more than what i was asking for and i
> appreciate it alot.

http://fabletech.com/php-sunrpc/php-sunrpc-20091226.tar.bz2

Please let me know if you have any problems.

Best regards,
Morten

-- 
Morten Kirkegaard Poulsen <mo...@fabletech.com>
CTO, FableTech
http://fabletech.com/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

Posted by Andrei Paul Nistor <pa...@gmail.com>.
This sounds something that I'm interested in i mean onc-rpc implemented in
php and this could solve my problem. I would like to also help you guys if
its that what I'm thinking about.  If you could share the code it would be
more than what i was asking for and i appreciate it alot.

On Sat, Dec 26, 2009 at 4:20 PM, Morten Kirkegaard Poulsen <
mopo@fabletech.com> wrote:

> Hi Andrei,
>
> On Sat, 2009-12-26 at 16:01 +0200, Bogdan Cristea wrote:
> > On Saturday 26 December 2009 15:56:43 Andrei
> > Paul Nistor wrote:
> > > I thought about using soap as an comunication
> > > protocol but in fact the
> > > remote procedures are php scripts or asp i need
> > > compiled code that can
> > > execute fast and share objects, the
> > > communication protocol isnt important
> > > it can be anything.
> >
> > CORBA offers a framework for client server
> > communication. In linux omniorb implements
> > CORBA standard, but I don't know how to integrate
> > this with apache.
>
> We have implemented ONC-RPC (a/k/a SunRPC) in PHP and modified the
> rpcgen compiler to output PHP stubs. We use that in a setup like this:
>
> client <--HTTP--> Apache with mod_php <--RPC--> native daemon
>
> One team maintains the native daemon and another maintains the PHP code
> facing the client. We just share the .x file describing the interface.
>
> It performs well, and is very easy to maintain.
>
> If you are interested, we are willing to share the code. It's not very
> much, but it does the job perfectly.
>
> Best regards,
> Morten
>
> --
> Morten Kirkegaard Poulsen <mo...@fabletech.com>
> CTO, FableTech
> http://fabletech.com/
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

Posted by Morten Kirkegaard Poulsen <mo...@fabletech.com>.
Hi Andrei,

On Sat, 2009-12-26 at 16:01 +0200, Bogdan Cristea wrote:
> On Saturday 26 December 2009 15:56:43 Andrei 
> Paul Nistor wrote:
> > I thought about using soap as an comunication 
> > protocol but in fact the
> > remote procedures are php scripts or asp i need 
> > compiled code that can
> > execute fast and share objects, the 
> > communication protocol isnt important
> > it can be anything. 
> 
> CORBA offers a framework for client server 
> communication. In linux omniorb implements 
> CORBA standard, but I don't know how to integrate 
> this with apache.

We have implemented ONC-RPC (a/k/a SunRPC) in PHP and modified the
rpcgen compiler to output PHP stubs. We use that in a setup like this:

client <--HTTP--> Apache with mod_php <--RPC--> native daemon

One team maintains the native daemon and another maintains the PHP code
facing the client. We just share the .x file describing the interface.

It performs well, and is very easy to maintain.

If you are interested, we are willing to share the code. It's not very
much, but it does the job perfectly.

Best regards,
Morten

-- 
Morten Kirkegaard Poulsen <mo...@fabletech.com>
CTO, FableTech
http://fabletech.com/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

Posted by Bogdan Cristea <cr...@gmail.com>.
On Saturday 26 December 2009 15:56:43 Andrei 
Paul Nistor wrote:
> I thought about using soap as an comunication 
protocol but in fact the
> remote procedures are php scripts or asp i need 
compiled code that can
> execute fast and share objects, the 
communication protocol isnt important
>  it can be anything.
> 

CORBA offers a framework for client server 
communication. In linux omniorb implements 
CORBA standard, but I don't know how to integrate 
this with apache.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] I need a technique for executing very fast code behind the httpd apache server.

Posted by Andrei Paul Nistor <pa...@gmail.com>.
I thought about using soap as an comunication protocol but in fact the
remote procedures are php scripts or asp i need compiled code that can
execute fast and share objects, the communication protocol isnt important it
can be anything.

With respect Andrei Paul Nistor

On Sat, Dec 26, 2009 at 3:29 PM, John den Haan <Jo...@chello.nl> wrote:

> I figure SOAP might be what you need.
>
> -
> This message was sent using a mobile device. I apologize for any seplling
> errors that may result.
>
> Op 26 dec 2009 om 14:04 heeft Andrei Paul Nistor <pa...@gmail.com>
> het volgende geschreven:\
>
>
>  Hello all.
>>
>> Question: Is it any way possible to access through the httpd server
>> resources like objects or remote procedures that run on the server in binary
>> form and dont get disposed after each call of the resources?
>>
>> I read lately alot about cgi and the apache server but i haven't found an
>> answer for what I'm looking for. I developed a small "program" (script) in
>> javascript that runs local in each browser. I also can comunicate with a
>> http server via ajax form within the browsers and ask for resouces.  Now I
>> need a way to create on the serverside a program that builds up compiled
>> objects that can read each other properties and running in an semi-endless
>> loop, it also has to run very fast, but it seems i miss the technologie for
>> this.
>>
>> Lets think about it like in each browser we have players of a game.  So we
>> have in each browser an object with properties x,y  as coordinates. I can
>> post via ajax to the server if on the client a directional key is pressed.
>> The server has to compute the new position and reply back to the client its
>> new position but not only its new position cause the server has to reply
>> also the computed coordinates of the other objects so he needs at least read
>> the coordinates of the other objects. So there can be around 25 requests/s
>> from a browser (thats not the problem). The other problem is the server
>> program has to run in an endless loop until only a player remains alive. And
>> the last problem is that the program has to run fast because on the server i
>> need to do collision detection etc.
>>
>> I hope you guys and girls can help me with some advises of how i can do
>> this via the httpd server or point me to some other tehnologies that could
>> solve my problems.
>>
>> Thanks.
>>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>