Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top