How to Reduce Throughput of an Endpoint?

There are two ways to decrease receiving throughput of an endpoint.

Edit the TransportConfig section in the endpoint config file:

<configSections>
    <section name="TransportConfig" type="NServiceBus.Config.TransportConfig, NServiceBus.Core"/>
</configSections>

<TransportConfig MaximumConcurrencyLevel="5" MaxRetries="2" MaximumMessageThroughputPerSecond="10"/>

In V4 you can also use the API:​

public class ChangeThroughtput : IWantToRunWhenConfigurationIsComplete
{
    public UnicastBus Bus { get; set; }

    public void Run()
    {
            Bus.Transport.ChangeMaximumThroughputPerSecond(10);
    }
}


Last modified 2014-09-30 15:53:45Z