-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(store): Random Kafka partitioning for sessions (#1194)
Instead of using the session ID as partition key for producing sessions, assign a random partitioning key. This ensures more even distribution of sessions on the Kafka topic, even if clients are sending many updates for the same session. We have noticed intermittent imbalance on the partitions. The theory is that clients are sending repeat updates for the same session (ID) when a high number of errors are occurring within that session. Every session update would go to the same partition unless we use random partitioning.
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters