انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-059-L05

المونوليث المعياري

  • الدرس 5 من 6
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

structure one deployable into modules with real boundaries.

الموضوعات المخطط لها

  • One deployment, several modules (catalog, orders, inventory, payments), each with its own domain and data.
  • Each module exposes a small public API (package or interface); everything else is internal.
  • Enforce boundaries by tooling: Java modules, separate Gradle/Maven modules, or ArchUnit tests, not by good intentions.
  • Modules do not share tables freely; each owns its schema or tables and others call its API.
  • Spring Modulith is one option to verify structure and publish events between modules (verify version before recording).
  • Cheaper than microservices and the natural step before splitting.
تفاصيل المخطط المبدئي

عرض عملي

a package layout orders/api, orders/internal, plus an ArchUnit rule forbidding inventory from importing orders.internal.

اختبر فهمك

What makes a module boundary real?

أظهر الإجابة

A tool or build rule that fails when it is crossed.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.