Member-only story

Lambda Function URLs Vs API Gateway

Janitha Tennakoon
6 min readJul 22, 2024

--

Friend link for non-members

https://medium.com/@janitha000/lambda-function-urls-vs-api-gateway-ec6730456303?sk=43f45e0dba38431f94d7efcc4cd019b0

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

--

--

Janitha Tennakoon
Janitha Tennakoon

Written by Janitha Tennakoon

Tech Lead | AWS Community Builder from Sri Lanka

Responses (5)