spring-cloud-stream-binder-kafka

num.stream.threads creating idle threads

孤街浪徒 提交于 2020-03-23 23:17:49
问题 I have a spring boot kafka stream application with 2 topics consider topics A and B.Topic A has 16 partition and Topic B has 1 partition.Consider the application is deployed in 1 instance having num.stream.threads =16. I ran kafka-consumer-groups.bat command to check how the threads are assigned to the partition in group,got the following output.Topic A and B assigned with 16 threads where 14 threads in topic B is idle. kafka-consumer-groups.bat --bootstrap-server 0.0.0.0:9092 --group <topic

There are producer issues with spring cloud stream 3.0

情到浓时终转凉″ 提交于 2019-12-11 14:59:29
问题 I read about the spring cloud stream 3.0 documents, to understand the new using java.util.function.[Supplier/Function/Consumer] to represent the producers, the consumption and production, consumers, and this should be correct. But I don't understand Supplier. The documentation states that polling for suppliers is used to consistently generate data for suppliers, and no program involvement is required. But many times, we need to generate a data at a specific time, such as a web request, and I