You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Prashant Sharma (JIRA)" <ji...@apache.org> on 2017/03/16 05:22:41 UTC

[jira] [Created] (SPARK-19968) Use a cached instance of KafkaProducer for writing to kafka via KafkaSink.

Prashant Sharma created SPARK-19968:
---------------------------------------

             Summary: Use a cached instance of KafkaProducer for writing to kafka via KafkaSink.
                 Key: SPARK-19968
                 URL: https://issues.apache.org/jira/browse/SPARK-19968
             Project: Spark
          Issue Type: Bug
          Components: Structured Streaming
    Affects Versions: 2.2.0
            Reporter: Prashant Sharma


KafkaProducer is thread safe and an instance can be reused for writing every batch out. According to Kafka docs, this sort of usage is encouraged.

TODO: Post my results from benchmark comparison. 





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org