Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Courses/Architecture Leadership
Lesson 26 of 32

Vendor and cloud strategy, lock-in

Choose cloud providers and vendors with eyes open about lock-in, portability costs and concentration risk.

15 min read

Lock-in is a trade-off, not a sin

Every choice locks you in to something: a cloud, a database, a language, even an open-source framework. The question is not whether you are locked in but whether the switching cost is worth what you gain. A managed service like DynamoDB or BigQuery locks you to one provider, and in return removes a team's worth of operational work. Gregor Hohpe frames it as an option: portability has a price today, and you should only pay it if the likelihood and cost of switching justify it.

Assessing switching cost

For each significant dependency, estimate the cost of leaving. Write it into the ADR so the trade-off is explicit. Revisit the estimate whenever the dependency's role in your system grows, because switching costs rise quietly as more code and data accumulate around it.

  • Data gravity: how much data, and what does egress cost? (often around 0.05-0.09 per GB)
  • Proprietary APIs: how much code calls them directly?
  • Skills: how much team knowledge is provider-specific?
  • Contracts: committed spend, renewal terms, exit assistance
  • Ecosystem: identity, networking and monitoring tied to the provider

Multi-cloud: usually not

Running the same workloads across two clouds for portability roughly doubles platform complexity and restricts you to the lowest common denominator of services. For most organisations a single primary cloud with multiple regions gives better resilience per unit of effort. Multi-cloud makes sense for specific reasons: regulatory requirements, a best-of-breed service only one provider offers, acquisitions, or negotiating leverage at very large scale. Use portable building blocks (containers, Postgres, Kafka-compatible APIs, OpenTelemetry, Terraform) where they cost little. Write the reasoning in an ADR either way.

Vendor risk and concentration

Critical vendors (payments, identity, email, CDN) are part of your availability. Track each with an owner, its SLA, its status page and the impact if it fails for an hour. For the most critical, design a degraded mode or a second provider: a fallback email provider, a static error page served from a second CDN, or queueing payments for retry. Review vendor security reports annually and watch for single vendors that quietly underpin many systems at once. Rehearse the fallback; an untested second provider is not a fallback.

Key takeaways

  • Lock-in is a trade-off; pay for portability only when switching is likely or very costly.
  • Estimate switching cost: data gravity, proprietary APIs, skills, contracts and ecosystem.
  • Prefer one primary cloud across regions; adopt multi-cloud only for specific, strong reasons.
  • Treat critical vendors as dependencies with owners, SLAs, failure impact and fallbacks.

Sign in to track lessons and earn badges.

Deprecating systemsFinOps and cost governance

Coming up

Course: 0/32 lessons · 0/10 challenges0%

Build it on the canvas, pass the review (70+) and mark it complete to count it toward the course badge.

  1. 9/10Design an E-commerce CheckoutDesign a tier-0 checkout with PCI scope reduction, idempotent orders, vendor fallbacks and an SLO you can defend.MAJORMedium
10/10
Design a Payment LedgerBring the whole course together on a money-critical ledger and frame it as a decision an executive team could approve.
MAJORHardPRO
All 10 challenges →