The SQL Server transport uses database tables as conceptual queues to read messages from. Current implementation uses a pull mechanism to 'Peek' if there are any messages waiting to get processed. Depending on the system, the amount of messages and the load, the peek interval delay time may be tweaked.
The default peek interval delay is 1 second. The recommended range for this setting is between 100 milliseconds to 10 seconds. If a value higher than the maximum recommended settings is used, a warning message will be logged. While a value less than 100 milliseconds will put too much unnecessary stress on the database, a value of larger than 10 seconds should also be use with caution as it may result in messages backing up in the queue.
Use the following code:
var transport = endpointConfiguration.UseTransport<SqlServerTransport>(); transport.WithPeekDelay(TimeSpan.FromSeconds(5));