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?
Asked
Active
Viewed 840 times
-4
-
6Maybe they have set-ups optimized for serving web-apps? Or maybe your computer just sucks? – Waleed Khan Jan 06 '13 at 04:23
-
1Dude, haven't you seen the commercials? Just say "to the cloud" and your computer grows. – Chris Eberle Jan 06 '13 at 04:31
-
@WaleedKhan My new 15" MacBook Pro Retina sucks? :( – Evan Zamir Jan 06 '13 at 04:36
1 Answers
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