Skip to content

Commit

Permalink
Use quorum queues for higher reliability
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Domke <martin.domke@finleap.com>
  • Loading branch information
mdomke committed Dec 16, 2022
1 parent 0bee059 commit 425a688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/eventsourcing/messaging/bus_rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (b *rabbitEventBus) addHandler(ctx context.Context, handler evs.EventHandle
if workQueueName == "" {
options = append(options, rabbitmq.WithConsumeOptionsQueueExclusive)
} else {
options = append(options, rabbitmq.WithConsumeOptionsQueueDurable)
options = append(options, rabbitmq.WithConsumeOptionsQueueDurable, rabbitmq.WithConsumeOptionsQuorum)
}

err := b.consumer.StartConsuming(
Expand Down

0 comments on commit 425a688

Please sign in to comment.