Apache APISIX is a dynamic, real-time, high-performance API gateway that also offers AI gateway capabilities. Built on NGINX and etcd, it features dynamic routing and hot plugin reloading compared with traditional API gateways, making it especially suitable for API management in microservice architectures.
Main capabilities include:
- Traffic management: dynamic upstreams, load balancing (round-robin, consistent hashing), health checks, circuit breaking, traffic splitting, proxy mirroring, request/response rewriting, and more.
- Fine-grained routing: supports full-path matching and prefix matching, allows using built-in Nginx variables (such as cookie, args) as routing conditions, supports multiple operators, custom route matching functions, IPv6, priorities, batch HTTP requests, and GraphQL attribute filtering.
- Security: supports authentication and authorization via key-auth, JWT, basic-auth, wolf-rbac, casbin, keycloak, casdoor, etc., IP/Referer blacklists and whitelists, external IdP integration, rate limiting and throttling, ReDoS protection, CORS, URI blocking, request validation, and CSRF protection.
- Observability and operations: Zipkin tracing, Apache SkyWalking APM, Prometheus metrics, external service discovery (Consul, Nacos, Eureka, Zookeeper, etc.), clustering and high availability, version control and rollback, CLI management, Standalone mode, global rules, fault injection, REST Admin API, export to various external logs (Kafka, ClickHouse, Elasticsearch, Datadog, etc.), Helm charts, and HashiCorp Vault secret management.
- Multi-protocol: TCP/UDP proxy, Dubbo proxy, MQTT proxy, gRPC proxy, gRPC Web proxy, gRPC transcoding, WebSocket proxy, HTTP(S) forward proxy, dynamic SSL loading, HTTP/3 with QUIC.
- High extensibility: supports plugins written in Java/Go/Python, supports the Proxy Wasm SDK, and custom load balancing algorithms and routing algorithms.
- Multi-language plugin development: supports Java, Golang, Python, and Node.js via RPC; via Wasm approach (experimental), supports the Proxy Wasm SDK.
As an AI gateway, APISIX provides through its plugin system: AI proxying, routing traffic to different LLM providers through a unified interface; load balancing, retries, and fallback across multiple LLMs to ensure the efficiency and reliability of AI proxying; token-based rate limiting to control costs and protect upstream models; and security capabilities such as authentication, authorization, and traffic control for AI workloads.
Usage: A quick-start script enables one-click installation and running (Docker required), starting APISIX (listening on port 9080) and the etcd configuration store; routes are created via the Admin API (port 9180) to proxy requests to upstream services; requests are sent to verify the routes. For more deployment methods, refer to the getting-started guide and installation documentation; for plugin development, refer to the plugin development guide, plugin concepts, and the REST Admin API reference.
Applicable scenarios: API management, microservice traffic governance, Kubernetes Ingress, AI gateway (multi-LLM routing and governance), multi-protocol proxying, and more.
Limitations: The materials do not provide specific pricing, cost, platform compatibility details, or performance data; the Wasm approach is experimental; the Admin API by default only allows access from 127.0.0.1, and the configuration must be modified to specify the list of allowed IPs.