Multithreading in the producer code.

2015-10-19 Thread Gaurav Sharma
is, how can I increase the throughput at the producer end? Do I need to create multiple producer object ? Will multithreading help? If yes, what's the best way of doing it? What do you suggest to improve the performance. Any help would be highly appreciated. Thanks, Gaurav Sharma

Multithreading in producer code.

2015-10-19 Thread Gaurav Sharma
Hi All, I'm in the process of writing a producer which reads a binary file, decodes it according to a predefined structure (message length followed by the message). There are 7 different message types in the file, example message1, message2 message7. In the producer code I have created 7 topic