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

[Proof-of-concept] Strict topic priority for bandwidth-constrained situations #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ligfx
Copy link

@ligfx ligfx commented Mar 25, 2024

Not meant for merging or production (yet?), just as a potential idea.

I hacked up the client to (1) prefer sending messages from topics in higher priority groups, over messages from topics in lower priority groups and (2) consume messages continuously in a separate goroutine to keep our local buffers full. It's super messy and has some config hard-coded in but shows that the basic algorithm works.

Why? This was an ask for use cases where bandwidth can be limited, and you want to be able to prioritize delivery/replication of important messages back to the centralized cluster until you get more bandwidth or the production of important messages slows down.

Hacked up the client to (1) consume messages continuously in a separate
goroutine to keep our local buffers full and (2) prefer sending messages
from topics in higher priority groups, over messages from topics in
lower priority groups.

Why? This was an ask for use cases where bandwidth can be limited, and
you want to be able to prioritize delivery/replication of certain important
messages over less important ones that can wait until later to catch up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant