How Amazon.com uses AWS Regions to improve customer experience (ARC328)

Summary of the Video Transcription

Introduction

  • The video discusses how Amazon.com uses AWS Regions to improve customer experience.
  • The presenters are Frank Stone, a Principal Solutions Architect at Amazon, and Lisa Gutermuth, a Principal Software Engineer at Amazon.

Amazon's Journey with AWS Regions

  • Amazon has been evolving its thinking around regions over time, and the video shares what they are doing today with regions.
  • The speakers will discuss the learnings they have had and how you can leverage them to accelerate your migration to additional regions.
  • They will also share the mechanisms and tools available in the AWS toolbox to help you migrate to another region without having to develop all the capabilities yourself.

Prime Video's Approach to Regions

  • Prime Video was one of the first Amazon teams to prioritize region expansion.
  • They set up the infrastructure in multiple regions, synced the data as much as possible, and wanted to be multi-region to meet resiliency requirements for live events.
  • They found that leveraging more regions helped them take advantage of diurnal peaks and lower their costs.

Middle Mile's Approach to Regions

  • The Middle Mile team, responsible for moving freight around, wanted to step up the resiliency by failing over to an entirely different region if a region went down or had a major outage.
  • They wanted to keep the trucks moving to get packages to customers as quickly as possible.

The Rest of Amazon's Approach to Regions

  • For a long time, the rest of Amazon was just comfortable in a small number of regions, relying on the availability and latency provided by the existing regions.
  • It wasn't until last year that the motivation to look at more regions on a consistent basis became strong enough.

Motivators for Amazon to Expand Regions

  • Availability, latency, costs, data localization regulations, and new business opportunities.
  • The goal is to provide the best customer experience, but region expansion is the first step, unlike AWS which can expand regions without moving the data.

Challenges in Amazon's Region Expansion Journey

  • Amazon hasn't done a major region expansion in a long time, and their architecture and infrastructure have evolved significantly.
  • They had to leverage learnings from long-tenured employees, look at AWS's processes, prototype, and experiment to understand the challenges.

Amazon's Region Expansion Strategy

  1. Determine where you're going (considering region differences).
  2. Evaluate the trade-offs and set your strategy (e.g., application grouping, latency, costs, effort).
  3. Front-load prerequisites (e.g., configuration, infrastructure as code).
  4. Set up the infrastructure, make data accessible, test, and observe.
  5. Potentially descale depending on the region strategy.

Configuration Challenges and Solutions

  • Amazon's configuration keys had assumptions tied to specific regions, making it difficult to expand to new regions.
  • They are moving towards "natural parameters" to make the configuration more region-agnostic.
  • They are also looking at automating configuration updates as they expand to new regions.

Infrastructure as Code and Data Consistency

  • Infrastructure as code (e.g., AWS CDK) is crucial to reduce manual errors and ensure resource discovery.
  • Data consistency is a significant challenge, and they recommend evaluating the possibility of moving to an eventually consistent model where possible.
  • For strongly consistent data, they are exploring approaches like mutually exclusive key spaces to simplify the data migration.

Modernization and Technical Debt

  • Amazon has a lot of technical debt and legacy systems that they need to modernize as they expand to new regions.
  • This includes addressing hardcoded configuration, outdated technologies, and manual management of AWS resources.
  • "Always be modernizing" is a key principle they are trying to instill in their teams.

Region Selection Considerations

  • Latency between regions, dependencies, and eventual consistency are important factors to consider.
  • Opt-in regions (introduced in 2019) have some differences, like IAM credential distribution and STS token format.
  • Newer regions may not have all the same services available, and you need to plan for scaling up during events.

Tools and Strategies for Region Migration

  • New build, planned transition, and live migration are the different strategies for moving to a new region.
  • Account strategy, infrastructure as code, and managing service-specific quotas are important considerations.
  • AWS services like S3 cross-region replication, DynamoDB global tables, and cross-region database backups can simplify the data migration process.

Key Takeaways

  1. There are multiple advantages to using multiple regions, including latency, failover, and data privacy.
  2. Plan ahead and address technical debt to prepare for region expansion.
  3. Leverage the tools and services provided by AWS to simplify the migration process.

Your Digital Journey deserves a great story.

Build one with us.

Cookies Icon

These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.

Talk to us