Join our Newsletter — 33% off our NHI Course
Home› FAQ› Architecture & Implementation› When should organisations prioritise performance tuning over adding…
Architecture & Implementation

When should organisations prioritise performance tuning over adding more gateway capacity?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 24, 2026 Domain: Architecture & Implementation

Organisations should prioritise performance tuning when added capacity no longer produces proportional throughput gains or when latency and cost begin to rise faster than traffic. A well-tuned gateway can absorb more demand per instance, reduce infrastructure spend, and preserve headroom for control plane and upstream services. The right choice depends on workload shape, plugin overhead, and the cost of scaling horizontally.

Gateway capacity helps when traffic growth is the main problem; performance tuning is the better investment when bottlenecks are inside the gateway path itself. In practice, that means reducing per-request overhead, removing inefficient plugins, and improving concurrency so each instance can do more useful work before you add nodes.

When Capacity Stops Buying You Meaningful Throughput

The first sign to tune instead of scale is a flat efficiency curve: you add instances, but throughput rises only marginally while latency, CPU time, memory pressure, or cost keep climbing. That usually means the gateway is spending too much work per request, or one component in the request chain is limiting the whole path.

Tuning is especially valuable when the gateway sits in front of stable upstream services and the load pattern is predictable. In that setting, the right goal is not just more raw capacity, but better throughput per instance, lower tail latency, and less headroom waste during normal operation.

Common tuning targets include plugin ordering, request inspection depth, auth and policy overhead, connection pooling, TLS handling, cache behaviour, and log volume. If any of those are doing work that does not materially improve control or routing outcomes, they become the first candidates for simplification.

How to Judge Whether the Bottleneck Is Software or Scale

The useful decision point is whether the gateway is constrained by architecture or by volume. If CPU, queue time, worker saturation, or serialization overhead dominate before downstream services are stressed, tuning usually delivers more value than another horizontal increment. If the gateway is already efficient and demand is still outgrowing it, capacity is the right lever.

Look for operational signals that separate the two cases. If a load increase produces disproportionate latency growth, a small number of expensive plugins or filters may be amplifying every request. If capacity additions keep restoring headroom with clean linear gains, the system is likely behaving as designed and needs scaling rather than redesign.

The most reliable test is to measure per-instance efficiency under representative traffic, not peak-only conditions. A tuned gateway should sustain more requests, more consistently, without requiring the organisation to pay for idle excess capacity just to cover inefficient request handling.

Why Tuning Often Wins in Cost, Resilience, and Control

Performance tuning reduces the amount of infrastructure required to serve the same workload, which lowers spend and can also improve resilience. Fewer instances often means fewer moving parts to operate, patch, observe, and drain during failures, as long as the remaining deployment still has enough headroom for spikes and maintenance events.

Tuning also protects control plane and upstream capacity. When the gateway is inefficient, it can consume enough shared resources to create secondary pressure on authentication, logging, routing, or backend services. Better tuning preserves margin for the rest of the stack instead of turning the gateway into the bottleneck that forces every other team to compensate.

That said, tuning is not a substitute for a proper scale strategy. If the organisation expects durable traffic growth, the gateway should still be designed to scale horizontally. Tuning simply delays unnecessary expansion and helps ensure that new capacity is added for real demand, not to mask inefficiency.

Risk and Threat Considerations

Poorly tuned gateways create avoidable exposure because every request pays the cost of inefficient processing. That can turn ordinary growth into latency spikes, resource exhaustion, or instability, especially when expensive plugins, deep inspection, or excessive logging amplify the workload.

Failure mechanism: The gateway reaches saturation because per-request overhead grows faster than traffic efficiency, so added instances stop producing proportional throughput and the platform absorbs load through delay rather than useful work.

Impact: Organisations see higher response times, greater infrastructure cost, and reduced recovery margin during traffic surges or incidents, while upstream systems may inherit the congestion created at the edge.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST CSF 2.0 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-12 — Network Infrastructure ManagementGateway tuning affects network service efficiency and capacity management.
Recommendation — Tune gateway components and capacity thresholds to maintain efficient, reliable network service delivery.
NIST CSF 2.0PR.PS-04 — Platform and Infrastructure ManagementGateway performance depends on maintaining efficient platform behaviour under load.
Recommendation — Measure platform efficiency and adjust gateway configuration before scaling out.
ISO/IEC 27001:2022A.8.9 — Configuration managementGateway tuning often requires controlled configuration changes to improve performance safely.
Recommendation — Review and manage gateway configuration changes to improve performance without introducing instability.

Practitioner Guidance

What to verify: Compare throughput per instance, p95 or p99 latency, and resource utilisation before and after each capacity increase. If each new instance buys less headroom than the last, treat that as a tuning problem rather than a scaling problem.

Decision rule: If the gateway is still improving materially as you add capacity, scaling may be justified. If gains flatten while cost or latency keeps rising, prioritise plugin review, request-path simplification, and concurrency tuning before expanding the fleet.

Practitioner takeaway: The right optimisation is the one that improves sustainable throughput, not just peak headcount of instances. Scale when demand is the constraint, tune when inefficiency is the constraint.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 24, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org