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

add priority to queue-msg #3029

Open
benluelo opened this issue Sep 26, 2024 · 0 comments
Open

add priority to queue-msg #3029

benluelo opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
A-voyager Area: Our voyager relayer C-optimization Category: An issue highlighting optimization opportunities or PRs implementing such E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. P-medium Medium priority

Comments

@benluelo
Copy link
Contributor

currently with the Op::Defer message, we spin on it until it's passed. this is quite inefficient since it can block out other messages that are more important (i.e. literally anything else other than waiting for a timestamp). we should integrate this functionality directly into the queue, such that the messages also have an optional "don't pull until" column, with Op::Defer being the "gateway" to this column. if a defer message is hit, the queue will push this back into the queue with the "don't pull until" column set to the timestamp to wait for, and then when pulling new items from the queue it will only pull items where the "don't pull until" column is <= now().

todo: wtf to call this column

@benluelo benluelo added P-medium Medium priority E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. A-voyager Area: Our voyager relayer C-optimization Category: An issue highlighting optimization opportunities or PRs implementing such labels Sep 26, 2024
@benluelo benluelo self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-voyager Area: Our voyager relayer C-optimization Category: An issue highlighting optimization opportunities or PRs implementing such E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. P-medium Medium priority
Projects
None yet
Development

No branches or pull requests

1 participant