reuse topicdata when sending producerrequest
--------------------------------------------

                 Key: KAFKA-289
                 URL: https://issues.apache.org/jira/browse/KAFKA-289
             Project: Kafka
          Issue Type: Improvement
    Affects Versions: 0.8
            Reporter: Joe Stein
             Fix For: 0.8


The way that SyncProducer sends a ProducerRequest over socket is to first 
serialize the whole request in a bytebuffer and then sends the bytebuffer 
through socket. An alternative is to send the request like FetchReponse, using 
a ProduceRequestSend that reuses TopicDataSend. This avoids code duplication 
and is more efficient since it sends data in ByteBufferMessagesSet directly to 
socket and avoids extra copying from messageset to bytebuffer. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to