WHY GARTNER’S “CONTEXT MESH” CHANGES EVERYTHING AI CONNECTIVITY: THE ROAD AHEAD DON’T MISS API + AI SUMMIT 2026 SEPT 30 – OCT 1
    • Explore the unified API Platform
        • BUILD APIs
        • [
          Kong Insomnia](/en-gb/products/kong-insomnia)
          Kong Insomnia
        • [
          API Design](/en-gb/products/kong-insomnia/api-design)
          API Design
        • [
          API Testing and Debugging](/en-gb/products/kong-insomnia/api-testing-and-debugging)
          API Testing and Debugging
        • RUN APIs
        • [
          API Gateway](/en-gb/products/kong-gateway)
          API Gateway
        • [
          AI Gateway](/en-gb/products/kong-ai-gateway)
          AI Gateway
        • [
          Event Gateway](/en-gb/products/event-gateway)
          Event Gateway
        • [
          Kubernetes Operator](/products/kong-gateway-operator)
          Kubernetes Operator
        • [
          Service Mesh](/en-gb/products/kong-mesh)
          Service Mesh
        • [
          Ingress Controller](/en-gb/products/kong-ingress-controller)
          Ingress Controller
        • [
          Runtime Management](/products/kong-konnect/features/runtime-management)
          Runtime Management
        • DISCOVER APIs
        • [
          Developer Portal](/en-gb/products/kong-konnect/features/developer-portal)
          Developer Portal
        • [
          Service Catalog](/en-gb/products/kong-konnect/features/api-service-catalog)
          Service Catalog
        • GOVERN APIs
        • [
          Analytics](/products/kong-konnect/features/advanced-analytics)
          Analytics
        • [
          APIOps and Automation](/en-gb/products/apiops-automation)
          APIOps and Automation
        • [
          API Observability](/en-gb/products/kong-konnect/features/api-observability)
          API Observability
        • [Why Kong?](/en-gb/company/why-kong)Why Kong?
      • CLOUD
      • [Cloud API Gateways](/products/kong-konnect/features/dedicated-cloud-gateways)Cloud API Gateways
      • [Need a self-hosted or hybrid option?](/products/kong-enterprise)Need a self-hosted or hybrid option?
      • COMPARE
      • [Kong vs. Postman](/en-gb/performance-comparison/kong-vs-postman)Kong vs. Postman
      • [Kong vs. MuleSoft](/en-gb/performance-comparison/kong-vs-mulesoft)Kong vs. MuleSoft
      • [Kong vs. Apigee](/en-gb/performance-comparison/kong-vs-apigee)Kong vs. Apigee
      • [Kong vs. IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs. IBM
      • GET STARTED
      • [Sign Up for Kong Konnect](/products/kong-konnect/register)Sign Up for Kong Konnect
      • [Documentation](https://developer.konghq.com/)Documentation
      • FOR PLATFORM TEAMS
      • [Developer Platform](/en-gb/solutions/building-developer-platform)Developer Platform
      • [Kubernetes and Microservices](/en-gb/solutions/build-on-kubernetes)Kubernetes and Microservices
      • [Observability](/en-gb/solutions/observability)Observability
      • [Service Mesh Connectivity ](/solutions/service-mesh-connectivity)Service Mesh Connectivity
      • [Kafka Event Streaming](/en-gb/solutions/kafka-stream-api-management)Kafka Event Streaming
      • FOR EXECUTIVES
      • [Open Banking](/en-gb/solutions/open-banking)Open Banking
      • [Legacy Migration](/en-gb/solutions/legacy-api-management-migration)Legacy Migration
      • [Platform Cost Reduction](/en-gb/solutions/api-platform-consolidation)Platform Cost Reduction
      • [Kafka Cost Optimization](/en-gb/solutions/reduce-kafka-cost)Kafka Cost Optimization
      • [Real-time Business](/solutions/real-time-business)Real-time Business
      • [API Productization](/solutions/api-productization)API Productization
      • FOR AI TEAMS
      • [AI Governance](/en-gb/solutions/ai-governance)AI Governance
      • [AI Security](/en-gb/solutions/ai-security)AI Security
      • [AI Cost Control](/en-gb/solutions/ai-cost-optimization-management)AI Cost Control
      • [Agentic AI](/solutions/agentic-ai-workflows)Agentic AI
      • [MCP Traffic Gateway](/en-gb/solutions/mcp-governance)MCP Traffic Gateway
      • FOR DEVELOPERS
      • [Mobile App API Development](/en-gb/solutions/mobile-application-api-development)Mobile App API Development
      • [GenAI App Development](/solutions/power-openai-applications)GenAI App Development
      • [API Gateway for Istio](/solutions/istio-gateway)API Gateway for Istio
      • [Decentralized Load Balancing](/solutions/decentralized-load-balancing)Decentralized Load Balancing
      • BY INDUSTRY
      • [Financial Services](/en-gb/solutions/financial-services-industry)Financial Services
      • [Healthcare](/en-gb/solutions/healthcare)Healthcare
      • [Higher Education](/solutions/api-platform-for-education-services)Higher Education
      • [Insurance](/en-gb/solutions/insurance)Insurance
      • [Manufacturing](/en-gb/solutions/manufacturing)Manufacturing
      • [Retail](/en-gb/solutions/retail)Retail
      • [Software & Technology](/en-gb/solutions/software-and-technology)Software & Technology
      • [Transportation](/en-gb/solutions/transportation-and-logistics)Transportation
      • [See all Solutions](/en-gb/solutions)See all Solutions
  • [Customers](/customers)Customers
      • Documentation
      • [Kong Konnect](https://developer.konghq.com/konnect/)Kong Konnect
      • [Kong Gateway](https://developer.konghq.com/gateway/)Kong Gateway
      • [Kong Mesh](https://developer.konghq.com/mesh/)Kong Mesh
      • [Kong AI Gateway](https://developer.konghq.com/ai-gateway/)Kong AI Gateway
      • [Kong Insomnia](https://developer.konghq.com/insomnia/)Kong Insomnia
      • [Plugin Hub](https://developer.konghq.com/plugins/)Plugin Hub
      • Explore
      • [Blog](/en-gb/blog)Blog
      • [Learning Center](/en-gb/blog/learning-center)Learning Center
      • [eBooks](/resources/e-book)eBooks
      • [Reports](/resources/reports)Reports
      • [Demos](/resources/demos)Demos
      • [Case Studies](/resources/case-study)Case Studies
      • [Videos](/resources/videos)Videos
      • Events
      • [API Summit](/events/conferences/api-summit)API Summit
      • [Webinars](/events/webinars)Webinars
      • [User Calls](/events/user-calls)User Calls
      • [Workshops](/events/workshops)Workshops
      • [Meetups](/events/meetups)Meetups
      • [See All Events](/events)See All Events
      • For Developers
      • [Get Started](https://developer.konghq.com/)Get Started
      • [Community](/community)Community
      • [Certification](/academy/certification)Certification
      • [Training](https://education.konghq.com)Training
  • [Pricing](/pricing)Pricing
  • [](/search)
  • [Login](https://cloud.konghq.com/login)Login
  • [Get a Demo](/contact-sales)Get a Demo
  • [Start for Free](/products/kong-konnect/register)Start for Free
[Blog](/blog)Blog
  • [AI Gateway](/blog/tag/ai-gateway)AI Gateway
  • [AI Security](/blog/tag/ai-security)AI Security
  • [AIOps](/blog/tag/aiops)AIOps
  • [API Security](/blog/tag/api-security)API Security
  • [API Gateway](/blog/tag/api-gateway)API Gateway
|
    • [API Management](/blog/tag/api-management)API Management
    • [API Development](/blog/tag/api-development)API Development
    • [API Design](/blog/tag/api-design)API Design
    • [Automation](/blog/tag/automation)Automation
    • [Service Mesh](/blog/tag/service-mesh)Service Mesh
    • [Insomnia](/blog/tag/insomnia)Insomnia
    • [View All Blogs](/blog/page/1)View All Blogs
We're Entering the Age of AI Connectivity [Read more](/blog/news/the-age-of-ai-connectivity)Read moreProducts & Agents:
    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong API Gateway](/products/kong-gateway)Kong API Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Metering & Billing](/products/usage-based-metering-and-billing)Kong Metering & Billing
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
  • [Documentation](https://developer.konghq.com)Documentation
  • [Book Demo](/contact-sales)Book Demo
  1. Home
  2. Blog
  3. Engineering
  4. API Gateway vs Load Balancer: Which is Right for Your Application?
[Engineering](/blog/engineering)Engineering
April 25, 2023
5 min read

# API Gateway vs Load Balancer: Which is Right for Your Application?

Ahmed Koshok
Senior Staff Solutions Engineer, Kong

API gateways and load balancers are useful tools for building modern applications. While they have some functionality overlaps, they're distinct tools with different purposes and use cases. In this article, we'll discuss the differences between [API gateways](https://konghq.com/blog/learning-center/what-is-an-api-gateway)API gateways and load balancers, give examples of their implementations, and how to choose the right tool for your web application.

## What is a load balancer?

A load balancer is a component that distributes API request traffic across multiple servers. This improves system responsiveness and reduces failures by preventing overloading of individual resources.

When a request is made to a service (e.g., a website or video) the load balancer receives the request and decides which server will process and respond to it. This is demonstrated in the following image, where a load balancer sits between various clients and the backend server farm that will serve the requests.

how load balancers work

### What are the benefits of a load balancer?

Load balancers can complete a variety of useful functions, including:

  • - As a layer of indirection between the client and server, a load balancer can shield the client from a direct connection to the server. This means that a server may change — or be removed from the farm — and the client won't know or be impacted.
  • - Load balancers can detect when a server is malfunctioning and remove them from rotation. They can also know which servers are currently fastest and which are saturated. Based on this info, the load balancer assigns more or fewer connections. This is a useful health and performance tracking function with practical benefits.
  • - Some load balancers can handle more complex tasks, such as HTTPS offloading. When doing so, the clients have a secure connection to the load balancer over HTTPS, while the load balancer opens an HTTP connection to the backend server.
  • - Some load balancers do more work still, such as caching and content-aware routing.

### Load balancing use cases

Now that we know what a load balancer does, we can think of situations where it might be useful.

It turns out that any time we're creating a network service that will be supported by multiple servers, a load balancer is in order. Why? It helps with optimizing the utilization of our servers and gives us a measure of reliability if one of our servers fails or is taken out of rotation.

## What is an API gateway?

Check out our full article on [API gateways](https://konghq.com/blog/learning-center/what-is-an-api-gateway)API gateways for more details. But the TL;DR version is: an API is an interface that allows two computing resources to communicate with each other, and an API gateway is an intermediary between API consumers and APIs.

### Why use an API gateway?

So why do we need an intermediary between API consumers and the APIs? The gateway applies useful higher-level functionality that makes our APIs more secure, observable, and reliable when they're deployed in a distributed manner (as they would be in a network). Examples of these functions include:

#### Traffic control

Caching and rate limiting are easily the two most common traffic control mechanisms a gateway can apply.

  • - When **caching**, the gateway gives the API consumer a faster response, while shielding the backend servers from excessive, repetitive load.
  • - With **rate limiting**, the gateway can prevent potential overuse or abuse from consumers by reducing the total number of requests a consumer can issue in a certain period of time.

Other traffic control capabilities exist, such as request validation, and transformation, for example.

#### Authentication and authorization

The API gateway can additionally [authenticate and authorize the API consumer](https://konghq.com/blog/learning-center/api-gateway-authentication)authenticate and authorize the API consumer.

Let's assume that an API is to be protected, and the consumer must offer credentials as a form of identification before consuming the API. The gateway can play this role and eliminate this burden that otherwise the various APIs will need to implement. This is important as we can't be sure each API is identifying and permitting consumers to access them consistently.

With an API gateway, we formalize this process and make it uniformly applied on all APIs. This gives us a more consistent security posture with less risk.

Learn more about [Common API Authentication Methods](https://konghq.com/blog/engineering/common-api-authentication-methods)Common API Authentication Methods

#### Metrics and logging

As APIs are discrete units of functionality, they may be offered as [products](https://konghq.com/blog/enterprise/productizing-apis)products. API owners therefore would like to know how much their products are used, and by which users. An API gateway can collect metrics about the APIs, API latency, error rate, and even gather specific information about each request.

#### Load balancing

Yes, APIs can do *some* of the work associated with load balancers, but they aren't a direct substitute for them. API gateways also direct traffic for various backend servers and apply active and passive health checks to determine when to take a server out of rotation. In the next section, we'll cover this in more depth and show how an API gateway can be used in combination with a load balancer.

### Common use cases for API gateway

The most common use case for an API gateway is to offer a layer of indirection between API consumers and a variety of APIs.

This diagram illustrates this use case for a single API. In practice, an API gateway can direct traffic to tens or hundreds of APIs.

use case for a single API

## API gateway and load balancer together

Now that we've covered the basics for a gateway and load balancer, let's see how we can use both of them together. The following diagrams show an evolution of our architecture as our requirements grow.

Let's assume we have an API, that API has consumers, and we're not using an API gateway or load balancer.

API has consumers and not using an API gateway

Next, we realize that our API consumers are growing, and our API service is getting overloaded. We need to spin up a couple of more instances of this API server, and we'll use a load balancer to help spread the load over them.

use a load balancer

We introduced a load balancer, which in addition to spreading the load over our API endpoints, also does HTTPS offloading for us. But our clients are still growing. While we can add more API servers, we'd like to have caching that's API-aware and varies its cache accuracy by a few factors. We also want to limit how much each single client can make calls in a time period. Finally, we want to collect some more metrics on the API usage. We'll be introducing an API gateway. Just like our APIs, we'll make it highly available.

load balancer and api gateway together

We introduced a pair of gateways that apply all the policies we need. Since those gateways are effectively services, we're putting a load balancer in front of them. We can add more gateways if we need — or apply maintenance on one at a time without disrupting the activity of our API clients. We also introduced a second set of API endpoints that the gateway will balance the load against and apply a different set of policies. This architecture should serve us well for the time being, and it takes advantage of both a load balancer and API gateway.

Load balancers and API gateway can improve the quality, security, performance and reliability of services. They work well together and are optimized for complementary purposes.

**Continued Learning and Related Content**

  • - [OpenID vs OAuth: Understanding API Security Protocols](https://konghq.com/blog/engineering/openid-vs-oauth-what-is-the-difference)OpenID vs OAuth: Understanding API Security Protocols
  • - [API Gateway vs API Proxy: Understanding The Differences](https://konghq.com/blog/engineering/api-gateway-vs-api-proxy-understanding-the-differences)API Gateway vs API Proxy: Understanding The Differences
  • - [Understand the Differences: API Authentication vs API Authorization](https://konghq.com/blog/engineering/api-authentication-vs-api-authorization)Understand the Differences: API Authentication vs API Authorization [](https://konghq.com/blog/learning-center/different-api-types-and-use-cases)
  • - [Control Plane vs. Data Plane – What’s the Difference?](https://konghq.com/blog/learning-center/control-plane-vs-data-plane)Control Plane vs. Data Plane – What’s the Difference?
  • - [What's the Difference: Kubernetes Controllers vs Operators?](https://konghq.com/blog/learning-center/kubernetes-controllers-vs-operators)What's the Difference: Kubernetes Controllers vs Operators?

## API Gateways vs. K8s Ingress Compared: Know Your Best-Fit Solution

[Download Now](/resources/e-book/api-gateways-vs-kubernetes-ingress)Download Now
- [API Gateway](/blog/tag/api-gateway)API Gateway- [API Management](/blog/tag/api-management)API Management- [Cloud](/blog/tag/cloud)Cloud

## More on this topic

_Videos_

## How Kong Shines in the Field of Enterprise Traffic Management

_Videos_

## Be Supportive: Legacy Protocols in a Modern World

## See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

[Get a Demo](/contact-sales)Get a Demo
**Topics**
- [API Gateway](/blog/tag/api-gateway)API Gateway- [API Management](/blog/tag/api-management)API Management- [Cloud](/blog/tag/cloud)Cloud
Ahmed Koshok
Senior Staff Solutions Engineer, Kong

Recommended posts

# Kong Simplifies Multicloud Cloud Gateways with Managed Redis Cache

[Product Releases](/blog)Product ReleasesMarch 12, 2026

Managed Redis cache is a turnkey "Shared State" add-on for Kong Dedicated Cloud Gateways. It is designed to combine the performance of an in-memory data store with the simplicity of a SaaS product. When you spin up a Dedicated Cloud Gateway in Kong

Amit Shah
[](https://konghq.com/blog/product-releases/multicloud-cloud-gateways-managed-redis-cache)

# Metered Billing for APIs: Architecture, Telemetry, and Real-World Patterns

[Enterprise](/blog)EnterpriseMarch 5, 2026

Imagine 47 million requests hitting your platform last month. Can you prove who made each one—and invoice with confidence? If that question tightens your stomach, you're not alone. Metered billing for APIs promises fair, transparent pricing that s

Kong
[](https://konghq.com/blog/enterprise/guide-to-metered-billing-for-apis)

# Enabling Secure Data Exchange with Decentralized APIs

[Engineering](/blog)EngineeringMarch 26, 2024

Stop me if you’ve heard this one before, but there’s a lot of data out there — and the amount is only growing. Estimates typically show persistent data growth roughly at a 20% annual compounded rate. Capturing, storing, analyzing, and actioning data

Ahmed Koshok
[](https://konghq.com/blog/engineering/decentralized-apis)

# Sending Traffic Across Namespaces with Gateway API

[Engineering](/blog)EngineeringMarch 8, 2024

In this blog post, we’ll demonstrate how easy it is to use Gateway API HTTPRoutes to route traffic to workloads deployed in different namespaces in a single Kubernetes cluster — a process that’s easier than ever. Previously, we only had Ingress API

Grzegorz Burzyński
[](https://konghq.com/blog/engineering/sending-traffic-across-namespaces-with-gateway-api)

# Get Gravitas and Go Amazonian: Kong Validated for AWS Graviton3, Amazon Linux 2023 OS

[Engineering](/blog)EngineeringJune 26, 2023

Today, we're thrilled to announce that Kong Enterprise and Kong Konnect Data Planes are now validated to run on AWS Graviton3 processors and Amazon Linux 2023 OS. As an APN Advanced Tier Partner of AWS, we were delighted to have the opportunity to

Claudio Acquaviva
[](https://konghq.com/blog/engineering/validated-aws-graviton3-al2023)

# API Gateway vs API Proxy: Understanding The Differences

[Engineering](/blog)EngineeringApril 25, 2023

In this article, we'll talk about the differences between an API gateway and an API proxy — as well as a reverse proxy. We'll cover use cases and when each might be the right tool for the project at hand, including the advantages of API gateways o

Deepak Grewal
[](https://konghq.com/blog/engineering/api-gateway-vs-api-proxy-understanding-the-differences)

# Migration Options for IBM Cloud API Gateway Customers

[Engineering](/blog)EngineeringDecember 14, 2022

IBM recently announced the deprecation of its Cloud API Gateway, a service used to create and manage APIs by placing a gateway in front of existing IBM Cloud endpoints. With this move, IBM Cloud Functions and IBM Cloud Foundry are no longer able to

Syed Mahmood
[](https://konghq.com/blog/engineering/ibm-cloud-api-gateway-migration)

## Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

[Get a Demo](/contact-sales)Get a Demo
Ask AI for a summary of Kong
  • [](https://chatgpt.com/s/t_69b981cfa37081919ce25ce107c431c1)
  • [](https://share.google/aimode/hyefOiNwl8pg8W99d)
  • [](https://www.perplexity.ai/search/what-solutions-does-kong-offer-VsYWPddxQjajgvLA4B9hjQ)
Stay connected

## step-0

    • Company
    • [About Kong](/company/about-us)About Kong
    • [Customers](/customer-stories)Customers
    • [Careers](/company/careers)Careers
    • [Press](/company/press-room)Press
    • [Events](/events)Events
    • [Contact](/company/contact-us)Contact
    • [Pricing](/pricing)Pricing
    • Legal
    • [Terms](/legal/terms-of-use)Terms
    • [Privacy](/legal/privacy-policy)Privacy
    • [Trust and Compliance](https://trust.konghq.com)Trust and Compliance
    • Platform
    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
    • [Kong Gateway](/products/kong-gateway)Kong Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Documentation](https://developer.konghq.com)Documentation
    • [Book Demo](/contact-sales)Book Demo
    • Compare
    • [AI Gateway Alternatives](/performance-comparison/ai-gateway-alternatives)AI Gateway Alternatives
    • [Kong vs Apigee](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • [Kong vs IBM](/performance-comparison/ibm-api-connect-vs-kong)Kong vs IBM
    • [Kong vs Postman](/performance-comparison/kong-vs-postman)Kong vs Postman
    • [Kong vs Mulesoft](/performance-comparison/kong-vs-mulesoft)Kong vs Mulesoft
    • Explore More
    • [Open Banking API Solutions](/solutions/open-banking)Open Banking API Solutions
    • [API Governance Solutions](/solutions/api-governance)API Governance Solutions
    • [Istio API Gateway Integration](/solutions/istio-gateway)Istio API Gateway Integration
    • [Kubernetes API Management](/solutions/build-on-kubernetes)Kubernetes API Management
    • [API Gateway: Build vs Buy](/campaign/secure-api-scalability)API Gateway: Build vs Buy
    • [Kong vs Apigee](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • Open Source
    • [Kong Gateway](https://developer.konghq.com/gateway/install/)Kong Gateway
    • [Kuma](https://kuma.io/)Kuma
    • [Insomnia](https://insomnia.rest/)Insomnia
    • [Kong Community](/community)Kong Community

Kong enables the connectivity layer for the agentic era – securely connecting, governing, and monetizing APIs and AI tokens across any model or cloud.

  • Japanese
  • Frenchcoming soon
  • Spanishcoming soon
  • Germancoming soon
© Kong Inc. 2026
Interaction mode