Skip to content

Parallel consumer Key Ordering is not working as expected #724

Closed Answered by rkolesnev
amber13574 asked this question in General
Discussion options

You must be logged in to vote

It does not dispatch event processing to the same thread in the thread pool per key - but it orders event processing to be sequential per key..
So partition 0 with key key-0-0 , offset 69 will only be executed after partition 0 with key key-0-0 , offset 68 is successfully completed - if you add a delay to user function and log timestamps - that will be visible in logs.
As normally you will have way more keys than processing threads - pinning per key processing to specific threads might delay processing unnecessarily.
For example Key1, Key2, Key3 data - Key1 and Key3 both pinned to thread-1. Key3 cannot be processed until Key1 is done - even if thread-2 is available and free.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amber13574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants