Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Functions is taking too long to execute

There is a sudden spike in the execution time of a controller we have on GCP Cloud Functions. What is the best way to find the root cause for it?

0 1 146
1 REPLY 1

@teamkohbee and you have checked it's not the actual time of your code execution? Cloud functions log execution times (something like execution took 101ms). Could you time your code and provide 3 numbers: how long your code execution takes, how long the function execution takes, and how long does the request take for the client?