danthegoodman1 / UltraQueue

Distributed pull queue based on Segment's Centrifuge. Zero dependency p2p clustering.
GNU Affero General Public License v3.0
1 stars 0 forks source link

Dequeue remote topic partition awareness #4

Closed danthegoodman1 closed 2 years ago

danthegoodman1 commented 2 years ago

If we do not have the topic locally, we should look up from gossip whether we know about other partitions that have tasks in a topic, and forward the dequeue there.

Attempt to dequeue locally, if that returns nothing look up in the index if the topic exists on another partition, return a random partition.

We also need to enforce a max redirects to ensure that we never keep bouncing around.