With all the talk this week about Supabase, the open source implementation of Firebase, it's reminded me again the issues that can arise from building a product on a Serverless platform.
You're locked in.
If you run into technical limitations with Supabase or Firebase as you grow you're still stuck doing a lot of re-coding to get away from it.
If you pivot and have new database needs that require something Write heavy, you're going to have a bad time.
The better solution? Build off of Google's Cloud Run or it's open source base Knative.
It gives you all the flexibility of Serverless but you're able to code in any language you like and all that is required is a Dockerfile.
I initially built ChatFox on Cloud Run before encountering just how unreliable it was for a Slack Chat Bot. Thankfully with it just being a Docker Image I spent a few hours and seamlessly moved over the entire application to run on Kubernetes.