عرض عملي: طبقة مضادة للإفساد (Anti-corruption Layer) بين المنصة وERP
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
build a worked design of an ACL that keeps ERP models out of the platform; prepares ARC-032-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Show the ERP's model: item master with 40 fields, cryptic status codes, customer and ship-to as separate entities.
- Define the platform's own domain model: Product, Price, Availability, Order.
- Design the ACL: translator mapping ERP structures to domain objects, status code dictionary, error translation, and a stable internal contract.
- Planned mistake: reuse the ERP's field names and status codes directly in the platform API. Fix: translate at the boundary so an ERP upgrade changes one adapter only.
- Add contract tests against the adapter and monitoring of translation failures.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.