Member-only story
Lambda Function URLs Vs API Gateway
Friend link for non-members
API Gateway
Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale
API gateway mainly creates REST APIs which are based on HTTP and it's a prominent product given by AWS.
Whenever we create a serverless application these days with AWSLambda and want to create public HTTP endpoints, the first thing that comes to mind is the AWS API Gateway. However, this is not the only option we can use when we want to create public HTTP endpoints. There is another solution that we can use named Lambda Function URLs.
In this article, I will be showcasing how to create a Function URL to an already created Lambda function, and then do a comparison between API Gateway and Function URLs so you can figure out which is most suitable for you in which application scenarios.
Lamda Function URLs
A function URL is a dedicated HTTP(S) endpoint for your Lambda function. You can create and configure a function URL through the Lambda console or the Lambda API