Google Cloud Functions 1st Gen vs 2nd Gen

Would you recommend moving from Cloud Functions 1st Gen to 2nd Gen to achieve better performance? I understand 2nd Gen Cloud Functions uses Cloud Run behind the scenes but i do not have any specific requirements / new features that 2nd Gen provides for example just that Gen2 CF uses CR under the hood keeps me interesting :slightly_smiling_face:

  1. Increased timeout
  2. I am not using any EventArc data sources
  3. I do not need the larger instance types that 2nd Gen supports.

With gen2, concurrency is the game changer in terms of performance. Now multiple messages can be ingested by the same cloud function.

Sure what is the default setting , OOB?

So you would advise moving to Gen 2 ?

It depends what you’re Cloud Function is actually doing. If it’s receiving a lot of requests ; yeah ; it will help for sure

See https://cloud.google.com/functions/docs/concepts/version-comparison#comparison-table

I agree concurrency is a big deal so warm starts , cold starts would be less i believe thereby increasing response times