GitHub user sijie added a comment to the discussion: [Pulsar Client] Is there a 
way to specify a schema version instead of uploading SchemaInfo to broker?

> Is it better if we just specify the schema version instead of whole 
> SchemaInfo?

We send the schema definition when a client connect to a broker, so the broker 
can verify the compatibility of a schema. If we only send the schema version, 
there is no way for us to verify if the client is using the right schema. 
Because a client can just provide a random schema number and produce the data 
with a different schema.

> but in my scenario, the client needs to connect and close connection 
> everytime it consume/produce message. 

Can you explain a bit more about your use case? I would like to understand more 
why you need to connect and close connection every time it consumes and produce 
messages. This is an anti-pattern of using Pulsar.


GitHub link: 
https://github.com/apache/pulsar/discussions/18459#discussioncomment-4133617

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@pulsar.apache.org

Reply via email to