by rtpg · 4y ago · 0 comments
I know it's a bit silly, but anyone building out cloud services should look at this post and think about how easy it is to set up this. This is just slightly more complex than a static site, has a bit of heterogenity, but otherwise is a lot of known tools.
Can your stack provide all of this without breaking the bank for the people signing up? Can it be done without having to learn a bunch of bespoke systems? I think that Heroku's success in particular is totally down to managing this bespoke-ness balance (that is still kinda missing from container-based setups).
But you gotta pay more than 500$, way more.
That's because their product is only slightly more complex than a static site.
I wish every project was as basic as a web server and database but it's pretty rare these days.
I feel like the overwhelming majority of web based software projects can be catered for with exactly this setup.
If it's rare it's because everybody's drunk the Kool-aid
Having a 1-2 day outage because your architecture is not highly-available across data centres like this one just doesn't cut it. And multi-day outages are very much real because of the thundering herd effect as companies rapidly try to move between data centres exhausting capacity.
And much of the complexity in modern day architectures come from high availability and security.
Is it? What functionality are you thinking about that absolutely require more than that?
I find that most ideas even today can be solved with a web server + DB, while developers today like to over-engineer things and think about scaling a service for a million users while they haven't even figured out the value proposition of their product/service yet.
A lot of apps use an "AI" or "machine learning" component which usually just means a second heterogeneous internal service.
For a little bit larger companies it's pretty common to have a data analytics or data warehouse component.
In addition, a web server + database usually require some monitoring system. After you have more than a handful of servers, probably also log aggregation.
If you're just a single or handful of people working on something, you probably don't need any of that.
Once you get a little bigger (or downtime becomes expensive) those things get tacked on quickly.
What you're seeing is survivorship bias where the SaaS companies that are doing well are the ones that can provide a simple, clean UI whilst adding the functionality that you need for the product to be useful.
If you're running a site like this, it's fine to be down for a bit, people will forgive you as you restore from backup (looks like a very solid foundation the site has).
on other bare metals, or on AWS, azure, ...
As long as you have database backup, git code, and build-scripts.
I run something similar (although smaller). My disaster recovery is: I have everything prepared, to go on AWS, if necessary. Would take less, than 1 hr to be back up (database size being the biggest time sink). If I wanted to minimize that time, I could have small DB replica running, so I would just have to run last day of wall files. But for my purposes everything less than a day is good enough.
And then you can take a few days, to find something cheaper, to migrate to.
At my last job we had one of those hyperfancy devops setups with all the fancy devops tools. Literally no one in the company knew how to spin up a new environment. I'm not exaggerating: no one knew how to run a dev environment and when they had to set up a new region for legal purposes it took weeks for the team. All of that was initially set up in an age of legends in the mythical past of a year and a half ago.
Theoretically it would all failover and scale to the moon and back. Emphasis on theoretically because no one seemed to understand how it all worked, so who knows how well it would behave when it failed. There was actually some major downtime in my time there which was rationalized away as "growing pains", but in in my opinion a major factor was just that no one really understood how it al worked.
If something goes wrong with a simple system then often the diagnosis and fix is simple (in this case: just deploy a new environment). If something goes wrong with a complex system then all of this is much harder.
Not saying you can't use these tools correctly or that there isn't an appropriate use for it, but it's a good case study on how the complexity can spin out of control if you're not careful in how you apply it.
He has daily backups for that reason - those can be changed to hourly or even every 15-mins if needed.