Modernize Infrastructure and Applications with Google Cloud
Source: Modernize Infrastructure and Applications with Google Cloud (Coursera)
Key ideas
- Fourth course of the six in the Cloud Digital Leader learning path. Its first section, Fundamentals of modernization, sets the vocabulary of migration.
- Compute is the capacity to process information; a workload is what uses it (an application, service, database, VM or container).
- Discovery and assessment inventories applications, dependencies and costs, then each workload gets a path: retire, retain, rehost (lift and shift), replatform (move and improve), refactor or reimagine.
- Reasons to move compute to the cloud: lower total cost of ownership, scalability, flexibility, reliability across many data centres, security features, and managed services that hand routine maintenance to the provider.
- Organisations "born in the cloud" treat scale as normal, which pressures older companies to modernize their infrastructure and applications.
- Later sections compare virtual machines and containers: a VM virtualises the hardware through a hypervisor and boots a full guest OS; a container packages an application with its dependencies and shares the host kernel, so it starts in milliseconds and runs the same on a laptop, a staging server or any cloud.
- Compute Engine runs VMs (IaaS). Its price drops in exchange for flexibility: sustained-use discounts (automatic), committed-use discounts (1 or 3 years), spot VMs (up to 91 % off, reclaimable with 30 seconds' notice); custom machine types avoid paying for CPU or memory a workload doesn't use.
- Containers at scale need orchestration: Kubernetes, and GKE, its managed version, in two modes. In Standard the customer manages the nodes; in Autopilot Google manages nodes, sizing and hardening, and bills per running Pod. Cloud Run goes further and runs stateless containers with no cluster at all, scaling from zero.
- Serverless hands provisioning, scaling and patching to the provider and bills only execution: Cloud Run (containers in any language), Cloud Run functions (event-driven snippets), App Engine (a PaaS for web apps).
- Hybrid and multicloud estates are run with Google Distributed Cloud (Google Cloud services such as GKE on premises and at the edge, under one control plane). Their data is handled by Cloud SQL, AlloyDB Omni (AlloyDB for PostgreSQL run anywhere), BigQuery Omni (queries data in S3 or Azure Blob Storage without moving it) and Looker (one semantic layer for metrics across sources).
- APIs let applications talk through a published contract. Apigee manages them as a gateway: authentication (API keys, OAuth 2.0), rate limiting and throttling, usage analytics, and developer portals that turn internal APIs into products.
In my own words
The course answers the objection "the cloud is just renting someone else's computers": what is rented is not the machine but the work around it. Abstraction and managed services take patching, backups, hardware replacement and capacity planning off the team, and pay-as-you-go turns capacity into something you can give back. The migration paths are a spectrum from "move it as is, fast" to "redesign it to use all of that", decided workload by workload.
The later sections line up as a ladder of abstraction: VMs (you run the OS), GKE Standard (you run the nodes), Autopilot (you run Pods), Cloud Run (you run a container), functions (you run a snippet). Each rung up removes a job from the team and a lever from its hands; the right rung is the lowest one whose levers the team actually needs.
Questions
- What reduces TCO when moving to the cloud? Removing the purchase and upkeep of physical hardware, paying only for use, and discounts for long-term commitments.
- Which term means instantly matching resources to demand? Scalability.
- What does a managed service let a team focus on? Business logic, while the provider handles maintenance such as database updates.
- Why does a container start faster than a VM? It shares the host's kernel instead of booting a guest operating system, so starting it means starting a process.
- What does GKE Autopilot take off the customer, compared with Standard? The nodes: provisioning, sizing and security hardening. Billing is per running Pod.
- Which workload belongs on spot VMs? Fault-tolerant batch work that checkpoints, because the VM can be reclaimed with 30 seconds' notice.
- Which service queries data stored in another cloud without copying it? BigQuery Omni.
- What does an API gateway such as Apigee add in front of backends? Authentication, rate limiting and throttling, usage analytics and a developer portal.
- The later sections (VMs, containers, serverless, hybrid and multicloud, APIs) are now summarised in the key ideas above.
References
- Modernize Infrastructure and Applications with Google Cloud - the course, on Coursera.
- Cloud Migration Chooses One of Six Paths per Workload After Discovery and Assessment - the migration vocabulary in detail.
- Cloud Computing Glossary - compute, workload, TCO, managed services.
- A Container Shares the Host Kernel, a Virtual Machine Runs Its Own - VMs versus containers.
- Serverless Functions Bill per Invocation, So Idle Code Costs Nothing - the serverless billing model.
- Cheaper Cloud Compute Costs Either a Commitment or the Right to Be Interrupted - sustained-use, committed-use and spot pricing.
- An API Gateway Enforces Authentication, Rate Limits and Usage Analytics Before Requests Reach the Backend - what Apigee-style API management does.
- Cloud Computing MOC - hub for cloud notes.
Review cards
Flashcard What is a "workload" in cloud migration terms?
Anything that consumes compute: an application, service, database, VM or container group. Each one gets its own migration path.
Flashcard How does moving to the cloud lower total cost of ownership?
It removes buying and maintaining physical hardware, bills only for what is used, and adds discounts for long-term commitments.
Quiz A team must leave its data centre in three months and moves its VMs to Compute Engine without changing them. Which migration path is this?
- Replatform
- Rehost
- Refactor
- Retain
Rehosting ("lift and shift") moves a workload unchanged: fastest, but it gains little from the cloud. Replatforming makes small changes, refactoring rewrites, retaining keeps it on-premises.
Flashcard Why is a container lighter and faster to start than a VM?
A VM boots a full guest OS on virtualised hardware. A container shares the host's kernel and packages only the app and its dependencies, so starting it is starting a process.
Quiz Which Google Cloud service runs stateless containers with no cluster to manage?
- GKE Standard
- GKE Autopilot
- Cloud Run
- Compute Engine
Cloud Run runs containers without any cluster, scales from zero and bills only execution. Both GKE modes still give you a cluster.
Flashcard What does a managed service take off a team's hands?
Routine operations such as patching, backups, hardware replacement and capacity planning, so the team can work on business logic.
Flashcard Which Google Cloud service would you use if you need to query data stored in another cloud without copying it?
BigQuery Omni.
Quiz Which GKE mode has Google manage the nodes and bills per running Pod?
- GKE Standard
- GKE Autopilot
- Cloud Run
- Compute Engine
In Autopilot, Google provisions, sizes and hardens the nodes. In Standard, you manage them. Cloud Run has no cluster at all.