Multi-cloud portability
What is actually portable?
Multi-cloud portability is the ability to move or operate a workload across providers within defined functional, security, cost and recovery constraints. A container image that starts in two clouds is only one part of that ability. The data, identity, network, operational procedures and business behavior must also work.
Imagine a fictional bookstore running its order API and relational database on AWS. Its operations team knows that environment. A partner requires daily aggregated sales reports in a Google Cloud analytics environment. Keep the order system and raw customer data in the approved primary environment; send only approved aggregates through an asynchronous export. This is selective multi-cloud, not an automatic disaster-recovery system. A separate Azure migration candidate may be evaluated without deploying there.
Prerequisites: multi-region trade-offs, billing normalization and edge synchronization. After this lesson you should be able to separate application artifacts from provider-specific dependencies and design a testable portability contract.
Inventory the portability layers
| Layer | Portable boundary | What must be verified per provider |
|---|---|---|
| Application | Versioned HTTP and event schemas, OCI image digest | CPU architecture, runtime limits, health checks |
| Kubernetes | Deployment, Service, resource requests | Load balancer behavior, CSI driver, storage class, network policy support |
| Infrastructure as code | Common module inputs and outputs | Provider-specific resources, lifecycle, IAM, state backend |
| Identity | OIDC-based federation and explicit subject mapping | Issuer trust, audience, claim rules, role permissions, token lifetime |
| Database | SQL schema and tested export/import format | Extensions, isolation, collation, CDC, backups, failover |
| Observability | OpenTelemetry instrumentation | Collector configuration, backend queries, retention, alert routing |
| Networking | Application DNS name and TLS contract | Private endpoints, IP ranges, routes, certificates and health probes |
An abstraction leaks when a difference in the underlying implementation becomes visible to its caller. For instance, a Kubernetes PersistentVolumeClaim requests storage; a storage class points to a particular provisioner. Reusing the claim YAML does not move the volume contents. A portable IaC interface might output a database endpoint, but each implementation still needs its own resource definitions, state and review. Do not copy one provider's state to another and assume it describes the target resources.
OpenTelemetry can standardize collection and export, but dashboard queries, alert semantics and retained telemetry may remain backend-specific. OIDC can establish a common identity protocol; it does not automatically grant the same resource permissions. Use a trusted library and validate signatures, issuer, audience, expiry and relevant flow-specific claims; map identities to separately reviewed local roles. Never reuse a token simply because it has the same format.
Write a contract, then test semantics
A contract states observable requirements rather than the name of the implementation. For the bookstore, an order read returns the same fields and error classes in every supported environment. An order submission has an idempotency key and duplicate submissions must not create another order. A daily aggregate contains only report date, category and integer order count. The export accepts the same report identifier repeatedly without increasing totals twice.
Test a successful read, missing record, unauthorized request, duplicate write, temporary failure and a restored database. Compare both responses and resulting state. Test supported SQL extensions, precision, UTC timestamps, collation, transaction isolation and concurrent updates. Object storage interfaces may resemble each other but retention, conditional writes, identity and notification guarantees can differ. Similarly, a queue adapter must not hide an ordering or delivery guarantee that the application needs.
Application contract tests | | AWS adapter target adapter | | primary services candidate services | | data + recovery tests data + recovery testsA successful local adapter test is necessary evidence of the application's expectations, not evidence that a real provider implements them. Keep provider integration tests and recovery drills as separate gates.
Compare the provider scope
Official documentation excerpts reviewed on November 28, 2026 inform the design, rather than asserting identical products. AWS guidance for workload placement and cross-provider workloads emphasizes data movement and operational complexity. Microsoft describes Azure Arc and unified hybrid/multicloud management for supported resources; management coverage does not replace workload-level testing. Google Cloud describes multicloud deployment archetypes with application parts spread across providers. Those descriptions do not promise seamless migration.
For compute, compare EKS, AKS and GKE against a specific Kubernetes version, storage and ingress configuration. For managed PostgreSQL, compare RDS for PostgreSQL, Azure Database for PostgreSQL and Cloud SQL for PostgreSQL by engine version, extension support, backup and recovery. For aggregate reporting, evaluate a bounded export into BigQuery only if approved. The names identify candidate products, not equivalent guarantees. The current service editions, regional eligibility and contract conditions require separate verification.
Data sovereignty requirements can include storage, replicas, backups, telemetry, support access, encryption key custody and cross-border transfer. The approved aggregate schema needs a data owner and a disclosure review; aggregation alone is not anonymization. Do not treat a region setting as a legal conclusion.
Plan a data move instead of a container-only move
Inventory size, schema, extensions, writes per second, transfer paths, encryption and retention. Use a consistent export or snapshot, then change data capture (CDC) if the chosen source and target support it. CDC records changes after the snapshot; confirm ordering, replay behavior and lag. Compare record counts, canonical checksums where suitable, monetary totals and business invariants. A row count alone cannot detect altered data.
Example: 600 decimal GB must move at a sustained accepted payload throughput of 50 MB/s. With no concurrent writes, 600000 MB / 50 MB/s = 12000 s, or 3 h 20 min. At 10 MB/s continuing changes, an initial 600 GB backlog drains at 40 MB/s in a simplified single-rate model: 15000 s, or 4 h 10 min. If throughput is at or below the change rate, catch-up cannot complete without a different plan. These are arithmetic estimates, not measured provider speeds. The snapshot, transfer, validation and cutover may take longer.
Use a migration runbook with a rollback boundary. Reduce DNS TTL in advance if appropriate, but cached records and existing connections can outlast the nominal TTL. Stop or fence source writes, finish replication, verify the target, then switch traffic. After target writes begin, switching DNS back alone could lose them; reverse synchronization or an approved recovery plan is needed. Retain the source safely for the approved period, then decommission through a reviewed lifecycle process.
Practice and recap
Create a portability inventory for the bookstore with one test and one owner for each of the seven layers. Flag any dependency that cannot be moved without redesign. Estimate the 600 GB transfer at 25 MB/s with a 10 MB/s change stream. The answer is 40000 s (about 11 h 7 min) in the simplified model. Explain why this is not a guaranteed cutover duration.
The key distinction is between portable artifacts, verified behavior and operational readiness. Review the concept reference cloud-concept-multi-cloud-portability; continue with Multi-cloud architecture decisions to decide whether moving a workload is justified.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Multi-cloud portability — knowledge check
Choose the best answer for each offline scenario.
A container starts on two providers. What remains unproven?
What does a Kubernetes storage class demonstrate?
How should a shared OIDC identity be used?
A transfer accepts 50 MB/s and writes add 10 MB/s. What is modeled net drain?
What is needed before returning traffic after target writes begin?