Pattern: Multiple domains and provider independence

Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.

Search terms: multiple domains, failover, backup domain, remote config, provider independence, cdn, forced update, api versioning, deep link domains, domain blocking

Last reviewed:

For agents

1. Problem

If an app is wired to one provider hostname and that name is blocked, expires or the provider fails, every installed copy stops working until users update. Share links and email links break too.

2. Options

Method Upside Downside
App talks to the provider’s own address Zero setup You lose control of the name; one point of failure
App talks to your one domain behind a proxy or CDN Provider can change behind the name If that domain is blocked or lost, the app is cut off
Primary plus backup domains, tried in order (recommended) Survives the loss of one name More DNS and certificate management
Backup list updated by signed remote config Recover without an app release Config channel must itself be safe

4. Scenarios and edge cases

5. Common mistakes

6. How to audit

Sources