Essay - Published: 2024.04.24 | app-platform | autoscaling | cloud-hosting | create | digital-ocean | serverless-containers | tech |
DISCLOSURE: If you buy through affiliate links, I may earn a small commission. (disclosures)
I build a lot of projects. Most of them get very little traffic but I build them anyway cause I enjoy it and like sharing them.
To make this sustainable I have found ways to host lots of projects cheaply - so people can see them without having to pay for them when no one is looking (which is most of the time).
My general approach to this has been to leverage serverless container cloud options that scale to zero. This allows me to build my apps like I normally would while only paying when people are actually using them. In fact this is how I've hosted this site for < $1 per month for the past several years.
This approach has enabled me to build and host the dozen or so experiments I build every year without racking up runaway cloud bills.
Recently I've been experimenting with hosting projects on Digital Ocean. In this post we'll explore whether Digital Ocean's App Platform supports autoscaling with scale-to-zero.
Both Autoscaling and Scale-to-zero are important cloud attributes for how I build and host projects. It is not useful to me to only have one - I need both for my Creations to be sustainable.
Finding this answer was kind of hard - it's not directly mentioned in any official docs or correspondence. To figure this out I went into the dashboard for one of my projects currently running on App Platform (TravelMap) and tried to setup autoscaling and scale-to-zero.
Here's what I found:

Only Pro accounts can use autoscaling

Autoscaling only available on instance sizes costing >= $75 per month

Autoscale minimum is 1 active container
So all in all:
I still like Digital Ocean's App Platform - they have great ergonomics and if you're running apps that get constant traffic then it can be far cheaper than the alternatives. But it doesn't quite do what I need - it doesn't offer scale-to-zero autoscaling.
For these reasons I'll probably be going back to Google Cloud Run and searching for other alternatives for my side projects.
Q: How are you hosting your apps cheaply at scale?
If you liked this post you might also like:
The best way to support my work is to like / comment / share for the algorithm and subscribe for future updates.