[ 
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)

Reply via email to