Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsub: Add support for subscribers backed by MessageReceiverWithAckResponse instead of MessageReceiver #1109

Open
turneand opened this issue Apr 19, 2024 · 0 comments

Comments

@turneand
Copy link

Feature description

Currently the micronaut gcp libraries utilise the MessageReceiver interface of the underlying Subscriber, unfortunately we are being hit by a bug in the pubsub libraries where duplicate messages are being sent even after something has been acknowledged - see https://issuetracker.google.com/330381101

The workaround we currently have is to switch the receiver used in DefaultSubscriberFactory to use a MessageReceiverWithAckResponse, but this is quite an intrusive modification of the framework, in particular when we use the reactive pubsub flows, as probably not implemented that part correctly.

What I would like to be able to do is choose either to use the default MessageReceiver, or the MessageReceiverWithAckResponse based off a config flag, but would also be ok if we need to implement our own extension of DefaultSubscriberFactory if it were able to expose some extension points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants