Hosting platforms
Choose where the service runs from written needs and test each platform limit. Keep data, keys, domain, quotas and a way out in your own hands.
- Required 3
- Recommended 7
Required
Test the service against every platform limit
INF-62Keep a file of each platform limit the service can hit, with its value, plan and date from the provider's documents. Test the slowest request, the largest body and the peak memory against those limits before launch.
Keep production data and secrets out of previews
INF-64Give preview deployments their own secrets and a database with made-up data. A preview build never sees a production key or connection string, and its address asks visitors to sign in.
Own the domain and DNS in your own accounts
INF-68Register the domain and host its DNS in accounts the business owns. Keep them apart from the hosting platform and from any agency or contractor.
Recommended
Choose the hosting model from written needs
INF-61Write down what the service needs before you choose between a managed platform, serverless functions, containers on a platform or your own servers. Pick the model that meets every need, and record why.
Choose regions from users and data rules
INF-65Run the app and its database in the same region, chosen from where users are and where personal data may be stored. Pin that region on every resource, including logs and backups.
Record which governments can demand each provider's data
INF-89For each provider that holds personal or confidential data, record its parent company's country and the laws that can force it to hand data over. Choose a provider under another law when a customer contract or a transfer assessment rules that law out.
Price data transfer and per-request charges before launch
INF-66Before launch, estimate the monthly bill at 1, 10 and 100 times the expected traffic. Include data sent out, each request, each function call and each build, not only servers.
Upgrade managed engines before standard support ends
INF-60Keep every managed database engine and Kubernetes cluster on a version in standard support. Start each upgrade at least 90 days before its end of standard support.
Track cloud quotas before they block a scale-up
INF-88List the account quotas that the planned peak and a full rebuild would use, such as instances, CPUs, addresses and load balancers. Alert at 80% of each, and ask for raises before a launch.
Keep an exit plan for each platform
INF-67Keep a written plan for the day your host, region, DNS or email provider fails or ends the contract. It moves the service to another host within 5 working days and lists each platform-only feature with its replacement.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/infrastructure/hosting-platforms">Agent Wranglers infrastructure and environments playbook</a>. In code you write, add a comment next to it with the same link.