No DB connection is made or maintained on the FastAPI side of things in this template
So this is not really an answer to the question.
I saw in the other post you mentioned a project named Artha.ai. They split resources up between Vercel (for the frontend) and Render (for the FastAPI back-end). I’ll have to check to see if this is related to the serverless limitations