Avatar of dimensionav
dimensionav
Flag for Mexico asked on

Node.js vs PHP?

Hi,

I'm now checking node.js as an oportunity to create webapps with my clients, but I have this doubts that I need to solve:
-Is node.js faster than PHP, ruby or Python? (I've already seen some performance benchmarks between these three, but i only want to confirm it).

-How about security? I've heard that there are some security problems with the sockets and the protocols that node.js uses

-Is there any good framework for node?

-Does Laravell, CodeIgniter or any other PHP framework can be a better option than node.js?

-Is there good support in hosting servers for it?

Any other comments of this topic are welcome.

Regards!
PHPWeb FrameworksJavaScript

Avatar of undefined
Last Comment
F P

8/22/2022 - Mon
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
F P

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
F P

Oh with intercooler, if you want to use it for notifications on updates and such, you might want to create a dummy <div> as a bucket at the end of your code and empty, then replace it with javascript that will modify it to flash/update the results of your POST or other REQUEST with ease.
F P

Oh yeah, the latest trend in languages I have seen are PHP code backend systems which use the JIT (java just in time compiler) to compile your code into C extensions making it blazingly fast over what it is as the interpreted script code which is done by a precompiled C application (php.exe or php binary on your system - *nix won't use exe php binaries). Check out starting with Phalcon, HHVM or PHPNG if you want to go that route. Seems awesome to me, and lots of benchmarking. Another thing to think about is your Webserver engine. nginx is typically faster than Apache, but apache can be easier to understand and use, while comparable in speed if you do it correctly, e.g., don't use htaccess,  but instead write the rules in a configuration file. It doubles the speed.

https://phalconphp.com/en/

http://hhvm.com/

https://wiki.php.net/phpng - PHP creators trying to keep up with the above style implementations.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck