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?

1 Answer
1
Accepted Answer

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
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
profile pictureAWS
EXPERT
reviewed 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile pictureAWS
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions