Google Cloud Functions is a serverless execution environment that allows you to run code without managing servers. It is a part of Google Cloud's serverless platform. Google Cloud Functions executes code in response to events, such as HTTP requests or events in other Google Cloud services.
Key features include automatic scaling, pay-as-you-go billing, and support for multiple programming languages like Node.js, Python, Go, Java, .NET, Ruby, and PHP. Google manages the infrastructure, scaling, and security of the code. You are only billed for the function's execution time, metered to the nearest 100 milliseconds, and pay nothing when the function is idle. The first 2 million invocations per month are free.
Google Cloud offers a perpetual free tier for compute-time resources. In addition to free invocations, the free tier provides 400,000 GB-seconds and 200,000 GHz-seconds of compute time, and 5GB of Internet data transfer out per month. Pricing is also based on compute time, which is calculated by allocated memory and CPU resources. Cloud Functions is available in specific regions managed by Google. As of August 2024, Google Cloud Functions (2nd gen) was renamed Cloud Run functions and integrated under the Cloud Run umbrella.