Kong Gateway
Kong Gateway is an API gateway that proxies requests to configured upstream services and applies plugins to gateway entities.
Why consider Kong Gateway?
Kong Gateway is a cloud-native API and LLM Gateway that simplifies routing, authentication, and load balancing across distributed architectures.
Learn Kong Gateway by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide3 sections
Managing Microservice Traffic with Kong Gateway
Kong Gateway operates as a scalable, platform-agnostic, and cloud-native API and AI Gateway. As applications break down into microservices, the complexity of networking, authentication, and routing increases rapidly. Kong addresses this challenge by providing a unified entry point that intercepts client requests before they reach backend services. By centralizing these operations, it abstracts away common network and security logic so engineering teams can focus on core application features.
Centralized Orchestration and Traffic Management
Modern architectures often involve tens or hundreds of distinct services. Without an intermediary layer, clients must know the exact location of each service and handle complexities like retries, timeouts, and authorization directly.
Kong acts as a centralized orchestration layer offering routing, load balancing, health checking, and authentication. Instead of building rate-limiting or API key validation into every microservice, administrators configure these policies once at the gateway level. When an incoming request reaches Kong, it evaluates the request against configured routes, enforces security plugins, and seamlessly forwards the traffic to the appropriate upstream destination. It supports multi-LLM routing, semantic security, and MCP traffic governance, making it highly suitable for modern AI-driven architectures.
Flexible Deployment Across Environments
One of the defining characteristics of Kong is its adaptability to various deployment environments. It can run on bare metal, virtual machines, or containerized environments. For organizations heavily invested in container orchestration, Kong can be run natively in Kubernetes using its official Kubernetes Ingress Controller.
This native integration allows administrators to manage API configurations using familiar Kubernetes manifests. Alternatively, if a team wants to avoid the overhead of traditional OS dependencies, they can deploy Kong Gateway via a lightweight distroless image that excludes shell and OS tools. This approach reduces the attack surface and ensures a minimal resource footprint.
Testing Kong Locally with Docker Compose
To understand how Kong manages traffic, setting up a local instance provides a practical starting point. The official repository offers a Docker Compose configuration that quickly provisions the gateway alongside its required database.
The following verified commands demonstrate how to pull the configuration and start the gateway stack:
$ git clone https://github.com/Kong/docker-kong $ cd docker-kong/compose/After navigating to the directory, launch the environment:
$ KONG_DATABASE=postgres docker-compose --profile database upOnce the stack initializes, Kong exposes several ports to handle different types of traffic. Specifically, when running locally with Docker Compose, proxy traffic is received on port 8000. Administrators can then use the Admin API on port 8001 to create services, define routes, and enable plugins, while clients seamlessly access those services through the proxy port.
For more advanced setups, including hybrid modes or DB-less configurations, refer to the official Kong Gateway Installation Guide and the project's GitHub Repository. These resources provide comprehensive instructions for tailoring the deployment to production requirements.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.