Write a new Kafka application CustomClassForKeyDemo
(using Kafka Producer API) as follows:
instID
and empID
case class InstEmp
Serializer
for the class
class InstEmpSerializer extends Serializer
ProducerConfig.KEY_SERIALIZER
property to register the serializerInstEmp
for the keys of ProducerRecord
objects (and any type for values)kafka-console-consumer
to print out the recordsDuration: 30 mins