Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to get a handle on the concepts and best practices of cloud development with Node.js, because I haven't found a good explanation.

  1. When you buy a virtual machine from Rackspace or wherever, do you get SSH access and then you can run whatever you want within the limitations of your RAM/CPU allocations?

  2. Can we run a MongoDB process in the same virtual machine as Node, or do we need to purchase a separate virtual machine? Would communication between the two be faster on the same virtual machine than if they were separate?

  3. Is it a good idea to use nginx in conjunction with Node for serving the static files? (Same virtual machine or different ones?)

  4. Our application requires a database and GraphicsMagick for image manipulation. If we use a service like Heroku or Nodejitsu (I believe these are called platform-as-a-service) then all we get is an instance of Node, not a whole virtual machine, and therefore we will have to shop elsewhere for our database hosting and GraphicsMagick processing power, correct?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
  1. Yes.
  2. Yes, you can run them on the same machine. Whether it would be faster depends on the same machine depends on the specs of the machine as well as the specs of the network. If you have a low end machine, network maybe faster.
  3. I believe most people use nginx as a proxy to send web requests to the correct node server. http://stackoverflow.com/questions/5009324/node-js-nginx-and-now
  4. It says on Heroku's website, "Run Anything". They also offer DB options. Nodejitsu says it has support for ImageMagick. The idea with these two services is to be an all-in-one package. Whether or not that's true is up to you.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.