Cloud Zone is brought to you in partnership with:

A GNU/Linux g33k CLI+Web loving computer polyglot. Hemanth is a DZone MVB and is not an employee of DZone and has posted 16 posts at DZone. You can read more from them at their website. View Full User Profile

Heroku vs. Nodejitsu for node.js

09.19.2012
| 6800 views |
  • submit to reddit
It all started when I wanted to try out node with websockets with ws and found that -- strange but true -- Heroku doesn't support node's ws. It does, however, support socket.io, which internally uses ws for its client. Well, Heroku is an old horse focusing on many programming languages.

On the other hand, Nodejitsu is all node.js clouds. Simple. Scalable. Enterprise-ready! Deploying apps here feels like you're working on localhost.

I'll give you a better picture of why Nodejitsu is a clear winner for node.js! Let's see the workflow of creating and deploying nodejs apps with these two contenders:

First up, Heroku --

Steps to deploy node to Heroku:

  • Create a node app and test locally.

  • Add a Procfile with web: node server.js

  • Install and setup heroku gem.

  • $ heroku app:create <app_name>

  • $ git push heroku master

  • heroku ps:scale web=1

"Heroku free version has no support for ws yet...so holding it for now"

Nodejitsu FTW!:

Steps to deploy node app to Nodejitsu:

  • Create an account at nodejitsu

  • Follow the mail that you get from them i.e : sudo npm install jitsu -g ; jitsu users confirm <user> <uniq_id>

  • Now create any node app, say in the dir called myapp

  • And finally jistsu deploy that's it!

So basically after you're logged in, it's just jistsu deploy and it supports all npm moduels!

You still think Heroku is a winner? Anyway, that might be relative, I'm not against anyone, just expressing my thoughts.

I quote :

"Support: I was blocked for 10.5 hours on a tiny bug with Heroku that ensured I couldn't db:push to sync up my databases. It took an awful lot of effort to get in touch with someone. With Nodejitsu, that's completely different. They're heavily active in IRC and put up with all my inane questions. In #heroku, I just get herobot spamming every ten minutes."

I've had the same experience.

Published at DZone with permission of Hemanth Madhavarao, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)