Reputation: 630
I'm trying to make server side structure for my new project
project will be web application which should be pretty fast
I think that using sockets will be faster than http requests and I don't want to decrease user experience with lots of page reloads. so I'm planning to use socket.io but I want to write core of application in PHP
so I came up with idea to use Nodejs as server and use PHP-FPM from nodejs to use php I need your suggestion is it bad idea ? if yes then why ? and if not how can I achieve using php-fpm from nodejs ?
and if you have better idea to build this kind of structure or any other suggestions please tell me
I'm planing to use latest software in all components including php 5.4+ and maybe 5.5 will be released as stable until I finish project
thanks
Upvotes: 0
Views: 274
Reputation: 212412
I've just started using Ratchet as a PHP websockets server, and it's pretty good, very easy to code for; and wouldn't have the overhead of nodejs <--> PHP-FPM
Don't know how much it will scale up with large numbers of users though.
Upvotes: 1