Schema registry จัดการ data schemas สำหรับข้อความของ Kafka — กำหนดและบังคับใช้โครงสร้างของข้อมูล event ช่วยให้ทำ schema evolution ได้อย่างปลอดภัย มันมีความสำคัญต่อความสอดคล้องของข้อมูลและความเข้ากันได้ระหว่าง producer และ consumer
ปัญหา: โครงสร้างข้อมูลในข้อความ
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.
