Skip to content

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

Open
ligfx wants to merge 1 commit intoredpanda-data:mainfrom
ligfx:strict_topic_priority
Open

[Proof-of-concept] Strict topic priority for bandwidth-constrained situations#18
ligfx wants to merge 1 commit intoredpanda-data:mainfrom
ligfx:strict_topic_priority

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.

1 participant