gunli commented on PR #1055:
URL: 
https://github.com/apache/pulsar-client-go/pull/1055#issuecomment-1635487773

   > When enabling the chunking, we cannot get the number of total chunks 
before pushing the request to the dataChan. And there may be a deadlock issue 
similar to [apache/pulsar#17446](https://github.com/apache/pulsar/issues/17446)
   
   I think it is possible to do that, the trade off is we have to call 
`sheame.Encode()` and `p.compressionProvider.Compress()` before entering the 
dataChan, that will affect performance of the applicate go routine. Or, add 
another channel and go routine to the `producer` (not `partitionProducer`) do 
these preparing work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to