kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit K <amitk....@gmail.com>
Subject Simple KafkaProducer to handle multiple requests or not
Date Mon, 13 Mar 2017 10:05:20 GMT
Hi,

I am using simple kafka producer (java based, version 0.9.0.0) in an
application where I receive lot of hits (about 50 per seconds, in much like
servlet way) on application that has kafka producer. Per request comes
different set of records.

I am using only one instance of kafka producer to push the records to kafka
cluster. Is that good way to use kafka producer? As it is mentioned in
documentation, the kafkaproducer can be shared across multiple threads.

Or should be there one kafka producer created to handle one request?

Is there any best practice documents/guidelines to follow for using simple
java Kafka producer api?

Thanks in advance for your responses.

Thanks,
Amit

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message