Confluent Schema Registry Persistence

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 15:22:55

问题


I would like to be able to keep a schema with a fixed id even if the server is restarted.

Is it possible to persist the schemas in the Schema Registry in order to have them with the same id after the server crashes?

Otherwise, is it possible to hardcode a schema with a fixed id when the schema registry server starts?


回答1:


This is the purpose of schema registry: a schema has a fixed id. SchemaRegistry doesn't store anything on disk actually. It leverages on kafka to store all information in a compacted topic (on broker, _schemas by default).

So as long as you have register a schema, whenever you asked for this same schema, you will get the same id, even after crash / restart



来源:https://stackoverflow.com/questions/45275334/confluent-schema-registry-persistence

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!