Git Product home page Git Product logo

Comments (4)

choudhary001 avatar choudhary001 commented on July 30, 2024

I think I ran into #13.

Why is it necessary to do mesage.ack() for auto ack mode. STOMP specification says there is no need for client to send ACK to server in this mode. Is this an API requirement ?

Thanks,
Abhishek

from stompit.

gdaws avatar gdaws commented on July 30, 2024

Until recently it was a requirement of the API to use message.ack() in any ack mode. It forces application code to be ack-mode agnostic, which can potentially prevent errors if the ack mode is specified in config.

But this requirement is now deprecated (in master) and applications are expected to fully manage ACK messages themselves.

from stompit.

choudhary001 avatar choudhary001 commented on July 30, 2024

Do the application still need to do "message.ack()" even if the subscription header 'ack' is set to 'auto'?

I didn't understand 'applications are expected to fully manage ACK messages themselves.' Do the application need to acknowledge all messages regardless of 'ack' mode?

from stompit.

gdaws avatar gdaws commented on July 30, 2024

Yes you still have to use message.ack() even if the subscription is in auto ack mode.

But in the next version of stompit (probably v0.23), using message.ack() in an auto ack subscription will be optional, and client mode subscriptions will no longer be managed. The method message.ack will be deprecated, and the recommended way to send an ACK message is with client.ack(message)

from stompit.

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.