Hello everyone! I have a question regarding the number of threads being created. As far as I know, librdkafka creates the following number of threads:
Total number of threads = 2 + Number of brokers.
However, when using the library in .NET, approximately 10-15 threads are consumed when creating and connecting a consumer, with the number of brokers being 3. What could be the reason for this? Are these some overheads of the .NET library? Is it possible to reduce their number in any way?
How to reproduce
Сreating a single consumer
Checklist
Please provide the following information:
[ ] A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
[ 2.4.0] Confluent.Kafka nuget version.
[ ] Apache Kafka version.
[default] Client configuration.
[ macos/linux] Operating system.
[ ] Provide logs (with "debug" : "..." as necessary in configuration).
Description
Hello everyone! I have a question regarding the number of threads being created. As far as I know, librdkafka creates the following number of threads: Total number of threads = 2 + Number of brokers. However, when using the library in .NET, approximately 10-15 threads are consumed when creating and connecting a consumer, with the number of brokers being 3. What could be the reason for this? Are these some overheads of the .NET library? Is it possible to reduce their number in any way?
How to reproduce
Сreating a single consumer
Checklist
Please provide the following information: