Some points :
1. Check if CPU usage is high on your confluent cluster
2. Monitor average batch size and request rate of the producer to understand if you are making too many calls to cluster.
3. If step 2 gives you a hint that too many requests are causing problem (leading to high cpu usage), tune batch.size and
linger.ms of the kafka producer.
eg: Increase default batch.size to 32768(32Kb). default value is 16kb
Add some delay while producing. You can set
linger.ms=10ms.
Please tune based on your cluster resources and data rate.