Comments (3)
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.
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.
Yes, this library is used in SoundCloud's search indexer and in the data pipeline that drives the Dashboards.
from amqp.
Related Issues (20)
- AMQPLAIN authentication does not work
- incorrect bindings in management UI
- Why use struct instead of pointer? HOT 1
- Channel blocks despite connection is closed HOT 5
- Adding a note that this repo has moved to github.com/rabbitmq/amqp091-go
- failed to dail() when password contains with special characters like "#"
- TestTLSHandshake failing with Go 1.18 due to denial of SHA1 certificates HOT 1
- How to get one message from queue
- consume stops receiving messages after reconnecting HOT 1
- RabbitMQ has open connections(Too many File descriptors piling up on broker) for publish HOT 1
- Documentation contradiction in regards to flow
- When I consume from a queue, the queue goes up HOT 3
- Coverity Scan - Identical code for different branches
- How do I use a proxy server to connect?
- tls problem
- Tagging
- Error sending to queue
- channel.Confirm hangs
- Error consuming from a queue that contains data packaged with msgpack
- if the Conn:Channel ratio is not 1:1 please help me understand API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqp.