Why Apache APISIX rate limiting breaks down across gateway nodes
APISIX provides request, count and connection limits plus weighted traffic splitting for canary releases, and the main design decision is whether each gateway node counts requests on its own or all nodes share one counter. That choice matters most when several gateway nodes sit behind a load balancer, because a limit that is correct on a single node can be multiplied by the node count. If a client may reach any of four nodes and each node allows 100 requests per minute, the effective ceiling for that client is not 100. Before go-live, confirm how the limiting plugins you plan to use store their counters, which policies they support for multi-node deployments, and what each policy costs in latency and dependencies. Ask the platform team to test a single client against every node in the cluster, not only one.
Counter state is the second trap. Local counters live in gateway memory, so they reset when a node restarts, is redeployed or is replaced by an autoscaling event. A client that is throttled just before a rolling upgrade may receive a fresh allowance afterward. Shared counters avoid this problem but add a runtime dependency on the store that holds them, so you need to decide how the gateway behaves when that store is slow or unreachable: fail open to protect availability, or fail closed to protect upstream services. Write that decision down with the upstream owners, because it determines who gets hurt during an incident. Confirm the exact failure behavior and key configuration options for your APISIX version in the plugin documentation for that release.
Traffic splitting has a similar gap. A weighted split sends the requested share of traffic to a new release, but it does not judge whether that release is healthy. A canary at 5 percent is only as safe as the health checks on its upstream, the error and latency metrics you watch during the shift, and the rollback step you can execute quickly. Confirm which metrics your observability stack exports from APISIX and how quickly they reach your dashboards. The software itself is licensed under Apache-2.0, and the latest release referenced on the downloads page is 3.19.0, released September 28, 2026. Treat that version as the one to confirm against your own build, since limiting and splitting options change between releases.
Which APISIX plugins and objects control traffic
Apache APISIX splits traffic control across several plugins and configuration objects, and each one counts differently. Choosing the right combination depends on what you need to limit, who you are limiting, and where the plugin attaches. The cards below cover the components you will compare before writing any configuration.
Request rate with limit-req
The limit-req plugin smooths request rate using a leaky-bucket style control, so bursts are delayed or rejected rather than counted in a fixed window. It is the usual choice when you want to protect an upstream from spikes. Confirm the key options, such as the key used for counting and the rejection status, in the plugin documentation for your APISIX version. Test bursts against a staging route before you rely on the numbers in production.
Fixed-window counts with limit-count
The limit-count plugin caps the number of requests allowed in a time window, keyed by client IP, consumer or a request header. It suits quota-style rules such as per-partner allowances. Check which policy options it supports, because the counter storage decides whether limits hold across several gateway nodes. Confirm the window and key syntax in the documentation for the version you run, and record which key each route uses.
Concurrent connections with limit-conn
The limit-conn plugin caps how many connections a client or key can hold open at once. It protects slow upstreams from clients that open many long-lived connections, such as streaming or WebSocket traffic. Connection counts are local to each gateway node unless your deployment shares them, so confirm the behavior before you size the limit. Check the option names and the handling of excess connections in the plugin reference.
Weighted routing with traffic-split
The traffic-split plugin sends a percentage of requests to different upstreams, which is the basis for canary releases and A/B tests. Weights are applied per request, so you need a monitoring signal on both versions before you raise the share. Confirm how the plugin matches rules, how it interacts with other plugins on the same route, and how weights are expressed in your version. Plan a rollback path that sets the canary weight back to zero.
Upstreams and health checks
An upstream defines the backend nodes, load balancing algorithm and health checks that decide which nodes receive traffic. Active and passive health checks remove failing nodes from rotation, which affects how a canary or a limit behaves during an outage. Confirm the health check types, thresholds and timeouts for your version, and test node failure in staging. Keep upstreams separate from routes so several routes can share one backend pool.
Attachment points: route, service, consumer and global
A plugin takes effect where you attach it: on a single route, on a service shared by several routes, on a consumer identity, or as a global rule across the gateway. When the same plugin is set in more than one place, the merge and precedence rules decide which settings apply. Map each limit to its attachment point and key in a table, then confirm the precedence behavior in the documentation for your release. Consumer-level limits need authentication first, so check the order of plugins.
How a request passes through limits and a traffic split
A client request enters through a load balancer and reaches one of several APISIX data plane nodes, where the route's limit checks run before any upstream is chosen. Local counters live in each node's memory, while a shared counter store is needed when limits must hold across all nodes. After the checks pass, the traffic-split decision sends the request to the stable or canary upstream. The Admin API on port 9180 sits on a separate control path and is never on the client path, so check that it stays closed to clients.
Request path through limit checks and traffic split, with the separate Admin API control path.
Local or shared counters: which limit design fits your gateway
This table compares the main design choices for APISIX rate limiting and traffic control: where counters live, what key they count on, how over-limit requests are handled, and how traffic is split for canary releases. Read each row against your node count, identity model and tolerance for an extra runtime dependency. The main takeaway is that per-node counters are simple but make the effective limit grow with every gateway node you add.
| Option | When it fits | What it costs operationally |
|---|---|---|
| Local (per node) counters | Few gateway nodes, soft protection goals, or when a limit only needs to stop a single runaway client | Effective limit equals the configured value multiplied by node count, so capacity plans and customer quotas must account for scaling. Each node keeps its own state, which means no shared dependency but less accurate enforcement. |
| Shared counters in an external store | Strict quotas that must hold across all gateway nodes, such as per-consumer plans billed by volume | The store becomes a runtime dependency with its own availability, latency and failover design. Confirm in the plugin documentation how the gateway behaves when the store is unreachable, and plan monitoring for it. |
| Counting key: client IP | Anonymous public endpoints where no credential exists yet | Requests from users behind shared proxies, carrier NAT or corporate egress can share one IP and hit the limit together. Confirm whether trusted forwarding headers are configured correctly before relying on the source address. |
| Counting key: consumer or credential | Authenticated APIs where each client has an identity and a plan | Requires authentication to run before the limit is applied, and consumer definitions must be maintained. Unauthenticated traffic still needs a fallback key or a separate limit. |
| Counting key: request header | Partner or tenant identifiers passed by a trusted upstream system | Any client can set a header unless the gateway or an upstream strips or validates it. Only use headers that a trusted system controls. |
| Reject with error code | Protection against overload or abuse where clients can retry later, typically returning a 429 style response | Clients must handle the rejection and back off. Confirm the status code and response headers the plugin returns, and ensure dashboards count rejections. |
| Queue or delay requests | Smoothing short bursts for latency-tolerant traffic with a clear upper bound on waiting | Holds connections and memory on the gateway, which raises tail latency and can exhaust connections under sustained load. Confirm whether the chosen plugin offers delay behavior at all before designing around it. |
| Weighted traffic split | Canary releases where a fixed percentage of traffic moves to a new upstream and is increased in steps | Simple to reason about, but the split is probabilistic per request, so small samples can look uneven. Pair it with health checks and a documented rollback step. |
| Header or variable-based canary routing | Internal testers, beta customers or specific clients that must always reach the new version | Routing depends on rules that clients or upstreams can influence, so header values must be trusted. Rule sets grow over time and need review during upgrades. |
How to configure limits and canary splits in sequence
This sequence moves APISIX rate limiting and traffic splitting from written objectives to production through tested, versioned steps. Each step ends with a check the team can run, so a limit or canary is only promoted after its behavior has been observed.
Confirm deployment mode and restrict the Admin API
Start by confirming which deployment mode the gateway runs in: traditional, decoupled or standalone. In traditional mode, the Admin API listens on port 9180 alongside client traffic on port 9080, so the platform team must confirm that port 9180 is reachable only from management networks and that default admin keys have been replaced. Check this from a host outside the management network with a simple connection test, which should fail. Record the result before any limit is written, because a rate limit is only meaningful if the team controls who can change it.
Define limit objectives per API and consumer
Write down, for each published API, the traffic the backend can absorb, which consumers are allowed higher volumes, and what the client should receive when it is throttled. Assign owners to each objective, typically the API product owner with input from the team that runs the backend. Include long-lived connections such as WebSocket or streaming endpoints as their own line items, since they are governed differently. The check is a reviewed table that maps each route and consumer group to a limit value and an owner, signed off before configuration begins.
Add one route-level limit in a non-production environment
In a non-production environment, attach a single rate-limiting plugin to one low-risk route, using the limit from the objectives table. Apply the change through the Admin API or the standalone configuration file, not by editing a running node by hand. Then send requests above the limit from a test client and confirm that the gateway returns the rejection status and headers the team specified, while requests below the limit pass unchanged. Do not expand to other routes until this one behaves as written.
Choose local or shared counting and configure it
Decide whether each limit counts requests locally on each gateway node or in a shared store across nodes. Local counters are simpler and avoid a dependency on shared storage, but a consumer's effective limit grows with the number of nodes it reaches. Shared counters enforce one global limit but add a network dependency and a failure mode to plan for. Confirm the counter policy and the shared store option in the rate-limiting plugin documentation for your APISIX version. The check is a load test across at least two gateway nodes that shows whether the observed total matches the policy you chose.
Add connection limits for long-lived traffic
Apply connection-level limits to WebSocket, gRPC streaming or other long-lived routes, where request counts alone do not capture load. Set the concurrent connection ceiling from the objectives table and confirm how the connection limiting plugin reacts when it is reached. Open connections up to the ceiling from a test client, then open one more and check that the new connection is refused while existing connections stay open. Also verify that closing a connection frees capacity for a new one.
Set up a traffic-split canary with a small weight
Create a traffic-split rule that sends a small share of requests on one route to a new upstream, while the rest stay on the current upstream. Use the smallest weight the team can monitor meaningfully, and keep the new upstream's health checks and timeouts identical to the stable upstream so the comparison is fair. Send a controlled batch of test requests and count how many reach each upstream. The check is that the observed split falls within the expected range for the weight you configured, and that a rollback to a 100 percent stable split can be applied and confirmed in the same way.
Wire metrics and logs for rejections and split ratios
Before promoting anything, make rejections and canary ratios visible to the people who will act on them. Enable the observability plugins or log fields your deployment uses to record rate-limit rejections by route and consumer, connection refusals, and the share of requests served by each upstream. Route these to the monitoring stack the operations team already uses and build one dashboard panel for each signal. The check is an alert or dashboard view that changes when the test traffic in the previous steps is sent, confirming the data reaches operators.
Promote the rule set as versioned configuration
Store the tested limits, connection ceilings and traffic-split rules as versioned configuration in the team's repository, with the objectives table linked to each change. Promote the same files through staging to production, changing only environment-specific values such as upstream addresses. Keep the counter policy and canary weights in version control so each change has an author and a review. The check is a production deployment whose applied configuration matches the reviewed file, verified by comparing the running configuration against the repository, followed by one repeated rejection test and one canary rollback test in production.
How the design changes for single node, multi-node and Kubernetes gateways
A single APISIX node keeps its limit counters in its own memory, so every request is counted by the same process. That makes local counters the simplest option and usually the most accurate for a single gateway. The trade-off is that counters live in memory and are lost when the node restarts or is replaced, so a client that was near its limit can receive a fresh allowance after a restart. Teams should decide whether that gap is acceptable for their threat model and whether a restart can be used by an attacker to bypass a limit.
- Counter scope: Every limit applies only to the requests this node sees, which is exact for one node.
- Restart behavior: Counts reset on restart, so limits on sensitive endpoints should be paired with upstream protection.
- Change path: Limit changes go through the Admin API or the configuration store, and the single node applies them directly.
- Growth path: Adding a second node changes the counting model, so the design must be revisited before scaling out.
- Capacity: Confirm how much memory the limit plugin needs for your number of client keys in your APISIX version.
Before go-live, check the plugin documentation for the version you run and test a restart to confirm how the counters behave.
When several gateway nodes serve the same routes, a local counter on each node lets a client receive up to the limit times the number of nodes. Teams must choose between shared counters, where nodes coordinate through a common store such as Redis, and a per-node share of the limit, where each node enforces a fraction of the total. In traditional or decoupled mode, etcd holds the route and plugin configuration, so a change made once reaches all nodes. Counter state is a separate question from configuration state and is not solved by etcd alone.
- Shared counters: Accuracy improves, but the shared store adds latency, a dependency and its own availability design.
- Per-node share: Simple and resilient to store failure, but uneven traffic across nodes can cause early throttling or missed limits.
- Configuration propagation: Changes stored in etcd reach all nodes, so confirm the etcd cluster is healthy before relying on a change.
- Control plane outage: In decoupled mode, confirm how the data plane behaves when the control plane is unavailable.
- Load balancer behavior: Uneven distribution across nodes changes the effective limit for each client.
First check which counter strategy the limit plugin you chose supports, then test a client spread across all nodes to confirm the effective limit.
In standalone mode there is no etcd, and APISIX reads its configuration from conf/apisix.yaml or conf/apisix.json. The file is checked for changes every second and reloaded without a restart. This makes limit changes easy to version in the same repository as the rest of the gateway configuration and easy to review in a pull request. The trade-off is that each node reads its own copy of the file, so every node must receive the same version or limits will differ between nodes.
- Versioned limits: Rate limit values live in the same file history, so every change has an author and a diff.
- Hot reload: Changes apply within about a second of the file changing, without a restart, once the file is valid.
- File distribution: Use a deployment process that writes the same file to every node and confirms the version in use.
- Counter model: Counters remain per node, so the shared-counter question from multi-node deployments still applies.
- Invalid files: Confirm how a malformed file is handled and set up validation in the pipeline before deployment.
Before relying on this model, test that an edited file reaches every node and that a deliberately invalid change is rejected before it reaches production.
With the APISIX Ingress Controller, rate limits are declared through Kubernetes resources rather than edited directly in the gateway. This fits teams that manage routes as code and want the same review and rollout tooling used for other workloads. The team must confirm how each setting in the Kubernetes resource maps to the underlying gateway plugin, because the mapping can differ from the names used in the APISIX documentation. Counter behavior across the gateway pods still depends on the strategy chosen for multi-node operation.
- Resource mapping: Confirm which Kubernetes fields map to which plugin settings in the controller version you run.
- Pod scaling: Each gateway pod may hold its own counters, so scaling changes the effective limit unless a shared store is used.
- Rollout: Limit changes follow the normal deployment pipeline, which affects how quickly they reach all pods.
- Coexistence: If an existing ingress already enforces limits, decide which layer is authoritative to avoid double counting.
- Version alignment: Match the controller release to the gateway release it supports.
Before production use, apply a test limit in a non-production cluster, inspect the generated gateway configuration, and send traffic from several clients to confirm the effective limit.
What drives the effort and cost of rate limiting work
This table lists the factors that change how much work rate limiting and traffic control take on an APISIX rollout, with a note on why each matters and how to keep it down. Read it as a checklist to scope with your team or a partner, since most cost comes from the number of limits, shared counters and load testing rather than from the plugins themselves.
| Effort driver | Why it matters | How to keep it down |
|---|---|---|
| Routes and consumers that need distinct limits | Each route, consumer or key that gets its own limit adds configuration, review and test cases. Limits multiply quickly when every API team asks for its own policy. | Start with a small set of shared limit tiers and attach them to consumer groups. Add per-route limits only where a documented need exists. |
| Gateway nodes and whether counters must be shared | Local counters are simple but each node enforces its own count, so the effective limit grows with node count. Shared counters across nodes need an external store and more testing. | Confirm with the business owner whether a per-node limit is acceptable. Use shared counters only for limits where a global cap is a real requirement. |
| External counter store and its high availability design | A shared store becomes a dependency on the request path. Its outage, latency or failover behavior decides whether the gateway fails open or closed. | Decide the failure behavior in writing before build. Reuse the store your team already runs and operates, and confirm its supported setup with the vendor documentation. |
| Long-lived connection traffic that needs connection limits | WebSocket, gRPC streams and other persistent connections behave differently from short requests. Connection limits can block legitimate clients if set from request-rate assumptions. | Measure connection duration and concurrency from current traffic. Test connection limits with realistic long-lived clients before setting values. |
| Canary releases and traffic splitting per quarter | Each canary needs a weight plan, a rollback condition and dashboards. Frequent releases multiply the monitoring and review effort. | Standardize a canary template with entry and rollback criteria. Automate weight changes through the same configuration path used for other changes. |
| Environments and promotion of limit configuration | Limits differ between development, test and production. Manual edits across environments create drift and unexpected throttling in production. | Keep limit definitions in version-controlled configuration and promote them through the same pipeline as routes. Confirm how the chosen deployment mode loads configuration in each environment. |
| Load testing to find real limits | Limits set from guesses either throttle legitimate traffic or fail to protect backends. Testing across nodes and the counter store takes environment time and skilled staff. | Test against a production-like environment with representative traffic profiles. Reuse test scripts for each limit change and record the results with the configuration. |
Securing limits, counters and traffic rules
Rate limits and traffic splits only protect you if the people who can change them, the counters they rely on and the identities they count are all controlled. The cards below cover the decisions and checks that connect the Admin API, counter credentials, client identity, canary routing, change history and failure behavior.
Restrict Admin API access
Limit and split rules are set through the Admin API, which in traditional mode listens on port 9180, separate from client traffic on port 9080. Confirm that port 9180 is reachable only from management networks and that only named administrators or automation accounts can call it. Replace the default Admin API key before go-live, since a changed limit or split rule is a change to production traffic. Check that a route can be altered only through the same approval path used for other gateway changes.
Deployment modes docsProtect shared counter credentials
When several gateway nodes share a counter store, the credentials for that store become part of the rate limiting control. Keep them in a secrets manager or the platform's secret mechanism, not in config.yaml or route definitions committed to version control. Use a dedicated account with the minimum rights the counter store needs, and rotate the credential on a schedule your security owner approves. Ask the team to scan the repository for accidental credential commits before each release.
Decide which client identity counts
A rate limit keyed on client IP is only as accurate as the IP the gateway sees. Behind a load balancer or CDN, the connecting address is the proxy, so every client may share one counter. Decide which forwarded header is trusted, such as X-Forwarded-For, and configure the gateway to accept it only from known proxy addresses. Where authentication is in place, count per consumer or API key instead. Test the chosen key with requests from two different clients and confirm they are counted separately.
Keep canary upstreams in scope
A canary or split rule sends a share of requests to a new upstream, and that upstream may run code paths or expose paths the stable version does not. Restrict the canary route by host, path and method so admin paths and internal endpoints are never matched by the split. Confirm that the canary upstream uses the same authentication plugins as the stable route, and that its health checks do not treat a failing canary as a reason to fail over to a path that bypasses controls. Review the match rules before each traffic change.
Audit every limit and split change
A change to a request limit, connection cap or traffic weight alters who can reach a service and how much load it takes. Record who made each change, when, and what the previous and new values were. Ship Admin API and gateway logs to a store that the gateway administrators cannot edit, and set alerts for changes made outside the approved window. Ask the auditor or security owner which change events they need to see, and confirm that the logs keep them for the period the compliance team requires.
Agree the counter outage policy
When a shared counter store becomes unreachable, the gateway must choose between blocking all traffic and allowing it without limits. Neither choice is neutral. Write down the behavior for each route class, for example stricter handling for authentication endpoints and more permissive handling for read-only public content, and get the security owner to sign it off before go-live. Test the outage by stopping the counter store in a staging environment and confirming the gateway behaves as the written policy states.
How to test that limits hold and fail safely
Test each limit against the decision you made, not against a generic load tool setting. Send traffic above the configured threshold from a single client and confirm the accepted count matches the window and the local or shared counter choice. Then repeat from several clients that enter through different gateway nodes. If you chose local counters, expect each node to enforce its own budget, so the combined total can exceed the nominal limit by roughly the number of nodes; if you chose a shared counter, the total should stay close to the limit. Either result is acceptable only if it matches what the design document says. Confirm that rejected requests return the status code you configured, and inspect the response body and headers to check that they expose no upstream addresses, plugin names, stack traces or counter store details.
Test the failure paths on purpose. Restart one gateway node under load and watch whether its counters reset and whether traffic shifts cleanly to the remaining nodes. Then make the shared counter store unreachable, or block the path from the gateway to it, and observe whether requests are allowed or rejected. The observed behavior must match your agreed failure policy, and the policy must be written down before the test starts. For connection limits, open long-lived WebSocket or streaming connections above the limit and confirm that new connections are refused while existing ones behave as documented. Check the rules in the Admin API or your configuration source to confirm the active settings match what you intended.
For canary releases, set a known split, for example a weight you chose in advance, send a large enough sample of requests, and compare the observed ratio to the configured ratio. Sampling noise is normal at small volumes, so decide in advance how many requests and what tolerance your team will accept. Finally, roll back to the previous rule set and confirm that every node serves the old behavior, not a mix. Check this on each node directly, because a node that missed the update will keep enforcing the newer rules. Acceptance thresholds, sample sizes and recovery times should come from your own service requirements and availability targets, not from this page.
What to monitor, version and document after go-live
A rate limit or traffic split that was correct at go-live drifts as traffic, consumers and gateway releases change. The cards below cover what to watch, what to keep under version control, what to test before upgrading and what to write down so the on-call team can act without guessing.
Monitor rejection rates per route and consumer
Track how often each limit rejects requests, broken down by route and by consumer or counting key. A rejection rate that jumps for one consumer usually means a client retry loop, a new integration or a limit set below real demand, while a flat rate across all routes can point to a shared counter problem. Alert on sudden changes against a baseline, not only on fixed thresholds, and confirm that your metrics pipeline exposes the rejection status code and the matched route.
Watch canary split ratios and errors
During a canary release, confirm that the share of traffic reaching the canary upstream matches the configured weights, and compare its error rate and latency with the stable upstream. A split that drifts from its configured weight often means a retry or a failover path is sending requests elsewhere. Keep the canary alert tied to the same time window used for the rollout decision, so the team does not promote a release on partial data.
Version-control limit and split configuration
Store the route, plugin and upstream definitions that hold limits and weights in a Git repository, and back up the etcd cluster in deployed traditional or decoupled mode. In standalone mode, the YAML or JSON file under conf is the source of truth, so review changes to it the same way you review code. Restore tests should confirm that a restored environment enforces the same limits as production before any traffic is routed to it.
Deployment modes docsTest limits on each release line
Plugin options and defaults can change between APISIX releases, so a limit that enforced correctly on one version may behave differently on the next. Before moving to a new release line, replay representative traffic against a staging gateway, check that counting keys, window sizes and rejection codes match the documented behavior, and confirm that the Ingress Controller version is compatible with the gateway. Keep a regression test set that covers each limit and split.
APISIX downloads pageDocument the counting runbook
Write a runbook that states the counting policy (local or shared), the counting key, the window and the behavior when the shared store is unreachable. On-call engineers need to know whether the gateway fails open or fails closed, which consumers are affected, and how to change a limit without a full redeploy. Keep the runbook next to the configuration repository and review it after every change to the counting design.
Review limits on a traffic schedule
Set a recurring review of every limit and split, tied to events that change traffic such as a new client onboarding, a marketing campaign, a partner integration or a major release of a backend service. Compare observed peak traffic with the configured thresholds and retire limits for consumers that no longer exist. If your team lacks capacity for this cycle, a DeployOpen support retainer can cover upgrades and continuous testing of these controls, with scope agreed in writing.
Questions teams ask before configuring APISIX traffic control
Can our own team configure rate limits in APISIX without outside help?
Yes, if your engineers already run APIs and can read the APISIX plugin documentation. Rate limiting, traffic splitting and canary rules are set through routes and plugin configuration, so the work is mostly about deciding the limits and testing them. The effort rises when limits must match contracts with several API consumers, when you need to change them across many routes, or when no one on the team has operated the gateway before. A partner usually adds value by writing the limit design, testing it under load and documenting the runbook. Ask any partner to list which of these tasks it will perform and which your team keeps.
What must our team provide before traffic control work starts?
Plan to provide three things: a route inventory, recent traffic data, and a named owner for each API. The route inventory lists paths, methods, upstream services and the authentication each route uses. Traffic data shows peak request rates, typical concurrency and which consumers call which routes, so limits reflect real use instead of guesses. Owners decide what a limit should be, how a 429 response should be handled by clients and when a limit may change. Without owners, limits tend to be set once and never revisited. Confirm these inputs in the written scope so the quote reflects the actual work.
How does effort change when counters are shared across multiple gateway nodes?
Effort grows because a shared counter introduces a dependency and a design decision. With local counters, each gateway node counts requests on its own, which is simple but means a client spreading requests across nodes can exceed the intended total. Shared counters give one total across nodes, but they require a backing store and extra testing of its latency and failure behavior. Drivers include the number of nodes, whether limits are per consumer or per route, how strict the total must be, and what the team wants to happen if the shared store is unavailable. Review the plugin documentation for the counter options available in your APISIX version, and confirm the store you plan to use is supported before committing to a design.
Do APISIX rate limits replace protections already set on our upstream services?
No. APISIX limits are an additional layer at the gateway, and they do not remove the need for limits, timeouts and connection controls inside the upstream service. The gateway sees traffic arriving at its entry point, while an upstream may receive traffic from other paths, internal callers or retries. Keep upstream protections in place, and use gateway limits to shape traffic for external consumers. When both layers exist, check that their limits agree, because a gateway limit set higher than an upstream capacity will still overload the service. Document which layer owns each limit so incident responders know where to adjust.
How do canary releases differ from blue-green deployments in APISIX?
A canary release sends a small, adjustable share of traffic to a new version while the rest stays on the current one, and you increase that share as evidence builds. A blue-green deployment switches all traffic from one complete environment to another at a single point. In APISIX, canary behavior is usually configured by splitting traffic between upstreams or by matching request attributes such as headers, while blue-green is a cutover of the route target. Canary needs good metrics for both versions and a clear rollback rule, because mixed traffic can hide faults. Blue-green needs a second full environment ready before the switch. Choose the pattern based on your release process, and confirm how the plugin you use handles weights and matching rules in the version you run.
What happens to request counts when a gateway node restarts?
It depends on where the counters live. With local counters held in node memory, a restart clears that node's counts, so a client may get a fresh allowance on that node. With a shared store, counts persist outside the node, so a restart usually does not reset the total, though the store's own persistence settings determine how much survives its failures. Engineers should test this directly: restart a node during a load test, observe the counts and confirm the behavior matches the intended limit. Also decide whether a fresh allowance after restart is acceptable for your risk profile. Document the result, because auditors and incident teams will ask how limits behave during failures.
Can we change rate limits without restarting the gateway?
In most deployments, yes. APISIX is built on NGINX and etcd with dynamic routing and hot-loading of configuration, and the Admin API on port 9180 is used to update routes and plugins in traditional mode. In file-driven standalone mode, APISIX checks the apisix.yaml or apisix.json file every second and hot-reloads without restarting. Confirm the exact behavior for your chosen deployment mode and plugin version, because some changes need more care in production. Plan change control for limit updates just as you would for code, with review, staged rollout and a recorded rollback value. Restrict who can write to the Admin API, since a changed limit affects every consumer on that route.
What should a fixed-scope quote for traffic control work list?
A fixed-scope quote should list the routes and consumers in scope, the limit types to configure (request, count or connection limits), the traffic splitting or canary patterns, and the counter design, whether local or shared. It should name the deployment mode and the APISIX version, the test plan including load and failure tests, the documentation delivered and the handover sessions. It should also state what the team must provide, such as the route inventory, traffic data and owner sign-off, and what happens if those inputs are late. Ask which items are one-time and which recur, for example monitoring reviews or limit tuning after go-live. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and a quote follows from that written scope.
How DeployOpen scopes, builds and hands over APISIX traffic control
DeployOpen treats Apache APISIX rate limiting and traffic control as a scoped piece of gateway work, agreed in writing before any configuration changes. We build the limits, splits and release rules inside your own infrastructure, test them against real traffic patterns, and document them so your platform team can run them after handover.
How we scope
- Inventory which routes, consumers and upstreams need request, count or connection limits, and which need protection from bursts.
- Confirm the deployment mode and whether gateway nodes share one etcd cluster, since that decides how counters are kept.
- Agree in writing which canary releases and traffic splits are in scope, along with the rollback conditions for each.
How we build
- Configure rate limiting plugins and connection limits on the agreed routes, starting with a documented baseline for each.
- Set up weighted upstreams for canary releases and traffic splitting, with health checks on every target.
- Test limits under load and failure, including a node restart, and record the observed behavior for your team to review.
How we hand over
- Deliver configuration as version-controlled files with a written description of each limit, its key and its intended purpose.
- Document how to change a limit, move a canary weight and roll back a split without restarting gateway nodes.
- Walk your operations team through dashboards and logs so they can see throttled requests and split distribution.
How we support
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
- Retest limits and splits after APISIX upgrades or plugin changes, since counter behavior can shift between releases.
- Ask any partner for a quote that lists configuration, testing, documentation and handover as separate line items.

