Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disadvantages of using NodeJS instead of PHP

I am thinking of using NodeJS for my website instead of my current PHP + Apache setup. Are there any major disadvatanges/advantages to making this switch?

My site will get lots of small requests and occasional requests that require lots of calculations on the server side.

I have a server that I can install anything I want on, so hosting is not a factor in this decision. Although I would like to maximize performance while minimizing memory and processing requirements.

I guess my main question is, when is NodeJS an appropriate solution for a website?

like image 969
Kory Hodgson Avatar asked Feb 02 '12 04:02

Kory Hodgson


1 Answers

  • You can't use any of the pre-existing PHP applications and libraries.
  • You'll need to learn about event-driven programming.

Although those may not always be considered disadvantages per se.

like image 94
Ignacio Vazquez-Abrams Avatar answered Oct 16 '22 18:10

Ignacio Vazquez-Abrams