Hi Kecona Since the Publish Context already has these methods to use: `producerName`, `sequenceId`, `originalProducerName`, `numberOfMessages`, `isMarkerMessage`, `isChunked`, `props`.
Could you explain the detail of what field of message metadata needs to be used? It is better to add the detail into the PIP. I also think providing message metadata byte buf is a better way, and you need to pay attention to the release of ByteBuf. Thanks Yubiao Feng On Sat, Oct 7, 2023 at 12:49 PM kecona <kecona1...@gmail.com> wrote: > Hi all, > > I wrote a PIP to make PublishContext provide the message metadata, see > https://github.com/apache/pulsar/pull/21311. > > An implementation for this PIP: > https://github.com/apache/pulsar/pull/21245(reverting) > > Please let me know your thoughts! > > Thanks, > Kecona >