التوافق والتطور
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
define compatibility rules and an evolution process for schemas.
الموضوعات المخطط لها
- Backward compatible: new readers can read old data; forward compatible: old readers can read new data.
- Safe changes: add optional fields. Unsafe: remove or rename fields, change types or meanings.
- Breaking changes get a new event version published alongside the old one with a retirement date.
- Automate compatibility checks in the build of the owning team.
تفاصيل المخطط المبدئي
عرض عملي
a rule table: add optional field (allowed), add required field (breaking), rename (breaking, use add-then-deprecate), plus a six-step evolution process.
اختبر فهمك
Is adding an optional field breaking?
أظهر الإجابة
No, if consumers ignore unknown fields.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.