GithubHelp home page GithubHelp logo

Comments (2)

gh-z avatar gh-z commented on June 12, 2024

我的理解这块,消息提供者把消息发送到broker,交换机不存在,ack会为false,你的代码会判断重发次数,小于3次的情况会进行重发,我试了下,第一次发送为ack为false就停止了,没有重新发送消息,怎么回事,麻烦说一下?

from spring-boot-student.

gh-z avatar gh-z commented on June 12, 2024

在confirm方法里重发消息,会阻塞住ampq这个线程,之后的所有ack为false的消息,进入此处逻辑,由于之前的操作会阻塞住当前线程,并且不会主动释放,在进入的消息会卡住,下图是amqp线程新建的channels,会一直存在
image
这块我认为能解决问题的办法是在confirm方法里,重发的方法的代码部分放在新启动的线程里执行,不阻塞在ampq这个线程,不会出现之前的阻塞
image
image

from spring-boot-student.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.