Monday, 1 May 2017

Will it be fine to make socket server in PHP for REST APIs?

I've tested both things.

  1. Nginx and PHP scripts that serves REST Api (general).
  2. Nodejs in front and stay connected to 3-4 instance of PHP server (written in PHP) using sockets for input/output to process rest api information. PHP here keeps running in RAM and db connections are persistent here.

So i've tested both things and 2nd one's performance is amazing what could be drawbacks of this approach and will it be stable in production.



via dev.mraj

No comments:

Post a Comment