# Vapor: API Gateway vs Load Balancers

DevFeed: [Vapor: API Gateway vs Load Balancers](<https://devfeed.tech/articles/vapor-api-gateway-vs-load-balancers-3935.md>)

Original publisher: [Read original article](<https://laravel.com/blog/vapor-api-gateway-vs-load-balancers>)

Author: Nuno Maduro

Published: 2021-06-16T13:00:00Z

Content type: comparison

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Vapor](<https://devfeed.tech/topics/swift-vapor.md>), [Amazon API Gateway](<https://devfeed.tech/topics/amazon-api-gateway.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Firewall](<https://devfeed.tech/topics/firewall.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>)

Tags: [api-gateway](<https://devfeed.tech/tags/api-gateway.md>), [article](<https://devfeed.tech/tags/article.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [http](<https://devfeed.tech/tags/http.md>), [load](<https://devfeed.tech/tags/load.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pricing](<https://devfeed.tech/tags/pricing.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [routing](<https://devfeed.tech/tags/routing.md>), [serverless](<https://devfeed.tech/tags/serverless.md>)

## AI overview

This article compares API Gateway v1, API Gateway v2, and Load Balancers for routing HTTP traffic to Laravel applications on AWS serverless infrastructure powered by Vapor. It discusses performance, pricing, regional versus edge-optimized endpoints, firewall support, and HTTPS redirection. API Gateway v2 is described as faster and less expensive than API Gateway v1, but it has regional limitations and requires additional handling for some security and redirection features.

## Source excerpt

When using an AWS serverless infrastructure powered by Vapor, you have three different options to consider when determining how to route traffic to your application: API Gateway v1, API Gateway v2, and Load Balancers. In this article, we are going to compare these three options in terms of performance, pricing, and features.