Rabbitmq concurrent consumers in Spring boot

让人想犯罪 __ 提交于 2019-12-04 16:26:18

With the default configuration, a new consumer will be added every 10 seconds if the other consumers are still busy.

The algorithm (and properties to affect it) is described here.

Vinit Jordan

You can create max concurrent consumers using rabbitMQ annotation

@RabbitListener(queues = "your-queue-name", concurrency = "4")
public void customCheck(Object requestObject) {
    // process
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!