On average I will be calling my cloud function every minute but occasionally there will be longer non-active periods up to 20 minutes. But I still want to avoid cold starts.
Is there documented or empirical value?
On average I will be calling my cloud function every minute but occasionally there will be longer non-active periods up to 20 minutes. But I still want to avoid cold starts.
Is there documented or empirical value?
I have 30 minutes in mind, but it's not documented. For Cloud Run, it's usually 15 minutes and it's documented.
However, you can't rely on that. Most of the time, the regular time are used, but sometime it could be shorter if there is crash or maintenance required on the underlying infrastructure.
In addition, those configuration can be change at any time by Google Cloud and without notice. It's serverless; don't rely on the server behavior, you don't manage the servers