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)

Reply via email to