Liyuhao02 commented on issue #748: URL: https://github.com/apache/rocketmq-spring/issues/748#issuecomment-3610450282
这个我上次也看到了,但是有个问题在于如果我们业务Topic设计不合理或者确实需要很多Topic的情况下,可能会在启动服务时自动创建大量线程,举例我们有40个Topic,每个Topic对应的Consume配置线程组线程数为20,在服务启动时就会创建 40 * 20 =800 个消费者线程在等待消息,产生大量资源浪费,在业务高峰期也无法进行扩容,所以我想的是如果支持配置最大、最小线程数,就可以在业务低峰期保留较低的消费者线程数量,业务高峰期自动创建线程数量,例如consumeThreadMin = 5, consumeThreadMax = 64,这样既不会浪费资源,也不会造成高峰期消费者线程数量不足 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
