Vendor lock-in happens when moving away from a provider becomes so costly or difficult that you effectively cannot. Some lock-in is a fair trade for convenience; too much leaves you exposed to price rises, outages or policy changes.
Before you start
- List the services you use from each provider: compute, databases, storage, queues, identity, DNS, CDN.
Sources of lock-in
- Proprietary managed services: databases, serverless functions and queues with provider-specific APIs.
- Data gravity: large datasets are slow and expensive to move, especially with egress fees; see egress costs.
- Infrastructure definitions tied to one provider's tooling.
- Identity and networking woven through everything.
- Skills and processes built around one platform.
- Contracts: long commitments and discounts.
Assess the risk
| Question | Higher risk if... |
|---|---|
| How hard is it to replace this service? | No open-source or standard equivalent |
| How much data is there? | Terabytes with per-GB exit fees |
| How critical is it? | The business stops without it |
| What if prices double? | No budget slack |
Practical ways to stay portable
- Containers and VMs: package apps in standard images that run anywhere; see containers vs VMs.
- Open standards: PostgreSQL/MySQL, S3-compatible storage, Kubernetes, OCI images.
- Infrastructure as code with multi-provider tools; see Terraform basics.
- Own your domain and DNS at a registrar you control.
- Regular exports and backups to another provider; see restic backups.
- Abstract thin layers (for example a storage interface in your code) where switching is likely.
Don't overengineer
Full multi-cloud portability is expensive. For most small and medium projects, sensible choices (standard databases, containers, backups elsewhere, documented setup) give enough freedom without running everything twice.
Frequently asked questions
Is lock-in always bad?
No. Managed services save time; accept lock-in where the benefit is clear and the exit cost is known.
Does a VPS avoid lock-in?
Largely, since a Linux VPS runs standard software you can move; see migrate a VPS.
Is cPanel hosting portable?
Yes, cPanel accounts can be transferred between cPanel hosts with standard backup and transfer tools.
