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 . Add metadata to the producer record
B . Create a custom partitioner
C . All messages with the same key will go the same partition, but the same partition may have messages with different keys. It is not possible to reserve
D . Define a Kafka Broker routing rule
Answer: B
Explanation:
A Custom Partitioner allows you to easily customise how the partition number gets computed from a source message.
Latest CCDAK Dumps Valid Version with 150 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund