ConcurrentConsumers Property
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimpleMessageListenerContainer.ConcurrentConsumers Property

Specify the number of concurrent consumers to create. Default is 1.

[Visual Basic]
Public WriteOnly Property ConcurrentConsumers() As Integer
   Public Set
   End Set
End Property
public int ConcurrentConsumers { public set; }

Property Value

The concurrent consumers.


Raising the number of concurrent consumers is recommendable in order to scale the consumption of messages coming in from a queue. However, note that any ordering guarantees are lost once multiple consumers are registered. In general, stick with 1 consumer for low-volume queues.

Do not raise the number of concurrent consumers for a topic. This would lead to concurrent consumption of the same message, which is hardly ever desirable.

See Also

SimpleMessageListenerContainer Class | Spring.Messaging.Ems.Listener Namespace