Cloud Run triggers
As we have already learned, the Cloud Run service can be triggered over HTTPS or gRPC. However, these are not the only available options. Thanks to the integration with other Google Cloud services, there is a set of triggers that can be used with Cloud Run:
These triggers are as follows:
- HTTPS or gRPC request: This is the most general way of calling Cloud Run and can be used to create a web API, middleware, reverse proxy, or web applications.
- Pub/Sub: This can use Cloud Run as a webhook where Pub/Sub messages will be pushed.
- Cloud Scheduler: This allows you to run Cloud Run at a scheduled time.
- Cloud Task: Asynchronously executes the Cloud Run service.
- Eventarc: Connects Cloud Run to Eventarc-supported events.
Consult the Google Cloud Run documentation page to understand how you can use these for your use case. If none of these triggers fulfill your use case, you might...