I am using Cloud Run with FireStore NoSQL DB. Sometime I need to fetch data for 365 days. As this is NoSQL, I need to short data in CloudRun instance but that instance is getting crashed with internal server error if I am querying too much data maybe more than 15,000 query from cloud run to fireStore DB. I am using NodeJs (Express Server) as backend.
Anyone have any idea if this is limitation of Express and If I rewrite backend using GoLang it will solve this issue and should I consider moving to GKE? I have faced same issue on App Engine as well.
I tried same thing from Cloud VM, it worked. So this is not DataBase problem I believe.
As workaround I am pre-calculating data so this is not a blocker for now but need to be fixed.
It is definitely possible to raise the number of CPUs and amount of memory per instance in Cloud Run. I don’t know if that will fix this issue, but I wanted to make sure you were aware of that.
Thank You. I tried increasing to bigger instance it didn’t help. I didn’t increase cpu count, thinking nodejs can’t take advantage of it. That’s why we are re-writing application with Golang.