Concurrency handling

Component: SQL Server Transport | Nuget: NServiceBus.SqlServer (Version: 1.x)
Target NServiceBus Version: 4.x
Standard support for version 4.x of NServiceBus has expired. For more information see our Support Policy.

Each endpoint running SQL Server transport spins up a fixed number of threads (controlled by MaximumConcurrencyLevel property of TransportConfig section) for each input queue. Each thread runs in a loop, polling the database for messages awaiting processing.

By default, there are 4 input queues created for every endpoint (apart from the main one, there are two for handling timeouts and one for the retries). As a consequence, if MaximumConcurrencyLevel is set to 10, there are 40 threads running and constantly polling the database.


Last modified