Is Apicurio Schema Registry supports one topic multiple schema ?

10 views
Skip to first unread message

Wilson Arockiasamy

unread,
Aug 4, 2021, 5:17:24 PM8/4/21
to SmallRye
Hi, wondering If smallrye supports  one topic with  multiple schema. For example
I have a topic "entertainment" I can post "Movie" & "Director" payload to the topic.
Same way can I consume from the topic? If so can you please provide the consumer configuration ?

Thank you!
Wilson.

Ladislav Thon

unread,
Aug 5, 2021, 3:12:14 AM8/5/21
to SmallRye
Considering you mention Apicurio Registry and using schemas, I assume you use Avro? One way to do that would be to not use specific types (such as Movie or Director) in the @Incoming/@Outgoing method signatures, but instead use SpecificRecord (which is a superclass of all Avro-generated classes). Or perhaps GenericRecord, which lets you treat all messages like bags of properties.

LT

st 4. 8. 2021 v 23:17 odesílatel Wilson Arockiasamy <reachw...@gmail.com> napsal:
--
You received this message because you are subscribed to the Google Groups "SmallRye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smallrye+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smallrye/fd320b01-170f-4822-bec9-8e035859bf64n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages