4 ms·
I wonder whether there will emerge some design patterns in apps to enable easy switching between on-premises and cloud infra. Thinking about it logically, the
by mjgs 6y ago
I wonder whether there will emerge some design patterns in apps to enable easy switching between on-premises and cloud infra.
Thinking about it logically, the safest approach is always going to be build for on-premises infra first (or standard VPSs), then modify the code to support cloud services in addition, to get the added benefits of scaling at cheaper costs.
That way you can always switch back to on-premises if the cloud provider starts behaving terribly. Perhaps there is a performance hit, but at least you have an option.
Worth mentioning that there are some use cases that are only possible using cloud infra due to scaling constraints.
This is the approach I took building my SaaS. It’s more difficult initially, but I had an infra that could easily be moved. I was using my own version of backend queues etc, so modifying the code to switch to Amazon SQS would theoretically have been possible:
https://blog.markjgsmith.com/2020/11/26/looking-back-at-linkblogdotio.html https://blog.markjgsmith.com/2020/11/26/looking-back-at-link...