Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PHP to node.js communication

PHP to node.js communication

Problem

I am trying to create a notification system very much like the SO one ( the one when receiving a new message ). My site is built in PHP and i would like the notifications to occur when data is inserted to the DB from the PHP.

At the top of my head i would just curl the node server passing it some post parameters, is that right way to do?

Are there any good practice (security, performances..)?

Problem courtesy of: silkAdmin

Solution

Look at the redis channels. We use this practice for same prupose. Benefits : you can have a lot of node.js servers and they will receive notifications almost a the same time...

Solution courtesy of: Selvatico

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

PHP to node.js communication

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×