AWS services comparison
The following table compares key features of Application Load Balancer, Amazon API Gateway, and AWS Lambda function URLs for creating endpoints to support microservices.
Feature |
Application Load Balancer |
API Gateway |
Lambda function URLs |
Primary use case |
|
|
|
Protocols supported |
HTTP, HTTPS, and WebSocket |
HTTPS and WebSocket |
HTTPS |
Request routing |
|
|
|
Request and response transformation |
|
|
|
Authentication and authorization |
Native integration with Amazon Cognito and any OpenID compliant identity provider (IdP) for authentication. |
Comprehensive capabilities, including IAM, Amazon Cognito, and Lambda authorizers for JSON Web Token (JWT) or a custom authorization scheme. |
AWS Identity and Access Management (IAM) to authenticate and authorize requests based on the IAM principal's identity policy and the function's resource-based policy. |
Scalability |
|
|
|
Rate limiting |
|
|
|
Logging and monitoring |
|
|
|
Caching |
None |
Provides caching at multiple levels (for example, API stage, resource, and method levels) to improve performance and reduce load on backend services. |
None |
Serverless architecture support |
|
|
|