You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Joel Koshy (JIRA)" <ji...@apache.org> on 2012/08/14 20:33:38 UTC
[jira] [Updated] (KAFKA-289) reuse topicdata when sending
producerrequest
[ https://issues.apache.org/jira/browse/KAFKA-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joel Koshy updated KAFKA-289:
-----------------------------
Labels: optimization replication wireprotocol (was: replication wireprotocol)
> 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
> Labels: optimization, replication, wireprotocol
> 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