What is the best/fastest/most powerful event-driven, non-blocking I/O platform NodeJS or ReactPHP? Or maybe another platform?
-
A colleague of mine said that ReactPHP could be a good alternative to NodeJS. I knew about NodeJS but I've a PHP background so I think it would be easier to use ReactPHP. If found some URLs that provide benchmarks and opinions of users of Reddit. The benchmarks prove/shows that NodeJS and ReactPHP are almost equal to eachother http://philsturgeon.co.uk/blog/2013/11/benchmarking-codswallop-nodejs-v-php http://www.reddit.com/r/PHP/comments/1b3hit/does_anybody_use_php_react_is_it_anything_like/ Could a proffesional user please provide a good awnser that shows the differences between NodeJS and ReactPHP not only in performance but also in use. Maybe this user could show me some real world examples?
-
Answer:
I found this article http://philsturgeon.co.uk/blog/2013/11/benchmarking-codswallop-nodejs-v-php that was in front page of Hackers News and give you some tips, apparently there is no faster/better/most powerful if you configure it right (both of them). The difference between them is only miliseconds. ******Original Answer************ I don't know about the ReactorPHP but what i do know is that if you use the NodeJs in Linux (important) the NodeJS was implemented calling directly the I/O and don't have to pass throught the S.O., this is something that you have to count.
Carlos Augusto at Quora Visit the source
Other answers
Node.js is still better by mile. ReactPHP still don't solve issues related to PHP itself. Most of PHP libraries is blocking and to make them work in ReactPHP you will need great effort to make anything close to Express.js. To fully use non blocking web server you need to make sure that all expensive IO operations are also non blocking. PHP leaks memory. Currently execution model used by most PHP framework avoid a problem. Typical PHP framework will load whole framework for each request and GC will clear memory afterwards. Making long running process in PHP will require dealing with memory leaks. React have more complex setup to run website. HHVM have similar setup cost but simpler execution model. HMVM and React will never become popular because they remove only benefit of PHP in simple deploy. ReactPHP is practically dead if you check github repository. PHP is not multi threaded and lacks JIT. For anything non trivial there is plenty of competition that have either good multithreading -> Java or have excellent compiler ->V8 or high productivity language Python, Ruby. PHP to move forward should: -start cleaning standard library -improve module, namespace system -start using and support HHVM -focus community on 1-2 frameworks
Marcin Kop
Related Q & A:
- What is the best blogging platform?Best solution by Yahoo! Answers
- What's the best and fastest way to get rid of acne scars on the back and chest?Best solution by Yahoo! Answers
- What is the best and fastest Powerline Ethernet Adapter available?Best solution by Yahoo! Answers
- What is the best/fastest way to burn belly fat?
- What's the best non-medical and non-law job in the US?Best solution by usnews.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.