dionjansen commented on issue #61:
URL: https://github.com/apache/pulsar-dotpulsar/issues/61#issuecomment-706951453


   @blankensteiner just a stab in the dark, but: could it be that since 
[according to the docs on binary protocol 
metadata](https://pulsar.apache.org/docs/en/develop-binary-protocol/#message-metadata)
 the `num_messages_in_batch` is optional the following would apply: if 
`num_messages_in_batch` is set (whether to 1 or a number higher than 1) the 
payload should always be treated as a batch, otherwise it can be treated as a 
non-batched message. 
   
   In this case you wouldn't take the number of messages in the batch as an 
indicator for it being batched but the existence of this metadata property. 
   
   But I agree: 
https://github.com/apache/pulsar/blob/master/pulsar-common/src/main/proto/PulsarApi.proto#L111-L112
 doesn't seem to support this idea.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to