एक schema registry Kafka messages के लिए data schemas को manage करता है — event data की संरचना को परिभाषित और लागू करना, schema evolution को सुरक्षित रूप से सक्षम करना। यह producers और consumers के बीच data consistency और compatibility के लिए महत्वपूर्ण है।
समस्या: messages में data संरचना
Kafka messages are just bytes → producers and consumers must AGREE on the data structure:
→ without management → producers might change the format, breaking consumers
→ how do consumers know the structure? how do you change it safely?
→ a SCHEMA REGISTRY manages this.
