设置参数: RabbitMQ Consumer Properties :: Spring Cloud Stream 注意:prefetch生效的前提是acknowledge-mode: 不能为none,推荐设置acknowledge-mode: auto。 baseQos是一个方法,可以设置PrefetchCount的值。 RabbitMQ中的QoS(Quality of Service,服务质量)机制允许消费者控制从队列中接收消息的速率,特别是通过basic.qos方法和prefetch count参数来实现。 …