Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantages of Erlang over (something like) node.js?

I realize that they are different beast used to solve different problems, but I would like to ask for an enumerated list of advantages of Erlang over node.js (and vice-versa). When would you use one over the other?

like image 447
fogus Avatar asked Oct 08 '10 03:10

fogus


2 Answers

Erlang is a language and a runtime. I'm assuming you wish a comparison of the erlang runtime with node.js

First I'll list the similarities:

  • Both lend themselves to event driven programming.
  • Both focus on highly asynchronous programming.

And then then the advantages Erlang has:

  • Erlangs message passing abstracts the differences between local and distributed processes making distributed programming easier.
  • Erlangs hot code loading allows for in place releases on running services without disrupting any current activity.
  • Erlang has superior tools for packaging and deployment.
  • Erlangs supervisor and gen_server behviors provide a superior framework for building extremely robust and fault tolerant systems.
like image 96
Jeremy Wall Avatar answered Nov 16 '22 02:11

Jeremy Wall


Erlang is 20 years old, and has been battle-tested many times. Uses all cores on your systems and makes clustering easy.

node.js is still very young, will only use one core per runtime.

And all what Jeremy Wall says.

like image 21
Eric Avatar answered Nov 16 '22 01:11

Eric