springboot-rabbitmq icon indicating copy to clipboard operation
springboot-rabbitmq copied to clipboard

怎么确保消费端正确消费呢

Open realQuiet opened this issue 4 years ago • 1 comments

realQuiet avatar Feb 02 '21 06:02 realQuiet

投递成功后不要立即成功,你多加个MSgStattus 为 处理中,一旦他进入消费者都能消费到最后的话把这状态改成成功,消费一旦出现异常,或者消费者线程被终止,状态还是处理中,这个时候就可以定时任务判断了

mroldx avatar Mar 15 '22 12:03 mroldx