You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "huxi (JIRA)" <ji...@apache.org> on 2017/03/01 09:52:45 UTC
[jira] [Commented] (KAFKA-4822) Kafka producer implementation
without additional threads, similar to sync producer of 0.8.
[ https://issues.apache.org/jira/browse/KAFKA-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889871#comment-15889871 ]
huxi commented on KAFKA-4822:
-----------------------------
For KafkaProducer, all writes are asynchronous by default. Snippets below implements synchronous writes:
{code}
Future<RecordMetadata> future = producer.send(record);
RecordMetadata metadata = future.get();
{code}
> Kafka producer implementation without additional threads, similar to sync producer of 0.8.
> ------------------------------------------------------------------------------------------
>
> Key: KAFKA-4822
> URL: https://issues.apache.org/jira/browse/KAFKA-4822
> Project: Kafka
> Issue Type: New Feature
> Components: producer
> Affects Versions: 0.9.0.0, 0.9.0.1, 0.10.0.0, 0.10.0.1, 0.10.1.0, 0.10.1.1
> Reporter: Giri
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)