-4

I've recently written an app using Node/Express/Angular and it's being run on Nodejitsu. I'm also using Mongolab to host the database. The app pretty clearly runs a lot faster when it's "in the cloud" than on my computer going through localhost which is counter-intuitive to me. What are the reasons for this?

Evan Zamir
  • 8,059
  • 14
  • 56
  • 83

1 Answers1

2

It sounds like a combination of their servers are faster than your local machine, and they have faster network speeds to your database, and the slowest part of your app isn't the network time it takes to send information back and forth to and from your browser, but rather the processing on the server.

Gerrat
  • 28,863
  • 9
  • 73
  • 101