javascript - Using Node as REST server alongside PHP -


i've got functional site running right in php on apache; php , apache serving needs of serving site content quite nicely. i'm looking convert existing php api server code restful interface; of design issues worked out on front. php doesn't seem fit restful interface, though; enter node.js.

i'd run rest api node.js server, while still serving site content php. reasonable approach, , there potential troubles waiting in wings? i'm planning on using express simplify process of rest api development.

php apache enough serve proper restful interface. being able divide operations proper resources , verbs rest needs. rest way of designing interface , actual implementation, there multiple ways of implementing in php/apache itself. have used zend framework big apis. super simple, .htaccess php file should good. :)

that said, believe node.js give api nice performance advantage after installing it. actual numbers depend upon how backend works.

imo, if have lot of code in php , not facing performance issues, can stick php+apache combo try out node.js.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -