As shown in the example in Pulsar Schema Registry Docs
Producer<User> producer = client.newProducer(JSONSchema.of(User.class))
.topic(topic)
.create();
User user = new User(“Tom”, 28);
producer.send(User);
You can register schema for both Producer and Consumer with Java Client. It is also mentioned that clients in other languages do not support schema registry.
Now is it possible to send a message from a Python API Producer on a Pulsar topic that will be consumed by a Consumer with Registered Schema? e.g.
processor = PulsarClient.builder()
.serviceUrl("pulsar://pulsarhost:6650")
.build()
.newConsumer(JSONSchema.of(User.class))
.topic("sometopic")
.subscriptionName("somesubscription")
.subscribe();
Python: import pulsar
client = pulsar.Client('pulsar://pulsarhost:6650')
producer = client.create_producer('sometopic')
client.close()