Sub topic 5
Choosing a Region: latency, compliance, services, and price
This chapter assumes you know what a Region and an Availability Zone are, and that you can run AWS CLI commands in a terminal. It covers how to pick a Region for a workload, in the order the decision usually goes: compliance first, then service availability, latency, and price.
Why the Region choice matters
Most AWS resources live in exactly one Region. You pick the Region when you create the resource, and moving it later means copying, snapshotting, or rebuilding it. Changing a Region after launch is possible but costs time and sometimes downtime. A few minutes of analysis up front is cheaper than a migration.
Four factors drive the choice. They are not equal. Two of them can rule a Region out entirely, and two only rank the Regions that remain.
| Factor | Type of constraint | Question to ask |
|---|---|---|
| Compliance and data residency | Hard filter | Am I allowed to store or process this data in this country or jurisdiction? |
| Service availability | Hard filter | Does this Region offer every service and feature I need? |
| Latency | Ranking | Which allowed Region is closest, in network terms, to my users or systems? |
| Price | Ranking | Which remaining Region costs least for my usage pattern? |
Compliance and data residency
Start here, because it can remove options before you compare anything else. Laws, contracts, or internal policy may require that certain data stays inside a country or a legal area such as the European Union. Examples include health records, payment data, and government workloads.
The key fact is that AWS does not move your content out of a Region you chose unless you configure it to. Replication, backups, and copies across Regions are actions you or a service you enabled performs. This gives you control, and it also means you are responsible for checking that every copy stays where it should.
Things to check:
- Where primary data is stored.
- Where backups, snapshots, and logs go. A cross-Region backup setting can quietly break a residency rule.
- Where support staff, monitoring tools, or third-party integrations process data.
- Which compliance reports apply. AWS Artifact provides audit reports and agreements for you to download, and these tell you which programs a service is covered by.
Compliance rules often name a jurisdiction, not a Region. A rule saying "data must stay in the EU" allows several Regions, so latency and price can still choose among them.
Service and feature availability
Not every Region offers every service. Newer services and new features often launch in a small set of larger Regions first and reach others later. Smaller or newer Regions, and Regions in separate partitions, can have noticeably shorter service lists. Instance types also vary: a specific GPU or high-memory instance family may exist in one Region and not in another, and may be available in only some AZs of a Region.
You can check programmatically through AWS public Systems Manager parameters. This lists the Regions where Lambda is offered:
aws ssm get-parameters-by-path \
--path /aws/service/global-infrastructure/services/lambda/regions \
--query "Parameters[].Value" \
--output textRun the same command for each service your design needs and intersect the results. For instance types, aws ec2 describe-instance-type-offerings tells you which instance types are offered in a Region and, with --location-type availability-zone, in which AZs.
Check availability before you commit design work to a Region, not after. A common mistake is to build a prototype in the default Region and then find that a required service is missing from the Region compliance requires.
Two special cases catch people out:
- Some "global" services have their control plane in one Region. Certificates for CloudFront, for example, must be requested in us-east-1 through AWS Certificate Manager, even if the rest of your workload runs elsewhere.
- Quotas (service limits) are set per Region. A quota increase in one Region does not carry over to another.
Latency
Latency is the time a request takes to travel to a server and back. Physical distance sets a floor: light in fiber covers about 200 km per millisecond, so each 100 km between client and server adds roughly 1 ms of round-trip time at best. Real routes are longer than a straight line and pass through routers, so measured numbers are higher.
Closer is better for interactive traffic, such as web pages, APIs, and games. It matters much less for batch jobs, and it matters more for chatty protocols that make many sequential round trips, such as a client that issues 50 small database queries per page.
Measure instead of guessing. This loop times an HTTPS request to the DynamoDB endpoint in several Regions from wherever you run it:
for region in us-east-1 eu-west-1 ap-southeast-2; do
echo -n "$region: "
curl -s -o /dev/null -w "%{time_total}s\n" \
"https://dynamodb.${region}.amazonaws.com/"
doneThe result includes DNS lookup, the TCP connection, and the TLS handshake, so it overstates the cost of a request on an open connection. Run it a few times and compare the relative order, not the exact numbers. It measures from your machine only. Measure from where your users actually are, or from a test instance in a nearby location.
Two other latency points:
- Latency between your own components matters too. Keep services that call each other frequently in the same Region, and where possible in the same AZ, because each crossing adds delay and often cost.
- For global audiences, one Region cannot be close to everyone. Content delivery through edge locations (covered in a later chapter) reduces the distance for cacheable content, while dynamic traffic still goes back to your Region.
Price
Prices for the same service differ between Regions. The reasons include local energy and land costs, taxes, and scale. The gap can be substantial. A Region such as N. Virginia (us-east-1) is commonly among the cheaper ones, while some Regions, such as São Paulo, are often noticeably more expensive for the same instance type. Check current numbers on the pricing page of each service or with the AWS Pricing Calculator, because prices change.
Compare more than the hourly compute rate:
- Storage and requests: per-GB and per-request prices also vary.
- Data transfer: moving data between Regions is billed, and data leaving AWS to the internet is billed. Data transfer between Regions is often a larger line item than the savings from a cheaper Region.
- Support and tooling: engineers working across Regions cost time, which a small price difference may not repay.
The cheapest Region on paper can be the most expensive in practice if it adds cross-Region traffic. Suppose your database must stay in Frankfurt for compliance. Running the application servers in a cheaper Region, and paying for traffic back and forth, usually loses to keeping them in Frankfurt too.
Putting the factors together
Work through the decision with a short list:
- Write down the hard constraints: allowed jurisdictions and required services.
- Build the list of Regions that satisfy both.
- Estimate user locations and measure latency to the candidates.
- Price a representative month in the top two or three candidates, including data transfer.
- Choose, then record the reason, so the next person does not reverse the decision by accident.
Common errors
- Using the default Region by accident. The console and CLI use whichever Region is currently selected or configured. Resources created there will not show in another Region's console view, which makes them look "lost". Check the Region selector or run
aws configure get regionbefore you create anything. - Assuming a service exists everywhere. Verify availability first, as shown above.
- Choosing by price alone and ignoring data transfer or latency.
- Forgetting copies. Snapshots, AMI copies, and replication can place data in a second Region and break residency rules.
- Treating one Region as highly available. A Region choice does not give resilience by itself. Resilience inside a Region comes from using multiple AZs, covered in a later chapter.
Exercise
A company must keep customer records in the EU. It needs a service that is only available in some EU Regions, and its users are mostly in Spain. Describe the order in which you would narrow down the Region choice, and name one cost factor beyond the hourly instance price that you would check.
Show answer
First apply the hard filters: keep only EU Regions (compliance), then keep only those that offer the required service (use the SSM global-infrastructure parameters to check). Then rank the remaining Regions by measured latency to users in Spain, and compare prices for the top candidates. Beyond the hourly instance price, check data transfer charges, especially any cross-Region traffic and backup copies, and also storage and request prices.
Exercise
You create an EC2 instance and then cannot find it in the console. The CLI shows it exists. What is the most likely cause, and how do you confirm it?
Show answer
The console is probably showing a different Region from the one where the instance was created, because most resources are Region-scoped. Confirm by checking the Region selector in the console and by running aws configure get region or using --region explicitly with aws ec2 describe-instances.