You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed the consumer throughput is very low and trying to optimize it. As part of this I changed the DefaultConsumerThreadCount from 4 to 8. But that didn't make any difference to the consumer throughput.
Can you please let us know what is the intention of 'DefaultConsumerThreadCount'? Is there any other setting I can change to increate the consumer throughput?
Thanks In advance,
Jojo Peter
The text was updated successfully, but these errors were encountered:
We don't have a Kafka message bus implementation that we ship with. What NuGet package are you using? We also try not to do any GetAwaiter().GetResults() in an async code path.
No problem, I'm going to close this as we don't own that code. I'd recommend posting on their project repository. If you have any feedback on the core libraries we would love to hear it.
Hi,
This is a query on Consumer throughput of Kafka when I use Foundatio my application.
We subscribe to the messages in following manner.
namespace : Foundatio.Messaging
class : static class MessageBusExtensions
Method:
public static Task SubscribeAsync(this IMessageSubscriber subscriber, Func<T, Task> handler, CancellationToken cancellationToken = default) where T : class {
return subscriber.SubscribeAsync((msg, token) => handler(msg), cancellationToken);
}
We are using above method and the implementation is as follows
We noticed the consumer throughput is very low and trying to optimize it. As part of this I changed the DefaultConsumerThreadCount from 4 to 8. But that didn't make any difference to the consumer throughput.
Can you please let us know what is the intention of 'DefaultConsumerThreadCount'? Is there any other setting I can change to increate the consumer throughput?
Thanks In advance,
Jojo Peter
The text was updated successfully, but these errors were encountered: