nats.net icon indicating copy to clipboard operation
nats.net copied to clipboard

Update the default SubscriberDeliveryTaskCount

Open ColinSullivan1 opened this issue 3 years ago • 0 comments

The SubscriberDeliveryTaskCount default should be set to something sane like 3. Currently it is zero which is too strongly biased toward high throughput with a low number of subscriptions and does not support many subscriptions in one application as one thread to be created per subscription.

This issue has come up a number of times - we should default to scalability over throughput, supporting many subscriptions. It is more common to need many thousands of subscriptions versus millions of messages per second.

Some testing would be appreciated to find a default that would support 1000 subscriptions at 100 msgs/sec on common hardware, like a laptop. It is set here.

See: https://github.com/nats-io/nats.net/issues/449#issuecomment-825454061

ColinSullivan1 avatar Apr 23 '21 13:04 ColinSullivan1