التسليم المتوازي بمبدأ العقد أولًا
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
let teams build at the same time by agreeing interfaces first.
الموضوعات المخطط لها
- Contract-first: write the API schema or event schema, agree it, then both sides build against it.
- Stubs and mocks generated from the contract let the consumer start before the provider is ready.
- Contract tests catch drift: provider and consumer both verify against the agreed schema.
- Feature flags let unfinished work merge and deploy without being visible; integration turns on in stages.
- Changes to a contract go through a visible, versioned process.
تفاصيل المخطط المبدئي
عرض عملي
Timeline of two teams: week 1 agree the schema; weeks 2-4 provider builds, consumer builds against a stub; week 5 swap stub for the real service behind a flag. Mention schema tooling by role (OpenAPI, an event schema registry); verify tool versions before recording.
اختبر فهمك
What lets a consumer start before the provider has finished?
أظهر الإجابة
A contract-derived stub or mock.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.