I use kafka for the flow of page visits by website users to the analytics service. Each event will contain the following data for the consumer:
I need a very high bandwidth, so I decided to split the topic with the partition key as userId-ipAddress i.e.
For userId 1000 and ip address 10.0.0.1, the event will have a section "1000-10.0.0.1"
In this case, the section key is dynamic, therefore, setting the number of sections in advance when creating a topic. Is it possible to create a theme in kafka with a dynamic number of sections?
Is it good to use this type of partitioning, or is there another way that this can be achieved?
partitioning apache-kafka kafka-consumer-api
vivek_jonam
source share