Skip to content

How does Apicurio registry pick schema version if more than 1 version is uploaded #2894

Answered by EricWittmann
junaidaj86 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @junaidaj86 sorry for the late response.

A few things to answer here.

First, Apicurio Registry does not perform validation on the server. Validation always occurs on the client side. Typically that means the Serializer/Deserializer code in a typical Kafka application.

The way this usually works is that the producer Kafka application uses a particular schema version to produce a message on a Kafka topic. The unique ID of that specific schema version is included in the Kafka message, either as a header or as the first 4 or 8 bytes of the message payload. Next, when a consumer Kafka application reads the message, it determines the unique schema ID by reading it from the message. It then u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by EricWittmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants