NServicebus - One endpoint multiple handlers threading

后端 未结 2 1041
后悔当初
后悔当初 2021-01-23 02:45

I have two endpoints.

Endpoint 1:

  • HandlerForMessage X
  • HandlerForMessage Y
  • HandlerForMessage Z

Web endpoint: - No handler

2条回答
  •  一整个雨季
    2021-01-23 03:48

    Unless it has changed since I started using NServiceBus, the "unlicenced" version only runs 1 worker thread so it only processes 1 message at a time.

    You can alter this in the config by altering the NumberOfWorkerThreads value on the transport, however you need a valid licence in order to increase the number above 1.

    
    

    In NServiceBus v4, you need to configure the MaximumConcurrencyLevel value on the TransportConfig:

    
    

    see Failure handling & throttling

提交回复
热议问题