Using the Schema Registry
The Schema Registry is a repository. It is a metadata-serving layer for schemas. It provides a REST interface for storing and retrieving Avro schemas. It has a versioned history of schemas and provides compatibility analysis to leverage schema evolution based on that compatibility.
Remember that the Schema Registry has a REST interface; so, in this recipe, we use Java to make HTTP requests, but it is precisely a REST interface used to promote language and platform neutrality.
Getting ready
The Confluent Platform should be up and running:
$ confluent start schema-registry
How to do it...
Remember the Customer sees BTC price Avro schema of Doubloon:
{ "name": "customer_sees_btcprice", "namespace": "doubloon.avro", "type": "record", "fields": [ { "name": "event", "type": "string" }, { "name": "customer", "type": { "name": "id", "type": "long", "name": "name", "type": "string", "name": "ipAddress", "type": "string...