Building APIs with Cloud Run
If I want to build an API, I usually use Cloud Run. In Cloud Run, you run a container and in that container, you run a web server that handles a base URL in this format:
https://<service-name>-<hash>-<region>.a.run.app
You can then have the web server handle any path under that base URL such as:
https://<service-name>-<hash>-<region>.a.run.app/hello
https://<service-name>-<hash>-<region>.a.run.app/bye
Building APIs with Cloud Functions
In Cloud Functions, you only have access to a function (no web server) and that function can only handle the base path:
Read More →