
Building Serverless Applications with Google Cloud Run: A Real-World Guide to Building Production-Ready Services
- Length: 182 pages
- Edition: 1
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2020-12-29
- ISBN-10: 1492057096
- ISBN-13: 9781492057093
- Sales Rank: #222526 (See Top 100 Books)
here Learn how to build a serverless real-world application in the cloud that’s reliable, secure, and scalable. If you have experience building web applications on traditional infrastructure, this comprehensive and approachable guide shows you how to get started with serverless containers on Cloud Run.
source url Throughout the course of the book, you’ll deploy and explore several example applications that highlight different parts of the serverless stack on Google Cloud. Combining practical examples with fundamentals, this book will appeal to both developers who are early in their learning journey and experienced practitioners.
enter You’ll learn about:
- Building a serverless application with Google Cloud Run.
- The fundamentals of containers, and building container images with (and without) Docker.
- Connecting your application with a managed relational database.
- Scheduling background tasks (it’s different on a serverless runtime).
- Managing and defining permissions using Cloud IAM.
- Using a managed Redis database to store session data.
- Making the most of logging, monitoring, tracing and error reporting.
- Recreating your entire project with Infrastructure as Code using Terraform.
- Portability with Kubernetes and Knative Serving.
https://www.annarosamattei.com/?p=juif28z Foreword Preface Why I Wrote This Book Who This Book Is For Why Use the Go Language? Navigating This Book Conventions Used in This Book Using Code Examples O’Reilly Online Learning How to Contact Us Acknowledgments 1. Introduction Serverless Applications A Simple Developer Experience Autoscalable Out of the Box A Different Cost Model Serverless Is Not Functions as a Service Google Cloud Serverless on Google Cloud Cloud Run Service Container Image Scalability and Self-Healing HTTPS Serving Microservices Support Identity, Authentication, and Access Management Monitoring and Logging Transparent Deployments Pay-Per-Use Concerns About Serverless Unpredictable Costs Hyper-Scalability When Things Go Really Wrong Separation of Compute and Storage Open Source Compatibility Summary 2. Understanding Cloud Run Getting Started with Google Cloud Costs Interacting with Google Cloud Google Cloud Projects Installing and Authenticating the SDK Installing Beta Components Deploying Your First Service Deploying the Sample Container Region Structure of the HTTPS Endpoint Viewing Your Service in the Web Console Deploying a New Version Revision Understanding Cloud Run Container Life Cycle CPU Throttling Task Scheduling and Throttling Load Balancer and Autoscaler Concurrent Request Limit Autoscaler Tuning the Concurrency Setting Cold Starts Disposable Containers In-Memory Filesystem Ready for Requests Cloud Run Key Points Choosing a Serverless Compute Product on Google Cloud Cloud Functions: Glue Code App Engine: Platform as a Service Key Differences What Will the Future Look Like? Summary 3. Building Containers Containers: A Hands-On Exploration Running an Interactive Shell Overriding the Default Command Running a Server Containers from First Principles Inside a Container Image The Linux Kernel Container Isolation Starting a Container Building a Container with Docker Dockerfile Instructions Installing Additional Tooling Smaller Is Better When Deploying to Production Creating Small Containers with Distroless Artifact Registry Building and Tagging the Container Image Authenticating and Pushing the Container Image Building a Container Without a Dockerfile Go Containers with ko Java Containers with Jib Cloud Native Buildpacks Cloud Build Remote Docker Build Advanced Builds Running Arbitrary Programs Connecting with Version Control Shutting Down Summary 4. Working with a Relational Database Introducing the Demo Application Creating the Cloud SQL Instance Understanding Cloud SQL Proxy Connecting and Loading the Schema Securing the Default User Connecting Cloud Run to Cloud SQL Disabling the Direct Connection Deploying the Demo Application Connection String Public and Private IP Limiting Concurrency Transaction Concurrency Resource Contention Scaling Boundaries and Connection Pooling External Connection Pool A Real-World Example Cloud SQL in Production Monitoring Automatic Storage Increase High Availability Making Your Application Resilient Against Short Downtime Shutting Down Summary 5. Working with HTTP Sessions How HTTP Sessions Work Storing Sessions in Memorystore: A Hands-On Exploration Creating a Memorystore Instance What Is a VPC Connector? Creating a VPC Connector Deploying the Demo App Alternative Session Stores Session Affinity Use Cases Session Affinity Is Not for Session Data Shutting Down Summary 6. Service Identity and Authentication Cloud IAM Fundamentals Roles Policy Binding Service Accounts Creating and Using a New Service Account Sending Authenticated Requests to Cloud Run Deploying a Private Service Using an ID Token to Send Authenticated Requests When Is an ID Token Valid? Programmatically Calling Private Cloud Run Services Google Frontend Server A Story About Inter-Service Latency Demo Application Embedded Read-Only SQL Database Running Locally Edit, Compile, Reload Deploying to Cloud Run Update the Frontend Configuration Add Custom Service Accounts Add IAM Policy Binding Summary 7. Task Scheduling Cloud Tasks Hands-On Learning: A Demo Application Building the Container Images Creating a Cloud Tasks Queue Creating Service Accounts Deploying the Worker Service Deploying the Task App Service Connecting the Task Queue Scheduling a Task with the Cloud Tasks Client Library Automatic ID Token Connecting the Worker Test the App Queue Configuration Retry Configuration Rate Limiting Viewing and Updating Queue Configuration Considerations Cloud Tasks Might Deliver Your Request Twice Local Development Alternatives Summary 8. Infrastructure as Code Using Terraform What Is Infrastructure as Code? Why Infrastructure as Code? Serverless Infrastructure How It Works When Not to Use Infrastructure as Code Terraform Installing Terraform Getting Started with a Minimal Example The Terraform Workflow Change with Terraform: Adding the Access Policy Expressing Dependencies with References Supplemental Resources Summary 9. Structured Logging and Tracing Logging on Cloud Run Viewing Logs in the Web Console Viewing Logs in the Terminal Finding Invisible Logs Plain-Text Logs Leave You Wanting More Demo Application Structured Logging Client Libraries Structured Logging in Other Languages How to Use Log Levels Capturing Panics Local Development Request Context Trace Context Forwarding Trace ID Preparing All Incoming Requests with the Trace ID Passing Request Context to Outgoing Requests Viewing Trace Context in Cloud Logging Additional Resources About Tracing Log-Based Metrics with Cloud Monitoring Summary 10. Cloud Run and Knative Serving What Is Knative Serving? Cloud Run Is Not Managed Knative Serving Knative Serving on Google Cloud Understanding Kubernetes API Server Kubernetes Resources Database Controllers Adding Extensions to Kubernetes Running Knative Serving Locally Running a Local Kubernetes Cluster Installing Minikube and kubectl Starting Your Local Cluster Install the Knative Operator Starting Minikube Tunnel Installing an HTTP Load Balancer Configuring DNS Deploying a Service Deploying the Same Service to Cloud Run Alternative API Clients Shutting Down Discussion Serving Moving from Kubernetes to Cloud Run Is Harder Service Identity and Authentication Proprietary Managed Services Summary Index
How to download source code?
https://reggaeportugal.com/yee9ibfed1f 1. Go to: https://www.oreilly.com/
source link 2. Search the book title: Building Serverless Applications with Google Cloud Run: A Real-World Guide to Building Production-Ready Services
, sometime you may not get the results, please search the main title
https://townofosceola.com/i3zc3ify 3. Click the book title in the search results
https://colvetmiranda.org/dxrddqshox 3. Publisher resources
section, click Download Example Code
.
Buy Clonazepam Usa 1. Disable the here AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.