lcartercondon commented on issue #81: Support seting topic schema when creating 
producers/consumers
URL: https://github.com/apache/pulsar-client-node/pull/81#issuecomment-603934481
 
 
   > isn't it a breaking change for them to support automatic encoding/decoding?
   
   This is a great point - I hadn't thought about it yet. I could work around 
it in `producer.send` by skipping the automatic encode if data is of a buffer 
type, or make automatic encode opt-in either during producer creation or on 
each send call.
   
   It's definitely a bit more tricky for the message handling function in the 
consumer. Would it be reasonable to do something along the lines of what the 
Python lib does? It assigns the decoded `message.data` to a `message.value` 
attribute. Alternatively, could make the automatic decode opt-in during 
consumer creation. 

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


With regards,
Apache Git Services

Reply via email to