4 ms·
While this is true that a local computer is often faster than a single cloud instance, I've often noticed code running on cloud instances (dev servers, etc) end
by KiranRao0 4y ago
While this is true that a local computer is often faster than a single cloud instance, I've often noticed code running on cloud instances (dev servers, etc) end up finishing their task more quickly.
It's usually because most tasks I do end up being limited by the network connection to other resources (Postgres DBs, etc). The dev server being in the same datacenter as the resource is a huge advantage in terms of both latency and bandwith.
Again, this is mostly observations from my own workloads, and other people's use cases may be different.
- ttunguz 4y agoYes fair point. I see that pattern when running background tasks locally vs on heroku's workers. In this case, most of the analysis is happening locally without a ton of network use.
- wkdneidbwf 4y agoexactly. people complaining that an ec2 or rds instance isn’t as fast as their laptop are missing the point. go ahead and host your production apps on your laptop then. enjoy yourself!
- wink 4y agoYou're assuming a certain competency in running the cloud setup. I once had a customer where I've actually used a ~3y old middle of the line laptop (not even a dev one) to prove that our software is not at fault for performance problems because it was running all nodes of the production setup/load better than their cloud setup.