Giter VIP home page Giter VIP logo

Comments (6)

underfisk avatar underfisk commented on May 29, 2024

@ttshivers It is possible to wire and i don't think it would require too much code

from nestjs.

vaidas-dutrys avatar vaidas-dutrys commented on May 29, 2024

+1

from nestjs.

ttshivers avatar ttshivers commented on May 29, 2024

Would we want to keep a list of consumer/subscriber promises, do something with rxjs, or just maintain a dumb count of outstanding messages and wait for a given time?

from nestjs.

nagorn avatar nagorn commented on May 29, 2024

Any update on this? We're facing the same issue when NestJS app get kill by OS User. the message that still in process within our application is gone forever. So, we explore 2 solution:

  1. noAck = true
  2. gracefule shutdown

for the first option is not support by this library but the bottom line is app manual control ack and if app lost connection to rabbitmq server than the server will requeue the message automatically

for second option the bottom line is app will not fetch any new message and wait until process all consumed message then die.

this is critical because we are trusted that all message (100%) that go though rabbitmq must be always get processed.

from nestjs.

underfisk avatar underfisk commented on May 29, 2024

Would we want to keep a list of consumer/subscriber promises, do something with rxjs, or just maintain a dumb count of outstanding messages and wait for a given time?

Implementation details I'll leave up to your judgment and our consumers need

from nestjs.

ttshivers avatar ttshivers commented on May 29, 2024

Any update on this? We're facing the same issue when NestJS app get kill by OS User. the message that still in process within our application is gone forever. So, we explore 2 solution:

  1. noAck = true
  2. gracefule shutdown

for the first option is not support by this library but the bottom line is app manual control ack and if app lost connection to rabbitmq server than the server will requeue the message automatically

for second option the bottom line is app will not fetch any new message and wait until process all consumed message then die.

this is critical because we are trusted that all message (100%) that go though rabbitmq must be always get processed.

If you must ensure that all messages are processed, then the only guaranteed way by rabbitmq is noAck=false and only acknowledge the messages after they have been processed.
Your application or host could die or lose power and graceful shutdowns wouldn't save you at all in that case if you had noAck=true.

from nestjs.

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.