-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][pip] PIP-437: Granular and Fixed-Delay Policies for Message Delivery #24625
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
Conversation
|
@chrisqwang3 Please add the following content to your PR description and select a checkbox: |
lhotari
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.
Thanks for the proposal! Please check the review comments.
|
@chrisqwang3 Your email message to the Pulsar dev mailing list had gone into the moderation queue. I released it from the queue today: https://lists.apache.org/thread/23t4zzbfjrm5r4pbzrofn3d85c0171yn . Please make sure to subscribe to the dev mailing list unless you have already done that. Instructions. |
lhotari
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.
LGTM. Great work @chrisqwang3
|
@chrisqwang3 Thank you for driving this proposal. |
|
@lhotari @coderzc @chrisqwang3 Why don‘t we continue to use max-delivery-delay, and then add a configuration similar to delivery-delay-type? It can be FIXED or VARIABLE. If it is FIXED, it is a fixed delay time. |
@Denovo1998 There is a reason. When all messages in a topic have the same delay, there will be significantly less state to manage. A system can be designed in a way where topics are used as schedulers and this will also work at very high scale without issues. This would work well with InMemoryDelayedDeliveryTracker since it has the Lines 659 to 663 in 84205eb
btw. It would be useful if there would be a way to specify
Here's the current DelayedDeliveryPolicies class: I guess the reason is that we would break backwards compatibility if we'd make changes in the way that you are suggesting. |
|
Oh, it‘s very clear. I see. +1 |
lhotari
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.
LGTM @chrisqwang3. I'll close the vote thread as accepted and merge this PIP PR.
… Delivery (apache#24625) Co-authored-by: Christina <qwang3@paypal.com>
… Delivery (apache#24625) Co-authored-by: Christina <qwang3@paypal.com>
PIP: 437
Motivation
The current system lacks administrative controls on message delivery delays, which introduces risks to cluster stability and data integrity. This proposal aims to provide granular control at the topic and namespace levels to add a fixed delay delivery configuration
Modifications
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: