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

Edge Routing Nearest Lambda Function URL #250

Open
5 of 7 tasks
huntharo opened this issue May 23, 2022 · 0 comments
Open
5 of 7 tasks

Edge Routing Nearest Lambda Function URL #250

huntharo opened this issue May 23, 2022 · 0 comments
Milestone

Comments

@huntharo
Copy link
Collaborator

huntharo commented May 23, 2022

Overview

Function URLs would not have API Gateway to proxy requests to specific application versions. Specific application versions can have unique Function URLs though.

Using Lambda @ Edge to rewrite the origin URL would allow sending version-specific requests to a specific version of an app without having to proxy the request/response and without having to pay for that proxying lambda to site around waiting for the response.

Function URLs appear to remove up to 10 ms of latency compared to API Gateway (should document that in another ticket) and have lower/no cost compared to API Gateway, so they will be desirable to some MicroApps users.

Steps

  • Download list of apps / versions on startup of edge to origin lambda
    • Include region-specific URLs for origins of that app/version
    • regions between apps/versions do not need to be consistent - app1/0.0.0 may be in us-east-1 and us-east-2, but app1/0.0.1 may only be in us-east-2
  • On request to specific app / version, check in-memory table for function URL or nearest API Gateway URL for that app
  • If in-memory table does not have that app or app / version combo, hit DynamoDB (eventually nearest-region replica) to see if it exists and has a URL
    • Save that URL in the in-memory table if it exists
  • Change the origin URL to the specific target URL
@huntharo huntharo changed the title Next - Edge Routing to Lambda Function URLs or Nearest API Gateway v0.3 - Edge Routing to Lambda Function URLs or Nearest API Gateway Oct 2, 2022
@huntharo huntharo changed the title v0.3 - Edge Routing to Lambda Function URLs or Nearest API Gateway vNext - Edge Routing to Lambda Function URLs or Nearest API Gateway Oct 2, 2022
@huntharo huntharo added this to the v0.4 milestone Feb 11, 2023
@huntharo huntharo changed the title vNext - Edge Routing to Lambda Function URLs or Nearest API Gateway Edge Routing to Lambda Function URLs or Nearest API Gateway Feb 11, 2023
@huntharo huntharo removed this from the v0.4 milestone Feb 11, 2023
@huntharo huntharo added this to the v0.4 milestone May 19, 2023
@huntharo huntharo changed the title Edge Routing to Lambda Function URLs or Nearest API Gateway Edge Routing Nearest Lambda Function URL May 20, 2023
@huntharo huntharo modified the milestones: v0.4, v0.5 May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant