How Not To Lose $100k in a Day with a Serverless Architecture Use Django instead.
Do Not Use Recursion, Ever!!!
One Day while working at a startup in Atlanta, GA, we learned we had a $100k Bill from Azure. The Day before we had $100k of Azure credit for the startup to work with. We had used our credits and the SaaS was temporarily shut down to prevent losing more money.?
The SaaS the company was developing was using Express, Apollo, Vuejs/Nuxtjs, and some Python Here and there. The Backend was a Serverless Express/Appolo, and that was the problem. The project made heavy use of recursion and someone(the intern) forgot to write a break statement in a part of the backend business logic.?
The backend was a ForkBomb waiting to happen. This is a very easy thing to do with recursive functions and functional programming. I was advocating for the complete refactoring of the backend and performing basic best practices like code review and GitOps to find any and prevent such issues, but corporate wanted it pushed to prod now!!! Which led to the predictable outcome.
Why Django?
Django uses a straightforward MVC-like structure. Its "batteries-included" approach offers many built-in features like database management and user authentication. This helps startups quickly turn ideas into working prototypes without worrying about choosing extra tools.?
Monolithic Backends are Great, you can run them on cheap VPS like Fly.io and Linode. This reduces the operating cost and makes it easier to achieve profitability at your startup. Mononelic Backends are also much simpler to design and maintain.?
Want to Learn More, Contact Me.?
I am Bailey Burnsed, I build Software for $997/month