When to use Function URLs vs Amazon API Gateway

In this article, we are going to talk about When to use Function URLs vs Amazon API Gateway.

When to use Function URLs vs Amazon API Gateway

First of all, we should say that API Gateway and Function URLs offer similar features. API Gateway and Function URLs, the idea is exposing endpoints with different accesses. But there are some best fit use cases for both Function URL and API Gateways.

I have just published a new course — AWS Lambda & Serverless — Developer Guide with Hands-on Labs.

Single Microservice Expose HTTPS methods with Lambda Function URL

Function URLs are best for use cases where you must implement a single-function microservice with a public endpoint that doesn’t require the advanced functionality of API Gateway. Lambda Function URLs is lets you add HTTPS endpoints to any Lambda function.

Single Calculator Microservice Expose https methods with Lambda Function Url

Amazon API Gateway Building RESTful Microservices

Amazon API Gateway is a fully managed service that makes it easy for you to create, publish, maintain, monitor, and secure APIs at any scale.

Building RESTful Microservices with AWS Lambda, API Gateway and DynamoDB

Result

So we can summarize that If you find yourself just needed a quick way to expose your Lambda function to the public internet, then Function URLs are definitely a good option. Its also interesting to note that there is no extra cost for using function URLs beyond normal Lambda invocation cost.

However if you’re looking for a product a little bit more robust with a whole suite of extra features, then API Gateway with Lambda may be a better choice.

Step by Step Design AWS Architectures w/ Course

I have just published a new course — AWS Lambda & Serverless — Developer Guide with Hands-on Labs.

In this course, we will learn almost all the AWS Serverless Services with all aspects. We are going to build serverless applications with using AWS Lambda, Amazon API Gateway, Amazon DynamoDB, Amazon Cognito, Amazon S3, Amazon SNS, Amazon SQS, Amazon EventBridge, AWS Step Functions, DynamoDB and Kinesis Streams. This course will be 100% hands-on, and you will be developing a real-world application with hands-on labs together and step by step.

Source Code

Get the Source Code from Serverless Microservices GitHub — Clone or fork this repository, if you like don’t forget the star. If you find or ask anything you can directly open issue on repository.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mehmet Ozkaya

Mehmet Ozkaya

Software/Solutions Architect, Udemy Instructor, Working on Cloud-Native and Serverless Event-driven Microservices Architectures https://github.com/mehmetozkaya