Course Overview
In this course, you learn about Cloud Functions, Google's serverless, fully-managed functions as a service (FaaS) product. With Cloud Functions, you implement single-purpose functions that respond to HTTP requests and process events from your cloud infrastructure.
Who should attend
- Partners and customers who want to learn about using Cloud Run functions and improve their application development skills on Google Cloud.
Prerequisites
- Knowledge of Google Cloud console, gcloud CLI, and basic programming experience in Node.js or Python.
- Some understanding of other Google Cloud services that include Cloud Storage, and Pub/Sub.
- Understanding of HTTP, and experience with using HTTP client tools like curl.
- Completion of the Google Cloud Fundamentals: Core Infrastructure (GCF-CI) course is recommended.
Course Objectives
- Recognize the benefits of and use cases for Cloud Functions in modern application development.
- Understand how to build, test, and deploy Cloud Functions.
- Secure and connect Cloud Functions to resources, and cloud databases.
- Use best practices with Cloud Functions.
Outline: Developing Applications with Cloud Run Functions on Google Cloud (DACFGC)
Module 01 - Introduction to Cloud Run Functions
Topics
- Cloud Run functions
- Features and benefits of Cloud Run functions
- Cloud Run functions use cases
- Supported language runtimes and regions
Objectives
- Define Cloud Run functions.
- Identify the use cases, features, and benefits of Cloud Run functions.
- Distinguish the types of Cloud Run functions, and identify the supported languages for developing functions.
- Develop and deploy a Cloud Run function using the Google Cloud console and gcloud CLI.
Activities
- Lab: Develop and Deploy Cloud Run Functions
- Quiz
Module 02 - Calling and Connecting Cloud Run Functions
Topics
- Cloud Run functions triggers
- Connect Cloud Run functions with Workflows
- Connect to a VPC network
Objectives
- Understand the different kinds of triggers available, and learn how to specify triggers for functions.
- Connect services and functions with workflows.
- Connect functions to resources in a VPC network.
Activities
- (Optional) Lab: Connect Cloud Run Functions
- Quiz
Module 03 - Securing Cloud Run Functions
Topics
- Secure access to Cloud Run functions.
- Authenticate to Cloud Run functions.
- Protect Cloud Run functions.
Objectives
- Secure Cloud Run functions with identity and network-based access controls.
- Understand function identity.
- Understand how to authenticate and authorize access to functions for invocation and administration.
- Protect functions and related data with encryption keys.
Activities
- Quiz
Module 04 - Integrating with Cloud Databases
Topics
- Connect Cloud Run functions to Memorystore.
- Use environment variables.
- Connect Cloud Run functions to Firestore.
- Use secrets with Cloud Run functions.
Objectives
- Integrate Cloud Run functions with cloud databases such as Firestore and Memorystore.
- Use secrets with Cloud Run functions.
- Use environment variables with Cloud Run functions.
Activities
- Lab: Integrate Cloud Run Functions with Firestore
- Quiz
Module 05 - Best Practices for Functions
Topics
- Best practices implementing functions
- Improving performance and networking
- Retrying functions
- Function configuration
- Scaling and traffic splitting
Objectives
- Use best practices when developing and implementing functions.
- Understand how to retry event-driven functions on failure.
Activities
- Quiz