Developer Tools · Networking & Systems Performance
API & Database Connection Pool Sizing (Little’s Law L = λW & PostgreSQL Core Formula) Calculator: inputs, method, and how to read the result
Size database and HTTP connection pools using Little’s Law concurrency and PostgreSQL core guidelines.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Peak Requests Per Second Rps: Peak incoming API or query rate in requests per second (RPS).
- Average Query Or Api Latency Ms: Average response time or SQL query execution time in milliseconds.
- Database Server Cpu Cores: Number of vCPU cores on the primary database server.
- Application Pod Replicas: Number of application server instances sharing the database.
What the calculation includes
With the default values shown, Average Concurrent Active Requests (Little’s Law) is 42 concurrent. The calculation follows DB & API Connection Pool Size Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Peak Requests Per Second Rps from 1,200 req/sec to 1,320 req/sec changes Average Concurrent Active Requests (Little’s Law) from 42 concurrent to 46.2 concurrent. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses official NIST Special Publication 811, IEEE/RFC systems engineering, APA psychometric, and USNO astronomical formulas.
- Empirical metallurgy and calendar conversions represent standard reference-condition approximations.
Scope: Global NIST, IEEE, APA & Astronomical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Developer Tools: Unit Conversion Calculator, Scientific Calculator, Date Difference & Business Days Calculator.