AWS privatelink vs AWS Private API Gateway

0

what's the best way to go considering connectivity and speed when AWS privatelink and AWS Private API Gateway is considered?

Jehan
已提问 2 个月前172 查看次数
1 回答
1
已接受的回答

PrivateLink is great for SaaS providers to give access to their application across VPC boundaries. It works for TCP connections so it's not restricted to providing API, web requests or anything - raw TCP is just fine.

API Gateway is an API service - it requires you to define the API and then share it with the "other" account. This is no different to PrivateLink in that sense except that you are offering a HTTPS-based API. It has the advantage over PrivateLink in that you have flexibility in how requests are filtered, routed and authenticated within the API Gateway service. API Gateway also has session timeout limits and data transfer limits that are lower than PrivateLink: https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html

So the answer is "it depends" - how is your application designed? What protocols does it use? What do you need the connectivity piece (API Gateway/PrivateLink) to do?

In terms of speed - I assume you mean data transfer speed? PrivateLink is likely to be a little quicker but only because the TCP session is between the client and the target via PrivateLink and a NLB. With API Gateway the TCP session is terminated in API Gateway and another session is then established to the "target" (not really the right word, hence the quotation marks) - whatever is processing the API Request. So there is more work happening which will make it slightly slower.

profile pictureAWS
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
profile pictureAWS
专家
已审核 2 个月前
profile picture
专家
已审核 2 个月前
profile pictureAWS
专家
已审核 2 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则