[
https://issues.apache.org/jira/browse/KAFKA-17861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945709#comment-17945709
]
Matthias J. Sax edited comment on KAFKA-17861 at 4/18/25 3:45 PM:
------------------------------------------------------------------
Siddhartha, Sarah did only report the issue. So it's not on her to write a KIP,
but it's on whoever picks up this ticket to write a KIP.
Sarah, you can read up on the KIP process on the wiki:
[https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Improvement+Proposals]
(in case you are interested). But as long as you don't plan to actually work on
this ticket, you can ignore it.
was (Author: mjsax):
Siddhartha, Sarah did only report the issue. So it's not on her to write a KIP,
but it's on whoever picks up this ticket to write a KIP.
Sarah, you read up on the KIP process on the wiki:
[https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Improvement+Proposals]
(in case you are interested). But as long as you don't plan to actually work on
this ticket, you can ignore it.
> Serialize with ByteBuffer instead of byte[]
> -------------------------------------------
>
> Key: KAFKA-17861
> URL: https://issues.apache.org/jira/browse/KAFKA-17861
> Project: Kafka
> Issue Type: Wish
> Components: clients, producer
> Affects Versions: 3.3.2
> Reporter: Sarah Hennenkamp
> Priority: Minor
> Labels: kip-required
>
> This is a request to consider changing the return value of the
> [Serializer|https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/serialization/Serializer.java]
> from a byte[] to a ByteBuffer.
>
> Understandably folks may balk at this since it's a large lift. However, we've
> noticed a good chunk of memory allocation in our application comes from the
> [KafkaProducer
> serializing|https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L1045]
> the key and value pair. Using ByteBuffer could allow this to be off-heap and
> save on garbage collection time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)