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

VPC endpoint to unirpc #881

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

melodylove-uniswap
Copy link
Collaborator

@melodylove-uniswap melodylove-uniswap commented Oct 19, 2024

  1. put routing-api behind a vpc
  2. created a vpc endpoint to connect to unirpc vpc endpoint service in uniswap-backend account
  3. created route53 to point routing-dev to the vpc endpoint to avoid updating the endpoint on the service side.

@melodylove-uniswap melodylove-uniswap changed the title add vpc endpoint [draft]add vpc endpoint Oct 19, 2024
@melodylove-uniswap melodylove-uniswap changed the title [draft]add vpc endpoint VPC endpoint to unirpc Oct 31, 2024
@graphite-app graphite-app bot requested review from xrsv, cgkol, jsy1218 and a team and removed request for jsy1218 October 31, 2024 23:16
Copy link

graphite-app bot commented Oct 31, 2024

Graphite Automations

"Request reviewers once CI passes on routing-api repo" took an action on this PR • (10/31/24)

1 assignee was added and 5 reviewers were added to this PR based on 's automation.

@@ -171,6 +244,8 @@ export class RoutingLambdaStack extends cdk.NestedStack {
runtime: aws_lambda.Runtime.NODEJS_18_X,
entry: path.join(__dirname, '../../lib/handlers/index.ts'),
handler: 'quoteHandler',
vpc: vpc,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to set vpc to only caching routing lambda first?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to put both lambda under vpc as we discussed

cidrMask: 24, // IP range for private subnet
},
],
natGateways: 1, // One NAT Gateway for private subnet internet access
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if related but good to mention here:
on the unirpc side we started hitting a port connections limit once i started ramping up traffic for routing api
It's weird that routing api lambda didn't hit similar issue, as it is doing similar size of http calls to QN directly.
After further digging, I see that routing api default VPC doesn't have a NAT gateway (and can't see active connections dashboards)?
But with this change we are introducing new VPC with NAT gateway, so trying to understand if that might cause issues due to high amount of traffic.
Anyway we could test the new vpc introduction somehow before fully enabling?

@jsy1218 jsy1218 self-requested a review November 7, 2024 18:54
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

Successfully merging this pull request may close these issues.

3 participants