We all know the value of distributing an application across multiple data centers. The same philosophy applies to the cloud. As we put our applications into the cloud we need to watch where in the cloud they are located. How geographically and network topologically distributed our applications are is just as important as with normal data centers.
However, the cloud makes knowing where your application is located harder. The cloud also makes it harder to proactively make your application more distributed. Some cloud providers don’t even expose enough information to let you know where, geographically, your application is running.
Luckily, larger providers like AWS are better. No, AWS won’t tell you specifically where, geographically, your application is running, since they do not disclose their actual data center locations (I worked at AWS, and I have no idea, specifically, where the data centers are located). While they won’t tell you specifically where your application is running, they do give you enough information to make diversification decisions. Interpreting and understanding this information, and using it to your advantage, requires an understanding of how AWS is architected.
First, let’s discuss some terms used within the AWS ecosystem.
An AWS Region is large area of cloud resources that represents a specific geographic area. In general, they represent a portion of an individual continent or country (such as Western Europe, Northeastern Asia-Pacific, and Eastern United States). They describe and document geographic diversity of cloud resources. They are typically composed of multiple Availability Zones (AZs).
An AWS Region is identified by a string representing it’s geographic location. Table 1 gives the current list of AWS regions, their names, and where they serve.
|Region Name||Geographic Area Covered|
|us-east-1||US East Coast (N. Virginia)|
|us-west-1||US West Coast (N. California)|
|us-west-2||US West Clast (Oregon)|
|ap-northeast-1||Asia Pacific (Tokyo)|
|ap-northeast-2||Asia Pacific (Seoul)|
|ap-southeast-1||Asia Pacific (Singapore)|
|ap-southeast-2||Asia Pacific (Sydney)|
|sa-east-1||South America (Sao Paulo)|
Table 1: AWS Regions
AWS Availability Zone
An AWS Availability Zone is a subset of an AWS Region that represents cloud resources within a specific portion of a region, but are network topographically isolated from each other. They describe and document network topographical diversity of cloud resources. If two cloud resources are in different availability zones, then they can be assumed to be in distinct data centers, even if they are in the same AWS Region. If two cloud resources are in the same availability zone, they may potentially both be in the same data center, floor, rack, or even physical server.
An AWS Availability Zone is identified by a string beginning with the name of the region the AZ is in, followed by a letter ‘a’-‘z’. For example, Table 2 shows some example availability zones and the regions they are in.
|Region Name||Availability Zone Names|
Table 2: AWS Availability Zone Names
This is not a term used within AWS vocabulary, but we will use it as we map typical non-cloud terminology into AWS terminology.
A data center is a specific floor, building, or group of buildings that constitute a single location of system resources, such as servers.
Figure 1 shows at a high level what the AWS cloud architecture looks like.
Figure 1: AWS Data Center Architecture
AWS is composed of several AWS Regions (or just regions), which are geographically distributed around the globe in order to provide high quality access to most locations in the world. The AWS Regions each have connections to the internet. The AWS Regions themselves are also connected between themselves, but using long distance network connections similar to the rest of the internet.
Within a single region, there are multiple availability zones. These AZs are connected via an extremely high speed network, in order to make access between any two servers within a single region be very fast, independent of which availability zone they are actually located in.
In other words, AWS is designed to make availability zones as transparent as possible, but regions as visible as possible.
In the part 2 of this article, we’ll discuss availability zones and their connection to data centers, along with techniques for maintaining location diversity within an AWS environment.
Architecting for Scale
Want to learn more about this and other topics in availability, scalability, and cloud computing? Get my book, Architecting for Scale, published by O’Reilly Media.