انتقل إلى المحتوى
أمين أبوزيد
SRC-008

التفكيك المعماري

  • 8 درس
  • 4 ساعة تدريب (تقدير)
في هذه الصفحة 9 موضوعات

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

نظرة عامة

الموضوعات

  • المونوليث المعياري مقابل الخدمات
  • معايير الترحيل

تعلّم أولًا

4 ساعة تدريب (تقدير)

مخرجات التعلم

  1. Decide between keeping a modular monolith and extracting services using explicit criteria (team topology, change coupling, scaling, fault isolation).
  2. Detect coupling from code, data, deployment, and change history.
  3. Recommend merging services back when the split costs more than it gives.
  4. Outline a migration path and its exit criteria.

الدروس

  1. 01التفكيك وسيلة وليس هدفًا
  2. 02أنواع الاقتران
  3. 03أدلة من سجل التغييرات
  4. 04هيكلة الفرق (Team topology) والحدود
  5. 05متى ندمج الخدمات من جديد
  6. 06معايير الترحيل وشروط الخروج
  7. 07عرض عملي: التنقيب في سجل Git عن اقتران التغيير
  8. 08عرض عملي: بناء الحجة لدمج خدمتين كثيرتي التخاطب

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

Lab

SRC-008-LAB1 · Boundary review

Outcomes: 1–4 · Time: ~2 h

  1. Map Shop Platform's services, owning teams, and databases.
  2. Mine Git history for change coupling; add data, deployment, and runtime coupling evidence.
  3. Apply explicit criteria (team topology, change coupling, scaling, fault isolation).
  4. Recommend one split and one merge, or justify none; outline migration path and exit criteria.

Acceptance: recommendation backed by data and team considerations.

Exercises (boundary defense; six exercises)

IDOutcomeTask
SRC-008-EX011A VP wants the order module extracted "for scalability". List the evidence you need and the criteria you apply.
SRC-008-EX022Given a co-change table, interpret three pairs and say which need follow-up.
SRC-008-EX032Classify five symptoms by coupling kind (code, data, deployment, temporal, change).
SRC-008-EX043Two services share a database, release together, and call each other 12 times per request. Recommend an action with a plan.
SRC-008-EX054Draft a staged migration for extracting notifications with exit criteria per stage.
SRC-008-EX061Evaluate "one service per noun" for Shop Platform with the criteria.
أظهر الحلول
  • EX01 Load profile per module, change rate, team ownership, failure isolation need, data coupling; if only scaling is claimed, show load data and consider cheaper fixes first.
  • EX02 High co-change across services (for example orders and inventory in 70% of commits) needs follow-up; same-module pairs are expected; verify noise and merges.
  • EX03 Shared library: code; shared table: data; must release together: deployment; synchronous call required: temporal; files change together: change.
  • EX04 Merge: shared data and lockstep releases make it a distributed monolith; plan: align the code, merge deployments, keep modules inside, measure release time and incidents.
  • EX05 Stage 1 enforce module boundary; stage 2 separate data; stage 3 deploy service behind a flag; stage 4 remove the old path; exits: latency and error budgets, rollback if exceeded.
  • EX06 Boundaries by noun ignore change patterns and teams, producing chatty services; use capabilities and evidence instead.

Workplace evidence: a decomposition or consolidation decision you contributed to, with its outcome.

الاختبار

Outcomes: O1 split or keep criteria · O2 detecting coupling · O3 merging back · O4 migration and exit criteria.

اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.

  1. 1A legitimate driver for extracting a service is:O1
  2. 2A modular monolith is:O1
  3. 3Conway's law says structure mirrors:O1
  4. 4A shared database between services is:O2
  5. 5Co-change coupling is best seen from:O2
  6. 6A dependency-bump commit touching every service should be:O2
  7. 7A signal to merge services:O3
  8. 8Presenting a merge is best framed as:O3
  9. 9Why define exit conditions?O4
  10. 10An incremental extraction approach:O4

الجزء العملي

Six boundary exercises SRC-008-EX01 to EX06 plus the lab. Pass: quiz at least 8/10, at least five exercises correct, and a boundary recommendation backed by change-coupling data and team considerations, defended against assessor challenges.

أخطاء شائعة

Boundaries by noun; ignoring team structure; decomposition without migration plan.

التقييم

Boundary defense.

دليل من بيئة العمل

A decomposition or consolidation decision you contributed to, with its outcome.

الصلة بالمسار الوظيفي

Architecture migration (SRB-008) and organizational bottlenecks (SRA-018).

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