Hi, I want to send data to apache kafka using the java api of the kafka producer. The data will be in high volume, of the order of more than 5 thousand messages per second. Please help me with the following queries:
1. Should I create only one producer object for the entire app and use the same object to send all the messages and then close the producer in the end? Or should I create a producer object for every message to be sent and close the producer connection after sending each message? 2. Does the producer api inherently use a pool of Producer objects? If yes, what is the default size of the pool and is it configurable? Thanks in advance, Dhiraj Prajapati