Coder Social home page Coder Social logo

Messages go into infinite immediate retries in case there are a lot of messages (over 100) with persistent issue while processing. about nservicebus.rabbitmq HOT 5 OPEN

bonieckimarcin avatar bonieckimarcin commented on July 23, 2024 1
Messages go into infinite immediate retries in case there are a lot of messages (over 100) with persistent issue while processing.

from nservicebus.rabbitmq.

Comments (5)

bording avatar bording commented on July 23, 2024 1

I can reproduce the issue, and as I suspected, it only occurs when classic queues are used.

The broker provides retry count information for us via the x-delivery-count header, but only when consuming messages from a quorum queue. We have to fall back to tracking the data locally when classic queues are being used.

For this reason, and many others, I highly recommend converting to quorum queues as soon as possible! We have a migration guide and a tool to help you do this.

Regarding a fix for when running on classic queues, locally tracked information is never going to be as reliable as information provided by the broker, but we could increase the capacity of the collection. It would still be possible to hit this problem if there are enough failing messages in the queue regardless of how large the collection is, but it's clear that the current value of 100 is too low!

from nservicebus.rabbitmq.

bonieckimarcin avatar bonieckimarcin commented on July 23, 2024

In addition we have also noticed that switching PrefechMultiplier to 1 makes immediate retries to work properly

from nservicebus.rabbitmq.

bsmykowskiinf avatar bsmykowskiinf commented on July 23, 2024

We also prepared a solution with minimal configuration with which we were able to reproduce the error.
To reproduce the issue, please follow instructions in readme file from the following repository:
https://github.com/bsmykowskiinf/RabbitRetriesTest

from nservicebus.rabbitmq.

bording avatar bording commented on July 23, 2024

@bonieckimarcin @bsmykowskiinf Thanks for including a repro project. That will make it much easier to investigate.

One question. I see you're using classic queues. Have you tried quorum queues? It would be good to know if it works properly with quorum queues or still fails in the same way.

from nservicebus.rabbitmq.

bonieckimarcin avatar bonieckimarcin commented on July 23, 2024

Upgrading to quorum is on our to do list. But looking at size and complexity of our project, it requires a lot of testing and we are not able to do that immediately. We still have to work with classic queues for some time.

from nservicebus.rabbitmq.

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.