0%

Book Description

Learn how to build a serverless real-world application in the cloud that’s reliable, secure, maintainable, and can handle millions of users. If you have experience building traditional web applications, this practical guide shows you how to get started with serverless. Cloud engineer Wietse Venema takes you through the steps necessary to build serverless applications with Cloud Run, a container-based serverless platform on Google Cloud.

Through the course of the book, you’ll learn how to become productive with serverless technology. You will build and explore several example applications that highlight different parts of the serverless stack, using (light) frontend technology and Go on the back end. You can also follow the lessons in the book using your own project on Google Cloud Platform.

You’ll learn how to:

  • Build a serverless application with Google’s Cloud Run and Firestore
  • Approach testing and development
  • Handle user management and authentication
  • Combine serverless with a traditional relational database
  • Run and monitor production services
  • Integrate your application with external APIs

Table of Contents

  1. Preface
    1. Conventions Used in This Book
    2. O’Reilly Online Learning
    3. How to Contact Us
  2. 1. The What and Why of Serverless
    1. Serverless Cloud Infrastructure
      1. Physical and Virtual Infrastructure
      2. Serverless Infrastructure
      3. Compute
      4. Data
      5. Serverless Applications
    2. Key Benefits of Serverless
      1. Deployments are Easy
      2. There Are No Servers to Manage
      3. Scalable Out of the Box
      4. Resilience
      5. A Different Cost Model
    3. Concerns About Serverless
      1. Portability
      2. Unpredictable Costs
      3. When Things Go Really Wrong
      4. Migration Effort
      5. When You Don’t See the Benefits Work for You
      6. Is Serverless Only for Green-Field Projects?
    4. What about Kubernetes?
    5. Why Go
    6. Why Google Cloud
    7. Summary
    8. References
  3. 2. Understanding Serverless Services with Cloud Run
    1. First Service with Cloud Run
      1. Step 1: Write Code
      2. Step 2: Package It into a Container
      3. Step 3: Build with Cloud Build, Run with Cloud Run
    2. Understanding Cloud Run
      1. Elastic Scalability
      2. No Session Affinity
      3. Ephemeral Container Instances
      4. Down-Throttling Idle Instances
      5. Ephemeral Disk Storage
      6. Long-Lived TCP Connections
      7. Cloud Run Key Points
    3. Choosing a Serverless Compute Product on Google Cloud
      1. Source-based Functions with Cloud Functions
      2. Container-based Services with Cloud Run
      3. App Engine: Platform as a Service
      4. Key Differences
      5. What Will the Future Look Like?
    4. Summary
3.145.55.169