Giter Club home page Giter Club logo

Comments (1)

michaelklishin avatar michaelklishin commented on July 25, 2024

Please post your questions to the mailing list.

A traffic capture would be able to confirm but your code seems to be blocking the consumer dispatch loop. 60 seconds is the default peer unavailability detection timeout. Consumer deliveries are dispatched to a thread pool which only has a single thread (to eliminate any unexpected concurrency hazards) by default.
That's my best guess anyway, server logs, Bunny debug logs and a traffic capture will eliminate any need to guess what is going on.

A much better approach with long-running actions would be to hand over this task to a thread pool of your own, or maybe even a one-off thread if the rate isn't going to be high. A block passed to it should capture the channel reference since you can only acknowledge or re-queue on the same channel the delivery was on. You also have to keep in mind that the channel may be closed by then. This means the delivered message was automatically requeued and will be delivered, to this consumer or another instance.

from bunny.

Related Issues (20)

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.