I am new to Apache Kafka. I want to assign a our user id as id to the topic partition. Is there a way to assign our own user-id to partition. I did research for couple hours on this, but didn't find any article related to assigning an ID to partition.
While publishing a message to Topic I want to use the user-id as key. So that all messages goes into the same partition. And I want to make sure that one partition should contain only one user related messages.
Can I use this user-id in consumers while consuming messages from partition?
Is there a way to achieve this functionality?