# queueing theory

Published articles for queueing theory.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Connection pool sizing is a queueing theory problem, not a tuning knob

DevFeed: [Connection pool sizing is a queueing theory problem, not a tuning knob](<https://devfeed.tech/articles/connection-pool-sizing-is-a-queueing-theory-problem-not-a-tuning-knob-39593.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/41-connection-pool-sizing-queueing-theory/>)

Author: hello@ankit-rana.com

Published: 2026-08-22T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [connection pool](<https://devfeed.tech/topics/connection-pool.md>), [queueing theory](<https://devfeed.tech/topics/queueing-theory.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Database](<https://devfeed.tech/topics/database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [capacity-planning](<https://devfeed.tech/tags/capacity-planning.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [connection-pool](<https://devfeed.tech/tags/connection-pool.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [database](<https://devfeed.tech/tags/database.md>), [database-performance](<https://devfeed.tech/tags/database-performance.md>), [hikaricp](<https://devfeed.tech/tags/hikaricp.md>), [inference](<https://devfeed.tech/tags/inference.md>), [latency](<https://devfeed.tech/tags/latency.md>), [network](<https://devfeed.tech/tags/network.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [query](<https://devfeed.tech/tags/query.md>), [queueing-theory](<https://devfeed.tech/tags/queueing-theory.md>)

### AI overview

This article explains how to size a connection pool using Little's law: concurrency equals throughput multiplied by connection holding time. It argues that increasing the pool beyond the database's parallel execution capacity can move the queue, increase latency, and leave throughput flat. It also identifies excessive holding time from network round trips, N+1 queries, long transactions, and model inference calls as common causes of pool exhaustion.

### Source excerpt

Pool size follows from Little's law: concurrency equals throughput multiplied by holding time, so 500 requests per second each holding a connection for 20ms needs ten connections rather than a round number someone picked. Past the point where the database can execute requests in parallel, adding connections moves the queue rather than removing it, and latency grows while throughput stays flat. The number that actually reaches the database is the pool size multiplied by the instance count, which is usually the number nobody has calculated.

## Managing an Engineer's Week as a Queueing System

DevFeed: [Managing an Engineer's Week as a Queueing System](<https://devfeed.tech/articles/your-week-is-a-queueing-system-and-you-are-running-it-at-100-utilization-39553.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/01-time-management-software-engineering/>)

Author: hello@ankit-rana.com

Published: 2026-03-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [queueing theory](<https://devfeed.tech/topics/queueing-theory.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [email](<https://devfeed.tech/tags/email.md>), [focus](<https://devfeed.tech/tags/focus.md>), [minutes](<https://devfeed.tech/tags/minutes.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [queueing-theory](<https://devfeed.tech/tags/queueing-theory.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>), [servers](<https://devfeed.tech/tags/servers.md>), [slack](<https://devfeed.tech/tags/slack.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [system](<https://devfeed.tech/tags/system.md>), [time-management](<https://devfeed.tech/tags/time-management.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

The article argues that software engineers' schedules behave like queueing systems: near-total utilization increases waiting time, while interruptions evict working context. It recommends maintaining schedule headroom, batching communications, and limiting work in progress.

### Source excerpt

An engineer's week behaves like a queueing system: book yourself at 100% utilization and the wait time for anything new goes vertical, exactly as it does for a server. The fixes are the ones we already use in systems: keep headroom, coalesce interrupts instead of taking them one by one, cap work in progress because Little's law applies to you, and stop letting urgent-but-small tasks hold the lock while important work starves.