Re: GSOC Idea, RPC Server
| From: | mike | Date: | Thu, 19 Mar 2009 05:36:31 +0000 |
| Subject: | Re: GSOC Idea, RPC Server | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43401@lists.php.net to get a copy of this message | ||
On Wed, Mar 18, 2009 at 10:06 PM, Cesar D. Rodas <saddor@gmail.com> wrote:
> Hey mike,
> It is different, my idea is that the worker execute PHP code (I will
> embed PHP into C or C++), AFAIK gearman execute C code. The main
> advantage is that you can "deploy" your app. without recompile your
> worker, and would be easy to migrate from an existing php code.
Not quite sure it is different.
You're looking for a distributed worker mechanism, right? That's what
Gearman does. and it has a PECL module to interface with it.
Basic example here: http://www.oddments.org/notes/GearmanMySQLWebinar200902.pdf
It's written in C now (was in Perl) and it can execute whatever on the
worker side it looks like, which can be PHP code to do anything.