Backend Development 7 min read

Short-Connection Server Pressure Testing Methodology and Transaction Rate Evaluation

This article explains how to assess the maximum concurrent user capacity of short‑connection server implementations by using the HTTP Transaction Rate metric, contrasting it with long‑connection testing, and provides practical calculation examples and terminology definitions.

360 Quality & Efficiency
360 Quality & Efficiency
360 Quality & Efficiency
Short-Connection Server Pressure Testing Methodology and Transaction Rate Evaluation

With evolving business scenarios, server performance has become increasingly critical, prompting continuous optimization of backend implementations. While long‑connection pressure testing is well known, this article introduces a short‑connection pressure testing approach suitable for servers where each client request opens and closes a TCP connection immediately after the transaction.

In long‑connection testing, a single TCP connection handles multiple transactions, and the maximum concurrent users are measured by the number of simultaneous TCP connections (Concurrent TCP Connection Capacity). This method also applies to gateway devices such as firewalls.

Short‑connection testing, however, treats each client request as an independent transaction with the connection closed (HTTP header Connection: close ). To evaluate the maximum concurrent users for such servers, the article recommends using the Transaction Rate metric defined in RFC 3511 (Maximum HTTP Transaction Rate).

The business scenario illustrated shows clients repeatedly opening TCP connections (open), sending HTTP GET/POST requests (blue arrows), receiving responses (purple arrows), and then closing the connections (red arrows). The maximum concurrent user count is derived from the highest achievable Transaction Rate combined with the actual business workload.

For a target of 10 k concurrent users, the article outlines two phases:

Client onboarding phase: 5 initialization interfaces, each generating 1 transaction per second, leading to a Transaction Rate of 5 /s. The required Transaction Rate is calculated as 5 × 10 000 / expected onboarding time.

Steady‑state phase: 5 business interfaces each invoked every 10 seconds, yielding a required Transaction Rate of (5 × 10 000) / 10 = 5 000 /s.

Figures (included as images) demonstrate the calculation results for different onboarding time windows, showing that achieving simultaneous onboarding of all clients would demand at least 50 000 transactions per second.

The conclusion emphasizes that short‑connection servers should be evaluated using Transaction Rate rather than traditional concurrent connection metrics, providing a clear and accurate view of performance requirements.

Glossary:

Transaction – a single HTTP request/response pair.

Long connection (persistent connection) – one TCP connection handling multiple transactions.

HTTP Transaction Rate – the maximum number of transactions per second a device under test can sustain, as defined in RFC 3511.

Reference: http://www.faqs.org/rfcs/rfc3511.html

backendPerformance Testingload testingshort connectiontransaction rate
360 Quality & Efficiency
Written by

360 Quality & Efficiency

360 Quality & Efficiency focuses on seamlessly integrating quality and efficiency in R&D, sharing 360’s internal best practices with industry peers to foster collaboration among Chinese enterprises and drive greater efficiency value.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.