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.
Why might a hosted web app run faster than on localhost? [closed]
-
13-01-2022 - |
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow