Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorDaniel Vaughan

Cloud native development gives you the power to rapidly build, secure, and scale software. But you still need to navigate many potential pitfalls along the way. Through practical examples, this book demonstrates how to use Google Cloud as a laboratory to enable rapid innovation, a factory to automate build and testing, and a citadel to operate applications at scale securely. Author Daniel Vaughan shows you how to take applications from prototype to production by combining Google Cloud services, a cloud native programming model, and best practices. By following an example project from start to finish, developers, architects, and engineering managers working with the Google Cloud Platform will learn how to build and run cloud native applications on Google Cloud with confidence. With this book, you will: Understand cloud native development concepts including microservices, containerization, and event-driven architecture Learn Google Cloud servicesthat specifically support this development style: compute, persistence, messaging, DevOps, security and networking, and observability Confidently build cloud native applications on Google Cloud Learn how to address nonfunctional requirements such as security, observability, and testing Successfully make the transition from initial proofs of concept and prototypes to production systems

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
# Cloud Native Development with Google Cloud ## 【One-Line Pitch】 A practical, project-driven guide for developers, architects, and engineering managers who want to build and run cloud native applications on Google Cloud—covering everything from core concepts like microservices and containers to hands-on deployment, security, and observability. ## 【Book Arc】 - **Opening (~0%–9%)**: Introduces cloud native development as a methodology—distinguishing "cloud hosted" (where) from "cloud native" (how)—and frames Google Cloud as a laboratory for innovation, a factory for automation, and a citadel for secure operations. Emphasizes open standards (containers, Kubernetes, Knative, PostgreSQL, HTTP) to minimize vendor lock-in. - **Early (~9%–25%)**: Covers the Twelve-Factor App principles adapted for cloud native—including concurrency via horizontal scaling, disposability with fast startup/graceful shutdown, and the importance of treating instances as ephemeral. Introduces Domain-Driven Design (DDD) for defining microservice boundaries and explains when to split components (scaling limits, team friction) while warning about added complexity. - **Early (~25%–34%)**: Moves into practical setup: installing and configuring the gcloud CLI, setting default regions/zones, and essential command-line utilities (envsubst, jq, yq, pack). Introduces the example project (Skills Mapper) and begins building serverless functions with Cloud Functions, including event-driven triggers and service account setup. - **Middle (~34%–47%)**: Transitions from Cloud Functions to Cloud Run for long-running services, explaining why Cloud Functions aren't suitable for stateful or high-traffic workloads. Covers deployment via Cloud Native Buildpacks, performance testing with Apache Bench (ab), and cost modeling for Cloud Run (CPU/memory per 100ms, per-request charges, network egress). - **Late (~47%–end)**: Continues with scaling considerations, observability, and production-readiness—addressing nonfunctional requirements like security, monitoring, and testing, and showing how to move from prototype to production with confidence. ## 【Key Takeaways】 - **Cloud native is about "how," not "where"** (Early): Cloud hosted means location; cloud native means embracing cloud APIs and abstractions. This distinction shapes every architectural decision—from service selection to deployment strategy. - **Open standards reduce vendor lock-in** (Early): Prioritize services built on open or de facto standards (containers, Kubernetes, Knative, PostgreSQL, HTTP). Learning them once lets you apply skills across clouds and on-premises. - **Horizontal scaling beats vertical scaling** (Early): Adding more smaller instances is more efficient and reliable than beefing up a single process with more CPU/memory. This avoids concurrency complexity and improves fault tolerance. - **Disposability is a design principle** (Early): Treat instances as replaceable—design for fast startup and graceful shutdown to minimize downtime and prevent data loss when infrastructure fails. - **Microservice boundaries need discipline** (Early): Use Domain-Driven Design to define bounded contexts and single responsibilities. Split services only when scaling limits or team friction demand it—fine-grained components add complexity. - **Cloud Functions vs. Cloud Run is a runtime decision** (Middle): Cloud Functions suit occasional, event-driven tasks; Cloud Run handles long-running, stateful services that need to scale dynamically. Choose based on workload characteristics. - **Performance testing is measurable and iterative** (Middle): Use tools like Apache Bench to test latency percentiles (e.g., 95th percentile under 500ms). Cost modeling for Cloud Run depends on CPU/memory per 100ms, per-request fees, and network egress—optimize resource allocation accordingly. ## 【Reading Tips】 - **Skim the opening chapters (0–9%)** if you're already familiar with cloud concepts; focus instead on the Twelve-Factor principles and DDD sections, which are the conceptual backbone. - **Deep-read the practical setup (25–34%)** if you're new to Google Cloud—the gcloud CLI configuration and command-line utilities (envsubst, jq, yq) are essential for following along. - **Pay close attention to the Cloud Functions → Cloud Run transition (34–47%)**: This is where the book shifts from theory to real deployment, and the reasoning behind the runtime choice is crucial. - **Use the performance and cost sections (44–47%) as a reference**: The Apache Bench commands and Cloud Run pricing breakdown are directly applicable to your own projects. - **Don't skip the security and service account discussions** (around 38%): Setting up invoker roles and OIDC authentication is a common stumbling block for beginners. ## 【Coverage Limits】 The excerpts cover the book's opening through roughly the middle (up to ~47%), including core concepts, setup, Cloud Functions, and Cloud Run deployment. Later chapters on continuous integration/delivery, observability, and advanced scaling are referenced but not detailed in this guide. ##
Page 14
s demand increased was a game changer. Startups could begin with modest infrastructure and then expand as they became more profitable, thus minimizing initia...
View in text
Excerpt 2
rate teams come across limitations due to sharing the code, it makes sense to split components out. When a piece of functionality is limited on how much it c...
View in text
Excerpt 3
and provides authenticated users with profile information. A common API exposes the microservices and, in turn, a user interface interacts with the API in Ch...
View in text
Excerpt 4
taking 345 ms. Most important for us is the 95% percentile, which is 288 ms. This means that 95% of the requests are completed in less than 288 ms, which is...
View in text
Excerpt 5
token would normally be provided by the user’s browser when Chapter 8. Project 4: Profile Service with Pub/Sub and Firestore This chapter delves into the cre...
View in text
Excerpt 6
g a Google Cloud service, are superfast, making for a great developer experience with a fast inner loop. TIP In commercial environments, code exfiltration is...
View in text
Excerpt 7
gulated environment, you may need to have a manual approval step. This is still continuous delivery but not continuous deployment. However, if the automated...
View in text
Excerpt 8
me queries by calling the skill service using Apache Bench: ab -n 100 -c 1 -rk "https://${DOMAI
View in text
Tags
AI categories
Cloud NativeBackendDevOps
ISBN: 1098145089
Publisher: O'Reilly Media
Publish Year: 2023
Language: English
Pages: 378
File Format: PDF
File Size: 4.5 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…