We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f51e28 + 4739225 commit 32bd696Copy full SHA for 32bd696
consumer_options.go
@@ -282,3 +282,14 @@ func WithConsumerOptionsQOSPrefetch(prefetchCount int) func(*ConsumerOptions) {
282
func WithConsumerOptionsQOSGlobal(options *ConsumerOptions) {
283
options.QOSGlobal = true
284
}
285
+
286
+// WithConsumerOptionsQueueQuorum sets the queue a quorum type, which means
287
+// multiple nodes in the cluster will have the messages distributed amongst them
288
+// for higher reliability
289
+func WithConsumerOptionsQueueQuorum(options *ConsumerOptions) {
290
+ if options.QueueOptions.Args == nil {
291
+ options.QueueOptions.Args = Table{}
292
+ }
293
294
+ options.QueueOptions.Args["x-queue-type"] = "quorum"
295
+}
0 commit comments