You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2017/02/25 07:16:44 UTC
[jira] [Created] (KAFKA-4802) Support direct ByteBuffer
serializers/deserializers in clients
Matt Sicker created KAFKA-4802:
----------------------------------
Summary: Support direct ByteBuffer serializers/deserializers in clients
Key: KAFKA-4802
URL: https://issues.apache.org/jira/browse/KAFKA-4802
Project: Kafka
Issue Type: New Feature
Components: clients
Reporter: Matt Sicker
RecordAccumulator and Fetcher are already written to take advantage of a pool of ByteBuffers, but Serializer and Deserializer require you to return a byte array. If I have a key or value format that is better handled directly via ByteBuffer, the added conversion to a byte array introduces unnecessary garbage.
An example use case would be in enhancing the KafkaAppender in Log4j 2 to support garbage free logging (or minimal garbage; I haven't really looked at the entire code path).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)