AWS Wavelength embeds AWS compute and storage services within telecommunications providers’ 5G networks, bringing them closer to mobile devices.

Imagine you’re building a real-time multiplayer game, or a live video analytics app that needs to process data as it’s captured. The bottleneck isn’t usually the cloud’s processing power; it’s the time it takes for data to travel from the user’s device, across the internet, to a data center, and back. This round trip, known as latency, can be a killer for applications that demand sub-100-millisecond responses.

Here’s how Wavelength tackles this:

Let’s say you’re using Verizon in the US. You can provision a Wavelength Zone. This isn’t just another AWS Region; it’s a physically distinct location, but inside a Verizon 5G network edge data center. When a user’s 5G device connects to Verizon’s network, it can also connect to this Wavelength Zone.

Consider this a simplified deployment:

  1. User Device: A mobile phone running your low-latency app.
  2. 5G Network: The user’s device connects to a nearby Verizon 5G cell tower.
  3. Wavelength Zone: Instead of the traffic going out to a traditional AWS Region (like us-east-1), it’s routed directly to the Wavelength Zone co-located with the cell tower.
  4. AWS Resources in Wavelength: Inside this zone, you can deploy standard AWS services like EC2 instances (e.g., c5.large), EBS volumes, and VPCs. These resources are managed through your existing AWS account and console, just like any other AWS deployment.
  5. Application Logic: Your application logic runs on these EC2 instances within the Wavelength Zone. Because the compute is so close to the user, the data travels a much shorter distance, drastically reducing latency.

Let’s look at a concrete example. Suppose you’re running a computer vision inference service.

Traditional Deployment:

  • User captures video frame on phone.
  • Frame travels over cellular network, internet, to us-east-1 Region.
  • EC2 instance in us-east-1 performs inference.
  • Inference result travels back over internet, cellular network, to phone.
  • Total Latency: Could be 100-200ms or more.

Wavelength Deployment (e.g., Verizon Wavelength Zone in us-east-1):

  • User captures video frame on phone.
  • Frame travels over Verizon 5G network to the Wavelength Zone in the edge data center.
  • EC2 instance (e.g., g4dn.xlarge for GPU acceleration) in the Wavelength Zone performs inference.
  • Inference result travels back over Verizon 5G network to phone.
  • Total Latency: Potentially 10-20ms.

Here’s a snippet of how you might configure a VPC for a Wavelength Zone. Notice the NetworkBorderGroup which specifies the edge location.

AWSTemplateFormatVersion: '2010-09-09'
Description: Wavelength Zone VPC Example

Resources:
  WavelengthVPC:
    Type: AWS::EC2::VPC
    Properties:
      CidrBlock: 10.0.0.0/16
      EnableDnsSupport: 'true'
      EnableDnsHostnames: 'true'
      Tags:
        - Key: Name
          Value: WavelengthAppVPC

  Subnet:
    Type: AWS::EC2::Subnet
    Properties:
      VpcId: !Ref WavelengthVPC
      CidrBlock: 10.0.1.0/24
      AvailabilityZone: 'us-east-1-d0f3-zone1' # Example AZ for a Wavelength Zone
      MapPublicIpOnLaunch: 'true'
      Tags:
        - Key: Name
          Value: WavelengthAppSubnet
        - Key: AWS::Wavelength::ZoneType
          Value: LOCATION # This tag is crucial for Wavelength subnet identification

  InternetGateway:
    Type: AWS::EC2::InternetGateway
    Properties:
      Tags:
        - Key: Name
          Value: WavelengthIGW

  VPCGatewayAttachment:
    Type: AWS::EC2::VPCGatewayAttachment
    Properties:
      VpcId: !Ref WavelengthVPC
      InternetGatewayId: !Ref InternetGateway

  RouteTable:
    Type: AWS::EC2::RouteTable
    Properties:
      VpcId: !Ref WavelengthVPC
      Tags:
        - Key: Name
          Value: WavelengthRouteTable

  Route:
    Type: AWS::EC2::Route
    Properties:
      DestinationCidrBlock: 0.0.0.0/0
      GatewayId: !Ref InternetGateway
      RouteTableId: !Ref RouteTable

  SubnetRouteTableAssociation:
    Type: AWS::EC2::SubnetRouteTableAssociation
    Properties:
      SubnetId: !Ref Subnet
      RouteTableId: !Ref RouteTable

The key here is that AvailabilityZone references a specific Wavelength Zone, and the AWS::Wavelength::ZoneType: LOCATION tag helps identify it. You’ll also notice the NetworkBorderGroup when creating EC2 instances or ENIs that will be attached to Wavelength Zones.

When you create an EC2 instance in a Wavelength Zone, you specify its NetworkInterface.NetworkBorderGroup to be the carrier’s network (e.g., us-east-1-d0f3 for Verizon). This tells AWS to place the instance within that carrier’s edge network. You can then create Elastic Network Interfaces (ENIs) within that zone and attach them to your EC2 instances. These ENIs get IP addresses from your Wavelength VPC’s subnet.

The magic happens with how traffic is routed. A user’s 5G device, connected to the carrier’s network, can resolve DNS names for services hosted in the Wavelength Zone. When the device makes a request, the carrier’s network recognizes it’s destined for a service within its edge, and routes it directly to the Wavelength Zone. The return traffic follows the same low-latency path.

A critical concept is that Wavelength Zones are not full AWS Regions. They are extensions of specific Regions. For example, Wavelength Zones for us-east-1 are managed within the us-east-1 control plane. This means you use the same AWS CLI, SDKs, and console, but you select the Wavelength Zone as your deployment target. You can’t, for instance, launch a Wavelength Zone instance in us-west-2 and expect it to be managed by the us-east-1 Region’s services.

The one thing that trips people up is understanding how IP addressing and routing work at the edge. Your Wavelength Zone VPC is private to that zone. To access the public internet, you’ll typically use an Internet Gateway attached to your Wavelength VPC, but the traffic still exits from the Wavelength Zone’s network. For devices outside the Wavelength Zone to reach your Wavelength Zone services, you’ll often need to configure carrier-specific network configurations and potentially use public IP addresses allocated for the Wavelength Zone. The Wavelength Zone ENIs will get private IPs from your VPC, and you can then associate Elastic IPs or use NAT Gateways if needed for outbound internet access.

The next hurdle you’ll face is managing state and data across multiple Wavelength Zones or between Wavelength Zones and traditional AWS Regions for services that don’t require ultra-low latency.

Want structured learning?

Take the full Aws course →