how to set prefetch when using spring rabbitmq -
if using spring rabbitmq, how set prefetch size 1? utilize case send task definition in xml rabbitmq, , many working servers connect , task 1 one. since i'd have max performance , allow each server busy, should set prefetch 1 otherwise, server much busier other.
actually simplemessagelistenercontainer
has setprefetchcount
option, available rabbit
namespace:
<rabbit:listener-container prefetch="1"> <rabbit:listener queues="foo, bar" ref="mylistener"/> </rabbit:listener-container>
spring rabbitmq
No comments:
Post a Comment