No server management
Deploy your code and let Google run and scale it for you. Cloud Functions abstracts away all the underlying infrastructure, so that you can focus on your code and build applications faster than ever before.
Pay only while your code runs
Cloud Functions are ephemeral, spinning up on-demand and back down in response to events in the environment. Pay only while your function is executing, metered to the nearest 100 milliseconds, and pay nothing after your function finishes.
Serve users from zero to planet-scale without even thinking about any infrastructure. Cloud Functions automatically manages and scales underlying infrastructure with the size of workload.
Runs code in response to events
Cloud Functions allows you to trigger your code from Google Cloud Platform, Firebase, and Google Assistant, or call it directly from any web, mobile, or backend application via HTTP.
Connects and extends services
Cloud Functions lets you treat all GCP, Firebase, Google Assistant, and 3rd-party cloud services as building blocks, connect and extend them with code, and rapidly move from concept to production.
Open and familiar
Supported event sources
You can invoke Cloud Functions in response to messages published to Cloud Pub/Sub topics. Cloud Pub/Sub is a globally distributed message bus that automatically scales as you need it and provides a foundation for building your own robust, global services.
You can invoke Cloud Functions in response to change notifications from Cloud Storage such as object addition (create), update (modify), or deletion.
You can invoke Cloud Functions directly over HTTP(S). Each function is given a dedicated domain and a dynamically generated SSL/TLS certificate for secure communication. Function execution result is returned in response to an HTTP request.
You can invoke Cloud Functions in response to log changes in Stackdriver Logging. Stackdriver Logging allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services (AWS).
You can invoke Cloud Functions in response to mobile-related events from Firebase such as changes to data in the Realtime Database, new user sign-ups via Auth, and conversion events in Analytics.
Logging, monitoring, and debugging
You can monitor and troubleshoot performance of your functions using Google Stackdriver suite of tools.
Logs emitted from your Cloud Functions are automatically written to Stackdriver Logging
Cloud Functions performance telemetry is recorded in Stackdriver Monitoring
You can investigate your code’s behavior in production using Stackdriver Debugger
Errors emitted from your functions are automatically captured and reported in Stackdriver Error Reporting
Building and testing
You can create, manage, and deploy Cloud Functions via the Cloud SDK (gcloud), Cloud Console web interface, and both REST and gRPC APIs. Build and test your functions using standard Node.js, Python, and Go runtimes along with your favorite development tools.
You can deploy Cloud Functions from your local machine or from a source repository like GitHub or Bitbucket.
Automatic dependency resolution
You do not need to package up your entire function along with its dependencies for deployment. Send us your source code and your manifest and we will do the rest.