Today I test the prefetch and txsize,but I find a problem as follows
this is my configuration
this is my rabbitmq server pic ,the prefetch and txsize recording on the server not equals with the configurationCode:<rabbit:listener-container id="ocrWorker" concurrency="2" connection-factory="rabbitConnectionFactory" prefetch="3" transaction-manager="rabbitTransactionManager" transaction-size="20" auto-startup="false" message-converter="orcMessageConvert" > <rabbit:listener method="doMessageQueueWork" queue-names="queue.etlOcrServer.recognize" ref="ocrListener" /> </rabbit:listener-container>
dsdsd.jpg
but the value of Prefetch count in rabbitServer equals with the transaction-size,not prefetch.Could you explain the reason.In my opinion ,transaction-size,means if the amount of client processing the message succefully reach the value,client will send ack to server,it can make server works better instead of sending a ack per message.The prefetch means client can get some messages saving on the local machine,and the mq server will wait for the ack reaching.Is my opinions correct?


Reply With Quote