Header need to store the headers key; thus, it's more space overhead. Also, as your own method `extractBufferTimeHeader` shows, it might interfere with user headers making the code "ugly". Might be opinionated, but I tend to prefer encoding it in the value instead of using headers (seems to be "cleaner").
[ Full content available at: https://github.com/apache/kafka/pull/5724 ] This message was relayed via gitbox.apache.org for [email protected]
