Book Image

Hands-On Serverless Computing with Google Cloud

By : Richard Rose
Book Image

Hands-On Serverless Computing with Google Cloud

By: Richard Rose

Overview of this book

Google Cloud's serverless platform allows organizations to scale fully managed solutions without worrying about the underlying infrastructure. With this book, you will learn how to design, develop, and deploy full stack serverless apps on Google Cloud. The book starts with a quick overview of the Google Cloud console, its features, user interface (UI), and capabilities. After getting to grips with the Google Cloud interface and its features, you will explore the core aspects of serverless products such as Cloud Run, Cloud Functions and App Engine. You will also learn essential features such as version control, containerization, and identity and access management with the help of real-world use cases. Later, you will understand how to incorporate continuous integration and continuous deployment (CI/CD) techniques for serverless applications. Toward the concluding chapters, you will get to grips with how key technologies such as Knative enable Cloud Run to be hosted on multiple platforms including Kubernetes and VMware. By the end of this book, you will have become proficient in confidently developing, managing, and deploying containerized applications on Google Cloud.
Table of Contents (19 chapters)
1
Section 1: App Engine
4
Section 2: Google Cloud Functions
9
Section 3: Google Cloud Run
14
Section 4: Building a Serverless Workload

To get the most out of this book

It would be best if you have a basic understanding of how to navigate around Google Cloud, including how you navigate to the control panel of products provided, and also how to open Cloud Shell.

While the majority of the activities in this book require a Google Cloud project, an alternative is to use a sandbox environment such as Qwiklabs (https://qwiklabs.com). Using a sandbox will ensure that any changes you may make do not impact your regular Google Cloud project.

The majority of the chapters include example code that is available via the following link:

https://github.com/PacktPublishing/Hands-on-Serverless-Computing-with-Google-Cloud-Platform

This repository contains the baseline components required for the sections as well as a solution sub-directory.

Undertake all of the end-of-chapter quizzes, and address any wrong answers before moving on to the next chapter. You must know why something is the answer, rather than just knowing that it is the answer.

The book is split into four parts. To gain an overview of a particular product, I suggest reading the sections on App Engine (chapters 1-2), Cloud Functions (chapters 3-6), and Cloud Run (chapters 7-10). To see a working example of how a serverless workload is deployed on Google Cloud, please refer to the examples provided in chapters 11 and 12.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the Support tab.
  3. Click on Code Downloads.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-on-Serverless-Computing-with-Google-Cloud. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In Command Prompt, type hostname and press the Enter key."

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select Properties from the context menu."

Warnings or important notes appear like this.
Tips and tricks appear like this.