This is an automated email from the ASF dual-hosted git repository.
Yilialinn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new fd975e441b4 docs: clarify gateway authentication and comparison
evidence (#2139)
fd975e441b4 is described below
commit fd975e441b4d388e241531b17953a8a303a61530
Author: Yilia Lin <[email protected]>
AuthorDate: Mon Nov 16 17:09:32 2026 +0800
docs: clarify gateway authentication and comparison evidence (#2139)
---
.../learning-center/api-gateway-authentication.md | 34 ++++++++--------
.../open-source-api-gateway-comparison.md | 46 ++++++++++++----------
website/learning-center/what-is-an-api-gateway.md | 4 +-
3 files changed, 46 insertions(+), 38 deletions(-)
diff --git a/website/learning-center/api-gateway-authentication.md
b/website/learning-center/api-gateway-authentication.md
index fbfc167955b..4c9b3e18b40 100644
--- a/website/learning-center/api-gateway-authentication.md
+++ b/website/learning-center/api-gateway-authentication.md
@@ -7,15 +7,15 @@ tags: [authentication, security, api-gateway]
hide_table_of_contents: false
---
-API gateway authentication verifies client identity at a centralized entry
point before requests reach backend services. Depending on the client and trust
model, credentials can be a username and password, API key, signed token, OAuth
access token, or client certificate. Centralized enforcement reduces duplicated
authentication logic and creates one control point for access policies.
+API gateway authentication verifies client identity for requests routed
through the gateway and covered by its authentication policy. Depending on the
client and trust model, credentials can be a username and password, API key,
signed token, OAuth access token, or client certificate. Centralized
enforcement can reduce duplicated authentication logic; backend services still
enforce business and resource-level authorization.
## What is API Gateway Authentication
In a distributed architecture, every service that exposes an endpoint must
answer a fundamental question: who is making this request? Without a gateway,
each service independently implements its own authentication stack. This leads
to inconsistent enforcement, duplicated code, and a broader attack surface.
-An [API gateway](/learning-center/what-is-an-api-gateway/) centralizes this
concern. It intercepts every inbound request, validates credentials against a
configured identity provider or local store, and either forwards the
authenticated request downstream or rejects it immediately. Broken
authentication consistently ranks among the top API vulnerability categories,
making centralized enforcement critical.
+An [API gateway](/learning-center/what-is-an-api-gateway/) centralizes this
concern for the APIs placed behind it. For a request that matches a protected
route, the configured authentication policy determines how credentials are
validated and whether the request is forwarded or rejected. Public routes,
anonymous-access options, and paths that bypass the gateway need separate
consideration.
-Centralizing authentication at the gateway layer provides three key
advantages. First, it significantly reduces per-service authentication code by
consolidating auth logic into a single component. Second, it creates a single
audit log for every authentication event. Third, it enables credential rotation
and policy changes without redeploying individual services.
+Centralizing authentication can consolidate shared credential checks and
policy changes. Gateway logs can also contribute evidence for authentication
attempts when the relevant logging is configured and verified. They do not
automatically form a complete audit trail: identity providers and services can
observe events that the gateway never sees, and rejected requests may not carry
an established consumer identity.
Authentication establishes who or what is making a request. Authorization
determines what that authenticated identity may access. A gateway can enforce
both, but validating a credential does not by itself grant permission to every
upstream resource.
@@ -54,29 +54,29 @@ JWT authentication uses digitally signed tokens that carry
claims about the clie
The compact format and local signature verification make JWTs useful for
distributed APIs, provided issuers, signing keys, accepted algorithms, and
required claims are configured explicitly.
-APISIX implements JWT validation through its [jwt-auth
plugin](/docs/apisix/plugins/jwt-auth/). It supports symmetric, RSA, ECDSA,
RSA-PSS, and EdDSA signing algorithms, together with configurable token
locations and time-based claim validation.
+APISIX implements JWT validation through its [jwt-auth
plugin](/docs/apisix/plugins/jwt-auth/). The behavior described here is checked
against APISIX 3.19.0: it verifies the signature and uses `key_claim_name`
(default `key`) to find a configured Consumer credential. That lookup is not
automatic mapping of every JWT `sub` to a Consumer. By default, `exp` and `nbf`
are checked when present; explicitly configured `claims_to_verify` entries must
be present and valid in this version. This se [...]
### OAuth 2.0
OAuth 2.0 is an authorization framework that enables third-party applications
to obtain limited access to an API on behalf of a resource owner. For
machine-to-machine access, the client credentials grant issues tokens to an
application rather than a user. The gateway validates bearer tokens issued by
an authorization server, typically by introspecting the token or verifying a
JWT access token locally.
-OAuth 2.0 is widely adopted across enterprises for API integrations. The
framework's delegation model makes it essential for any API exposed to external
developers or partner ecosystems.
+Use OAuth 2.0 when the integration needs delegated access or an
authorization-server-managed token lifecycle. It is not a requirement for every
external API; the appropriate method depends on the client, permissions, and
trust boundaries.
### OpenID Connect (OIDC)
OpenID Connect extends OAuth 2.0 with a standardized identity layer. It adds
an ID token (a JWT) that carries user identity claims alongside the OAuth 2.0
access token. The gateway can validate the ID token to confirm user identity
and use the access token for authorization decisions.
-OIDC is the de facto standard for single sign-on in API ecosystems. Major
identity providers including Okta, Auth0, Microsoft Entra ID, and Google
Identity implement OIDC. APISIX provides OIDC support through its
[openid-connect plugin](/docs/apisix/plugins/openid-connect/), which supports
authorization code flow, token introspection, and token refresh. The
[provider-switching tutorial](/blog/2023/03/09/authenticate-openid-connect/)
shows how discovery metadata keeps the gateway configur [...]
+APISIX provides OIDC support through its [openid-connect
plugin](/docs/apisix/plugins/openid-connect/), with authorization-code login,
bearer-token validation, and token-refresh options. Choose the flow and
issuer/audience checks for the identity provider and token type being accepted;
these settings are not interchangeable with `jwt-auth`. An ID token establishes
identity for its intended client, not permission to every API resource. The
[provider-switching tutorial](/blog/2023/03/09/au [...]
### mTLS (Mutual TLS)
[Mutual TLS (mTLS)](/learning-center/what-is-mutual-tls/) requires both the
client and server to present certificates during the TLS handshake. The gateway
validates the client certificate against a trusted certificate authority,
establishing strong machine identity without application-layer tokens.
-mTLS adoption has surged alongside zero-trust architecture initiatives. In
Kubernetes environments, mTLS between services has become increasingly common.
At the gateway level, mTLS is particularly valuable for B2B integrations and
internal service-to-service communication where certificate management
infrastructure already exists.
+At the gateway level, mTLS can be useful for partner integrations and
service-to-service communication where certificate issuance, rotation, and
revocation are managed. It establishes a certificate-based identity at that TLS
boundary, not automatic user identity or permission to every backend resource.
### HMAC Authentication
-HMAC authentication requires the client to compute a hash-based message
authentication code over the request content using a shared secret. The gateway
independently computes the same HMAC and compares the results. This method
provides request integrity verification in addition to authentication.
+HMAC authentication requires the client to compute a hash-based message
authentication code over agreed request components using a shared secret. The
gateway computes the expected HMAC and compares the results. Integrity
protection covers the signed components, not automatically every header and
body field; the client and verifier must use the same signing rules.
HMAC is useful for financial APIs and webhook verification scenarios where the
receiver must verify both the sender and the integrity of the signed request.
@@ -86,25 +86,25 @@ HMAC is useful for financial APIs and webhook verification
scenarios where the r
**Enforce short-lived tokens.** Choose JWT and OAuth 2.0 access-token
lifetimes that limit exposure while remaining practical for the client flow.
Use an appropriate renewal mechanism rather than issuing long-lived bearer
tokens by default.
-**Centralize consumer management.** Define consumers at the gateway level with
consistent identity attributes. Map every API key, JWT subject, and OAuth 2.0
client ID to a named consumer entity. This enables unified rate limiting,
logging, and access control across authentication methods.
+**Design identity mapping explicitly.** Use
[Consumers](/docs/apisix/terminology/consumer/) and
[Credentials](/docs/apisix/terminology/credential/) where the selected
authentication plugin supports them. External token validation does not by
itself attach an APISIX Consumer. Confirm which identity is available before
using consumer-based quotas, logging, or access policies; keep service-level
ownership and permissions separate.
-**Validate all claims.** Do not trust a JWT solely because its signature is
valid. Verify the issuer (iss), audience (aud), expiration (exp), and
not-before (nbf) claims. Reject tokens with unexpected or missing claims.
+**Define and enforce a token policy.** A valid signature alone does not
establish that a token is intended for this API. Specify trusted issuers,
intended audiences, required claims, and time validity, then verify that the
chosen plugin and flow enforce each requirement. Do not assume the default
`jwt-auth` time checks require every claim to exist or enforce `iss` and `aud`;
use appropriate additional validation where the selected mechanism does not
cover the policy.
-**Log authentication events comprehensively.** Record authentication successes
and failures with the available client identity, timestamp, source address, and
route. Set retention according to the organization's incident-response,
privacy, and compliance requirements.
+**Verify audit coverage.** Configure and test logging for successful and
rejected requests, including timestamp, route, outcome, and available identity.
Correlate gateway, identity-provider, and service events where needed. Do not
log passwords, API keys, bearer tokens, or session cookies; set retention
according to incident-response, privacy, and compliance requirements.
## How Apache APISIX Handles Authentication
-Apache APISIX provides a plugin-based authentication architecture that
supports the methods described above. Each authentication plugin runs in the
gateway's request processing pipeline before the request reaches any upstream
service.
+Apache APISIX provides plugin-based credential checks and TLS
client-certificate validation. Request authentication depends on the configured
Route, Service, or other policy scope; installing a plugin does not protect
every route or prevent direct access to upstream services.
-APISIX's Consumer and Credential resources associate authentication material
with named consumers. When different consumers need to use different
authentication methods on the same Route or Service, the `multi-auth` plugin
provides explicit "any supported method" behavior.
+APISIX's Consumer and Credential resources associate authentication material
with named consumers for plugins that use those resources. When different
consumers need alternative authentication methods on the same Route or Service,
the [multi-auth plugin](/docs/apisix/plugins/multi-auth/) provides explicit
"any supported method" behavior. It does not mean that all configured methods
must succeed.
Key plugins include:
- [key-auth](/docs/apisix/plugins/key-auth/): Static API key validation with
header or query parameter extraction.
-- [jwt-auth](/docs/apisix/plugins/jwt-auth/): JWT signature verification with
configurable algorithms and claim validation.
-- [openid-connect](/docs/apisix/plugins/openid-connect/): Full OIDC flow
support including authorization code, token introspection, and PKCE.
+- [jwt-auth](/docs/apisix/plugins/jwt-auth/): Consumer-credential lookup, JWT
signature verification, and configurable time-claim checks.
+- [openid-connect](/docs/apisix/plugins/openid-connect/): Identity-provider
integration with flow-specific settings for login and bearer-token validation.
-APISIX can also combine authentication with authorization plugins such as
consumer-restriction and OPA (Open Policy Agent), enabling access-control
decisions after identity is established. The [API gateway security
guide](/learning-center/api-gateway-security/) explains how authentication fits
with authorization, rate limiting, and other layers of defense.
+APISIX can also combine authentication with authorization plugins such as
[consumer-restriction](/docs/apisix/plugins/consumer-restriction/) and [OPA
(Open Policy Agent)](/docs/apisix/plugins/opa/), enabling configured
access-control decisions. Their input and identity requirements must match the
chosen authentication path; successful authentication alone does not grant
access to every resource. The [API gateway security
guide](/learning-center/api-gateway-security/) explains how these c [...]
To test these controls on a running gateway, first complete the [Apache APISIX
getting started guide](/docs/apisix/getting-started/) and then configure the
authentication plugin that matches the client and trust model.
@@ -120,7 +120,7 @@ API key authentication can be appropriate for controlled
server-to-server commun
### How does mTLS differ from standard TLS at the gateway?
-Standard TLS authenticates only the server to the client. The client verifies
the server's certificate, but the server accepts any client connection. mTLS
adds a second handshake step where the client also presents a certificate that
the server validates against a trusted CA. This provides strong machine
identity for both parties and is a foundational component of zero-trust network
architectures.
+In a typical server-authenticated TLS connection, the client validates the
server's certificate without presenting its own certificate for client
authentication. mTLS adds client-certificate authentication within the TLS
handshake. The server validates the client certificate against its configured
trust policy; application-level authorization is still a separate decision.
### Can I combine multiple authentication methods on a single route?
diff --git a/website/learning-center/open-source-api-gateway-comparison.md
b/website/learning-center/open-source-api-gateway-comparison.md
index 8314a1d19c8..5a04adf3964 100644
--- a/website/learning-center/open-source-api-gateway-comparison.md
+++ b/website/learning-center/open-source-api-gateway-comparison.md
@@ -30,52 +30,58 @@ Evaluate candidates with the policies, deployment topology,
failure modes, and t
## Feature Comparison Table
-| Feature | Apache APISIX | Kong | Envoy | Traefik |
+Scope checked on **October 16, 2026**: [Apache APISIX
3.19.0](https://github.com/apache/apisix/releases/tag/3.19.0), [Kong Gateway
OSS 3.9.4](https://github.com/Kong/kong/releases/tag/3.9.4), [Envoy
1.40.0](https://github.com/envoyproxy/envoy/releases/tag/v1.40.0), and [Traefik
Proxy 3.7.15](https://github.com/traefik/traefik/releases/tag/v3.7.15). The
table compares these open-source projects, not every feature of Kong's
commercial products, Envoy-based gateway products, or Traefik Hub. [...]
+
+| Feature | Apache APISIX | Kong Gateway OSS | Envoy Proxy | Traefik Proxy |
|---|---|---|---|---|
-| Language | Lua (NGINX + LuaJIT) | Lua (NGINX + LuaJIT) | C++ | Go |
-| Configuration Model | etcd-backed dynamic or standalone file-based |
PostgreSQL, DB-less, or hybrid | Static files or xDS | Files and provider
integrations |
-| Management Interface | Admin API | Admin API or declarative configuration |
Admin interface and xDS APIs | File/providers and dashboard/API |
-| Dynamic Updates | Yes | Mode-dependent | Yes with xDS or dynamic files | Yes
through provider watches |
-| Extension Model | Built-in and external plugins | Plugin Hub and custom
plugins | HTTP/network filters | Middleware and plugins |
-| Plugin Languages | Lua, Java, Go, Python, Wasm | Lua, Go (PDK) | C++, Wasm |
Go (middleware) |
-| gRPC Proxying | Native | Supported | Native | Supported |
-| License | Apache 2.0 | Apache 2.0 (OSS) / Proprietary (Enterprise) | Apache
2.0 | MIT |
+| Primary implementation | Lua on NGINX/OpenResty | Lua on NGINX/OpenResty |
C++ | Go |
+| Configuration model | etcd-backed traditional/decoupled; standalone file- or
API-driven | PostgreSQL-backed, DB-less, or hybrid roles | Static bootstrap
plus optional xDS resources | Startup configuration plus dynamic providers |
+| Routing configuration interface | Admin API or standalone file/snapshot API,
depending on mode | Admin API or declarative snapshot, depending on topology |
Bootstrap and xDS; admin is not a general route-editing API | Provider sources;
dashboard/API exposes running configuration |
+| Dynamic routing updates | etcd watches or standalone configuration updates |
Entity writes or snapshot replacement, depending on topology | xDS resources
delivered by files or a management server | Supported providers watch or poll
their configuration sources |
+| Extension model | Lua plugins, external runners, and Wasm | Lua plugins and
external plugin servers | Native filters and extensions, including Wasm filters
| Built-in middleware; Go/Yaegi and Wasm plugins |
+| Kubernetes integration | Separate APISIX Ingress Controller | Separate Kong
Ingress Controller | Separate gateway/control-plane integration | Built-in
Kubernetes providers |
+| gRPC proxying | Supported with configured HTTP/2 and upstream scheme |
Supported through `grpc`/`grpcs` routes and services | Supported with HTTP/2
configuration | Supported with HTTP/2 to the backend |
+| Open-source license | Apache 2.0 | Apache 2.0 | Apache 2.0 | MIT |
+
+Dynamic routing does not imply that every startup setting or extension can
change without a restart. gRPC proxying also does not imply automatic
JSON-to-gRPC transcoding. For Kubernetes, verify the exact controller/provider
version, supported resource kinds, and Gateway API conformance rather than
treating integration as a single yes/no feature.
-Note: Feature details change across releases and editions. Verify required
capabilities against each project's current documentation before selecting a
gateway.
+The license row covers the open-source code:
[APISIX](https://github.com/apache/apisix/blob/3.19.0/LICENSE), [Kong
OSS](https://github.com/Kong/kong/blob/3.9.4/LICENSE),
[Envoy](https://github.com/envoyproxy/envoy/blob/v1.40.0/LICENSE), and [Traefik
Proxy](https://github.com/traefik/traefik/blob/v3.7.15/LICENSE.md). Commercial
software, hosted services, and individual extensions may have different terms.
## Detailed Breakdown
### Apache APISIX
-[Apache APISIX](/) is built on NGINX and LuaJIT. Its traditional mode uses
etcd to distribute route and plugin configuration dynamically, while standalone
mode loads declarative configuration from a local file.
+[Apache APISIX](/) is built on NGINX and LuaJIT. Traditional and decoupled
modes use etcd to distribute route and plugin configuration. In 3.19.0,
standalone deployments can use file-driven configuration or API-driven
configuration snapshots without etcd; choose the management workflow for the
intended [deployment
mode](https://github.com/apache/apisix/blob/3.19.0/docs/en/latest/deployment-modes.md).
-The [plugin ecosystem](/plugins/) spans authentication (JWT, key-auth, OpenID
Connect), traffic management (rate limiting, circuit breaking), observability
(Prometheus, Zipkin, OpenTelemetry), and transformation (request/response
rewriting, gRPC transcoding). APISIX also supports several external plugin
runners and WebAssembly extensions in addition to native Lua plugins.
+The [plugin ecosystem](/plugins/) spans authentication (JWT, key-auth, OpenID
Connect), traffic management (rate limiting, circuit breaking), observability
(Prometheus, Zipkin, OpenTelemetry), and transformation (request/response
rewriting, gRPC transcoding). Beyond native Lua plugins, [external
runners](https://github.com/apache/apisix/blob/3.19.0/docs/en/latest/external-plugin.md)
add a process and RPC boundary. [Wasm
extensions](https://github.com/apache/apisix/blob/3.19.0/docs/en/lat [...]
-The [APISIX Ingress Controller](/docs/ingress-controller/overview/) watches
supported Kubernetes resources and translates them into APISIX routing and
plugin configuration.
+The [APISIX Ingress Controller](/docs/ingress-controller/overview/) watches
supported Kubernetes resources and translates them into APISIX routing and
plugin configuration. It is a separate component with its own releases and
resource compatibility.
As an Apache Software Foundation top-level project, APISIX is
community-governed and vendor-neutral.
### Kong
-Kong shares the NGINX and LuaJIT foundation with APISIX and supports
PostgreSQL-backed, DB-less, and hybrid control-plane/data-plane deployment
modes. These modes differ in how configuration is persisted and distributed, so
teams should compare them against their availability and change-management
requirements.
+Kong Gateway OSS 3.9.4 shares the NGINX and LuaJIT foundation with APISIX. Its
[configuration
reference](https://github.com/Kong/kong/blob/3.9.4/kong.conf.default) supports
PostgreSQL-backed operation, DB-less declarative configuration, and hybrid
control-plane/data-plane roles. In DB-less mode, ordinary entity CRUD is not
the update workflow: a declarative configuration replaces the active snapshot.
These modes differ in persistence, distribution, and compatible plugins; see
the [DB-les [...]
-Kong's Plugin Hub includes open-source and commercial plugins, and its
extension options include Lua plugins and external plugin servers. Availability
varies by gateway edition, deployment mode, and plugin.
+Kong's Plugin Hub includes open-source and commercial plugins, and its
extension options include Lua plugins and [external plugin
servers](https://github.com/Kong/kong/blob/3.9.4/kong/runloop/plugin_servers/init.lua).
Availability varies by gateway edition, deployment mode, and plugin.
-Kong has a strong enterprise support ecosystem with commercial offerings (Kong
Gateway Enterprise, Kong Konnect) and a large user community.
+Kong also offers commercial gateway editions and Konnect. Their management,
support, and hosted-control-plane features are separate purchasing and
deployment decisions, not capabilities implied by the OSS column. Kubernetes
deployments can use the separately versioned [Kong Ingress
Controller](https://developer.konghq.com/kubernetes-ingress-controller/).
### Envoy
Envoy is a C++ proxy originally built at Lyft and is now a CNCF graduated
project. It is used as a service-mesh data plane and as an edge or service
proxy.
-Envoy can start with fully static listeners, routes, and clusters, so it does
not require an external control plane for a small or stable configuration. For
dynamic management, Envoy uses the xDS discovery APIs to receive configuration
from files or a management server. Edge deployments that change frequently
often pair Envoy with a separate control plane or gateway product.
+Envoy can start with fully static listeners, routes, and clusters, so it does
not require an external control plane for a small or stable configuration. For
dynamic management, Envoy uses [xDS discovery
APIs](https://github.com/envoyproxy/envoy/blob/v1.40.0/docs/root/configuration/overview/introduction.rst)
to receive configuration from files or a management server. Its [admin
interface](https://github.com/envoyproxy/envoy/blob/v1.40.0/docs/root/operations/admin.rst)
exposes operational [...]
-Envoy's filter-chain model provides built-in HTTP and network filters and
supports native or WebAssembly extensions. It is commonly used as a
service-mesh data plane and can also operate as an edge proxy.
+Envoy's filter-chain model provides built-in HTTP and network filters and
supports native extensions and [Wasm
filters](https://github.com/envoyproxy/envoy/blob/v1.40.0/docs/root/configuration/http/http_filters/wasm_filter.rst).
It is commonly used as a service-mesh data plane and can also operate as an
edge proxy.
### Traefik
-Traefik is written in Go and uses provider integrations for environments such
as Docker, Kubernetes, and Consul. Those integrations can watch service changes
and update routing configuration.
+Traefik Proxy is written in Go and uses [provider
integrations](https://github.com/traefik/traefik/blob/v3.7.15/docs/content/reference/install-configuration/providers/overview.md)
for environments such as Docker, Kubernetes, and Consul. Those integrations
update dynamic routing configuration from provider sources. The [dashboard and
its GET
API](https://github.com/traefik/traefik/blob/v3.7.15/docs/content/reference/install-configuration/api-dashboard.md)
show the active configuration rat [...]
+
+Traefik includes ACME certificate-resolver integration for automated TLS
certificate provisioning. Its middleware system covers capabilities such as
authentication, rate limiting, header manipulation, and circuit breaking. Its
[plugin
systems](https://github.com/traefik/traefik/blob/v3.7.15/docs/content/extend/extend-traefik.md)
use Go/Yaegi or WebAssembly; Traefik marks plugins as experimental, so assess
compatibility and production risk for the selected extension.
-Traefik includes ACME certificate-resolver integration for automated TLS
certificate provisioning. Its middleware system covers capabilities such as
authentication, rate limiting, header manipulation, and circuit breaking.
+For gRPC, check transport settings against the [APISIX gRPC proxy
guide](https://github.com/apache/apisix/blob/3.19.0/docs/en/latest/grpc-proxy.md),
[Kong service
protocols](https://github.com/Kong/kong/blob/3.9.4/kong/db/schema/entities/services.lua),
[Envoy gRPC
overview](https://github.com/envoyproxy/envoy/blob/v1.40.0/docs/root/intro/arch_overview/other_protocols/grpc.rst),
and [Traefik's gRPC transport
examples](https://github.com/traefik/traefik/blob/v3.7.15/docs/content/expose/ove
[...]
## Performance Considerations
diff --git a/website/learning-center/what-is-an-api-gateway.md
b/website/learning-center/what-is-an-api-gateway.md
index 1887ff8f43c..1d29bdf8f6c 100644
--- a/website/learning-center/what-is-an-api-gateway.md
+++ b/website/learning-center/what-is-an-api-gateway.md
@@ -63,7 +63,9 @@ Centralizing [API gateway
authentication](/learning-center/api-gateway-authentic
### Rate Limiting
-Rate limiting protects backend services from traffic spikes, abusive clients,
and cascading failures. Gateways enforce limits at multiple granularities: per
consumer, per route, per IP, or globally. In Apache APISIX,
[`limit-req`](/docs/apisix/plugins/limit-req/) uses a leaky-bucket algorithm
for request-rate control, while
[`limit-count`](/docs/apisix/plugins/limit-count/) applies quotas within fixed
time windows. Redis-backed policies can share counters across gateway nodes
when a depl [...]
+Rate limiting helps protect backend services from excessive traffic. Limits
can be keyed by consumer, client IP, or other request attributes, depending on
the plugin and configuration. Apache APISIX's
[`limit-req`](/docs/apisix/plugins/limit-req/) uses a leaky-bucket algorithm
for request-rate control. In APISIX 3.19.0,
[`limit-count`](/docs/apisix/plugins/limit-count/) applies request-count quotas
using a fixed window by default; sliding windows are available from 3.18.0
onward. Check t [...]
+
+Counter storage is a separate choice: `limit-count` with `policy: local`
counts independently on each APISIX instance, not across the deployment.
Redis-backed policies can share counters when nodes use the same counter keys
and compatible rules. Window behavior, synchronization, and the configured
response to counter-store failures still affect enforcement. See [API gateway
rate limiting](/learning-center/api-gateway-rate-limiting/) for selection and
deployment considerations.
### Caching