Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAWS REST API: Multi-Region/Cross-Region Replication (Out of the box?) #34

Closed
austencollins opened this issue Aug 9, 2015 · 8 comments

Comments

@austencollins
Copy link
Member

This thread is for discussing changes in API Gateway, Lambda, etc., and how JAWS supports Multi-Region/Cross-Region Replication.

If the JAWS REST API can come out-of-the-box with cross-region replication of your Lambda functions to reduce network latency, it will be incredible. Imagine, instant cross-region replication of your REST API and you only pay for when it's used via AWS Lambda (!!!).

However, the tools JAWS uses are still new and rapidly evolving (i.e., Lambda, API Gateway), and there is no clear way to do this (yet).

So, we have to figure this out. Here are the puzzle pieces...

Thoughts?

@austencollins
Copy link
Member Author

Updated.

@austencollins austencollins changed the title JAWS REST API: Multi-Region/Cross-Region Replication JAWS REST API: Multi-Region/Cross-Region Replication (Out of the box?) Aug 9, 2015
@gjolund
Copy link

gjolund commented Aug 9, 2015

using API gateway to pass context information into the lambda is huge, I'd like to see how that works but the link you provide is behind aws auth.

@austencollins
Copy link
Member Author

@austinrivas

From the AWS Developer Forums...

      Hi, 

      The following context variables are now available in mapping templates. Not the exact solution you wer looking for, but some of that information will be available now. The main part missing would be the full hostname part, but the apiId, stage, and resourcePath are useful for determining path that calls the Lambda function.

      $context.stage
      $context.apiId
      $context.resourcePath
      $context.resourceId
      $context.httpMethod

      This will be documented in greater detail soon. 

      Thanks,
      Jack

@gjolund
Copy link

gjolund commented Aug 9, 2015

Great, now we just need to find a way to tie that into your middle-ware and aws config, I'll take a crack at it later today. Thanks for reaching out to the aws team btw, seem like they have been really supportive.

@austencollins
Copy link
Member Author

Update 8/13/15:

We’re currently working on a document that outlines the specifications for JAWS v1.0.0.

A proposed resolution to this issue in particular is included in that document.

Today or tomorrow, we will share the document for everyone to comment on because your feedback is essential.

@ivawzh
Copy link

ivawzh commented Feb 20, 2017

Hi @ac360 I am wondering where the document is?

People mentioned it could be solvable by setting up route53 latency routing with API Gateway - https://forums.aws.amazon.com/thread.jspa?threadID=220478. However, I could not find SNI setting in Cloudformation for Route53.

Would love to know your opinions.

@nickalto
Copy link

Looks like this is now possible with Lambda@Edge http://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html

@pmuens
Copy link
Contributor

pmuens commented Jul 19, 2017

Thanks for the update @nickalto 👍

@horike37 just opened up an issue for this a few days ago: #3944 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants