API Gateway Regional vs. Edge-Optimized Endpoints

API Gateway recently launched regional endpoints, a deceivingly simple feature that has important implications:

  • lower latency for clients located in the same AWS region (i.e. running in EC2 or Lambda)
  • ability to manage your own CloudFront distribution or WAF for your API
  • ability to manage DNS routing for your custom domain name

In my opinion, the biggest win here is the ability to integrate Route53 DNS routing with your REST APIs. If you replicate your APIs to multiple regions (using OpenAPI import, for example), you can take advantage of powerful Route53 features such as latency-based routing, regional failover, and blue green deployments.

There are distinct advantages for both options. Here’s my personal take on when to use each:

When to use regional endpoints:

  • your clients are predominantly located in the same AWS regions (i.e. running in EC2 or Lambda)
  • you want to manage your own CloudFront distribution and use CloudFront features such as custom routing rules, edge caching, WAF, Lambda@Edge, etc
  • you want to take advantage of DNS routing for your custom domain name

When to use edge-optimized endpoints:

  • You have geographically distributed clients
  • You don’t want to pay for and manage your own CloudFront distribution

A note on latency benchmarking:

A common pattern I’ve seen is for developers to conduct performance tests against API Gateway with traffic originating from a single EC2 region, or worse, from a single development machine. These types of tests will likely produce better latency results using regional endpoints. However, keep in mind that if you have geographically distributed clients, synthetic tests will not represent the client experience. The best way to truly measure this is to track client-side latency metrics from your API clients.

Congrats to the API Gateway team on a very important release.



Write a Comment



  • gay piss play dating

    adam for adam gay dating

  • gay porn chat random

    free gay chat rooms no registration needed

  • gay webcam chat

    gay video chat apps ios

  • 20mg cialis walmart

    generic cialis at walmart

    cialis otc

  • gay movie online dating

    sugar daddy gay dating app

  • gay univere men chat

    gay suppport chat

  • gay bareback dating

    free gay twink dating

  • gay dating advice - dating a much younger man or 18 yr old in high school

    gay dating naked vh1

  • gay punk dating

    gay dating simulator

  • dating gay costa rican men

    knoxville gay dating

  • dating gay macho weho

    gay dating sim

  • 2terrorism


  • ivermectin 12 mg tabs

    ivermectin usa price

    ivermectin buy online

  • ivermectin 12mg otc

    ivermectin 6mg tablets for human

    ivermectin 3 mg tabs

  • stromectol order

    stromectol online canada

    ivermectin otc

  • eroge sex and games make sexy games download

    amateur sex games cum

  • stromectol tablets

    stromectol 0.5 mg

    stromectol tablets uk

  • buy ivermectin 6mg online

    buy ivermectin 12mg

    buy ivermectin 6mg otc

  • essay writing companies

    writes essay for you

  • topwritemyessay

    write an analytical essay

  • writing a 5 paragraph essay

    on writing the college application essay

  • online casino deposit bonus

    casino welcome bonus no deposit

  • zithromax 250 mg over the counter

    buy zithromax 250 mg otc

    buy azithromycin otc

  • writing a critical essay

    write essays online

  • writing a literary analysis essay

    high school essay writing

  • zithromax pill

    zithromax z-pak 250 mg

    zithromax for stds

  • legitimate essay writing service

    writing an essay for college

  • essay on writing

    custom writing essays

  • dating asian gay men

    gay online dating sites

  • dating a gay man of color

    dean robert johnson gay dating

  • what is a p top gay dating

    legit gay dating sites

  • gay hiv positive dating

    asan gay dating site

  • interracial gay dating site

    gay police dating

  • gay speed dating dallas tx

    cub gay dating

  • ivermectin drug

    ivermectin orally

    order ivermectin 6mg for sale

  • dating gay bear

    middle school dating is gay

  • tips for gay dating

    gay teen diaper dating

  • keto diet bad for you

    keto diet protein intake

  • ivermectin otc

    order ivermectin online

    buy ivermectin online

  • stromectol 12 mg online

    ivermectin tablets for humans

    order stromectol 12mg

  • is zithromax a penicillin derivative

    zithromax dosage

    z-pack zithromax antibiotic and anxiety