Git Product home page Git Product logo

Comments (3)

streadway avatar streadway commented on May 23, 2024

This library supports publisher confirms. All you need is to add your buffered chan(s) with http://godoc.org/github.com/streadway/amqp#Channel.NotifyConfirm make sure you're always selecting from them, then put the AMQP Channel into Confirm mode with: http://godoc.org/github.com/streadway/amqp#Channel.Confirm

There is an example here: http://godoc.org/github.com/streadway/amqp#_example_Channel-Confirm Note that this library makes an effort to present a gapless sequence of confirmation numbers so you don't have to handle the batching of sequence numbers the protocol allows. This means that if the server says "I ack until message 9" your NotifyConfirm chan will get 10 messages "0, 1, 2, 3, 4, 5, 6, 7, 8, 9". If the server then says "I ack until message 13", your chan will then get "10, 11, 12, 13".

You can also put the AMQP Channel into transaction mode with http://godoc.org/github.com/streadway/amqp#Channel.Tx But I'm not certain what the server semantics are when using transactions with publisher confirms.

As far as I know, there are no outstanding features missing from the AMQP 0.9.1 spec other than some optional SASL authentication methods.

Also note that this library doesn't present any reconnection/recovery strategies. If a channel errors, then it's best to re-create and redeclare your topology. In most cases, if the library errors, it's best to rebuild the connection.

from amqp.

rohityadavcloud avatar rohityadavcloud commented on May 23, 2024

Cool thanks for the comment and fixing the spec generation issue. I've just gone through a presentation on soundcloud and its use of queues; is this library used in production at soundcloud?

from amqp.

streadway avatar streadway commented on May 23, 2024

Yes, this library is used in SoundCloud's search indexer and in the data pipeline that drives the Dashboards.

from amqp.

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.