-
Notifications
You must be signed in to change notification settings - Fork 586
#354 | Metrics for ack, nack & unrouted publishes #360
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
#354 | Metrics for ack, nack & unrouted publishes #360
Conversation
Metrics for multiple acks and nacks are unsupported in this naive approach.
|
@acogoluegnes this lacks tests, but can be considered complete if you ignore multiple (n)acks. To support multiple (n)acks I'll create a separate PR. Would it possible to merge naive implementation w/o multiple confirms?
Possible implementation is to track ranges of acked or nacked messages and update the counters, in the following fashion: When sufficient (higher than timeout for waiting for (n)ack) has elapsed, then possibly the structure can be simplified into just counters for nacks and acks plus the structure above for the newer ones. That would optimise for memory. How's that sound for a solution? |
acogoluegnes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add at least a test case with publisher confirms in the Metrics integration test. It can be a sunny test, with only publishing acknowledgments, publishing nack are hard to simulate. The fact multiple ack aren't handled shouldn't be a problem.
|
@slayful I'm not sure I'm following you on the multiple ack/nack support. But, yes, it can wait another PR, as long as the item in my review is addressed. |
|
@slayful Any update on this? The PR has still "WIP" in its title and a couple of comments to address, so I'm wondering. |
|
Sorry, I was a little bit busier than usually. I should be able to address the feedback within this week. :) |
|
I have yet to fix the test for unrouted messages, but when I do it should be ready for a second review. |
|
@slayful Thanks for this contribution! @michaelklishin Any comments before merging? |
|
@acogoluegnes I think it's good to go. |
1 similar comment
|
@acogoluegnes I think it's good to go. |
Proposed Changes
See #354.
Types of Changes
Checklist
CONTRIBUTING.mddocumentFurther Comments
This is currently a WIP.