After experimenting with connection pool behavior, I wanted to test another assumption that looks harmless on dashboards.
If two workloads have the same average request rate, are they really equivalent from the database point of view?
At first, it seems reasonable.
If one service receives 1,000 requests per second on average and another also receives 1,000 requests per second, both appear to place roughly the same load on PostgreSQL.
But averages remove timing.
And timing is exactly where queues appear.
So I built a controlled queueing simulation of a Go service talking to PostgreSQL through a connection pool.
This was not a benchmark of PostgreSQL itself. I deliberately kept the model simple because I wanted to isolate one variable: the arrival pattern.
The total amount of traffic stayed the same.
Only the timing changed.
One workload was smooth.
The other arrived in bursts.
The average RPS was identical.
The model behaved very differently.