You are receiving orders from different customer in an "orders" topic with multiple partitions. Each message has the customer name as the key. There is a special customer named ABC that generates a lot of orders and you would like to reserve a partition exclusively for ABC. The rest of the message should be distributed among other partitions. How can this be achieved?
A Custom Partitioner allows you to easily customise how the partition number gets computed from a source message.
Currently there are no comments in this discussion, be the first to comment!