How to push avro schemas/protocols such that it registry uses references and doesn't embed everything into definition #5573
Labels
area/references
area/rest-api
area/storage
component/registry
priority/normal
type/discussion
type/question
Further information is requested
I want to build a custom registry image based on apicurio, this image would preload all my schemas enforcing them (since i will disable pushing artifacts by services). There is one big problem though.
If i simply loop over all my AVSC files (that i generate from AVDL) and upload them one by one then registry does no processing on top of them and does not recognise when 2 messages were imported reused, because the content of AVSC is literally inlined to be self contained.
I started looking for api that would allow me to upload protocol files AVDL or AVPR, but i found no such thing.
When i use a kafka producer/consumer example and let it push the definitions on the go i see that this pushes messages properly (e.g. uses references), but actual code that does this does a lot of work, it figures out all those references and uploads them correctly to registry.
Problem is i cant just let arbitrary java code run during build stage (or at least i dont want to), ideally registry should allow for importing a protocol and then properly store all those definitions and references.
What can i do here other than grabbing the code from kafka serializer? maybe there is an api i do not know about?
The text was updated successfully, but these errors were encountered: