Cloud Functions
Deploy a simple HTTP function.
Last updated
Was this helpful?
Deploy a simple HTTP function.
Last updated
Was this helpful?
Cloud Function is a scalable, pay as you go, Functions-as-a-Service (FaaS).
Spring Cloud Functions has pre-GA support for Cloud Functions for Java 11. See Spring Cloud Functions Reference Documentation for more details.
This guide currently uses a non-Spring example for Cloud Functions.
Once a HTTP function is deployed, you can connect to it using curl
. You can also find the URL:
Trigger the function with curl
:
Alternatively, you can also use gcloud
:
By default, Cloud Functions will deploy to the smallest 256MB instance. You can specify a larger instance and configure environment variables with the gcloud
CLI: