Understanding Cloud Functions and Cloud Run
We will begin by reviewing the “serverless” platforms in scope for this chapter, Cloud Functions and Cloud Run. With an understanding of what developers are responsible for in each, we can then review how to use Cloud Build to manage those responsibilities.
Cloud Functions
When looking to run code with as little operational overhead as possible, Cloud Functions is the first place most developers start. On this platform, developers can choose a supported language runtime that Cloud Functions supports and write small chunks of code. Developers can then deploy that code to Cloud Functions, and it will run in production without developers needing to do the following:
- Build their code into an artifact
- Build a container to run their code
- Create infrastructure to run their code
- Manage infrastructure to run and scale their code
- Set up connectivity to instances of their code
- Configure logging and monitoring...