Regional Endpoints for API Gateway and Active Active Serverless
My single largest complaint with the entire AWS Serverless ecosystem was that running a multi-region API Gateway was impossible to do. Well, impossible without servers. You could do it if you were willing to run a few nginx reverse proxies and some load balancers for a production quality setup.
This made me, and my good friend Clint Eastwood, grumpy.
This time is over. With the new launch of Regional API Endpoints for API Gateway, the nightmare is over. You can now do Active/Active or Active/Passive failover with ease.
How Easy is Easy?
- Create your custom domain in two (or more) regions
- You’ll need an Amazon Certificate Manager cert in both regions for
- Grab the regional api gateway endpoint targets
- In Route53 create an ALIAS “A” record with
geolocationbased routing for each of your endpoints
geolocationare probably the best
weightedis the easiest especially if you just want round robin style
With this being the small potatoes stuff that gets announced now, re:Invent is gonna be a heck of show. We’ll see you there, reach out if you want to meet for a drink.