Thanks for sharing! Another approach, with pros/cons, is calling Node.js directly from PHP using dnode php clients (there are two ones, async and sync).
It's more coupled with Node.js instance, but it has "less movable parts". But, I guess, your approach can be used by many distributed nodes. Angel "Java" Lopez @ajlopez On Tue, Nov 19, 2013 at 6:13 AM, Patrick Hund <[email protected]> wrote: > Let's face it — modern webdev is all about real-time. You want to get the > data as soon as possible, ideally as it's published by users or pushed by > data providers. How about we implement very simple, yet powerful > applications that utilize realtime communication between each other? Let's > say for example we have a PHP front-end that allows users to input some > data and on the other end of our stack we have a Node app that needs to get > the data from PHP as fast as possible without polling of any kind. That's > right — Redis and SockJS to the rescue! > > *http://www.technology-ebay.de/the-teams/mobile-de/blog/connecting-php-and-node-with-redis-pub-sub-and-sockjs.html > <http://www.technology-ebay.de/the-teams/mobile-de/blog/connecting-php-and-node-with-redis-pub-sub-and-sockjs.html>* > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
