add priority to queue-msg #3029
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
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, withOp::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
The text was updated successfully, but these errors were encountered: