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

لماذا لا تتوسع المعاملات الموزّعة

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

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

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

في هذا الدرس

explain why two-phase commit is avoided across services.

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

  • Two-phase commit (2PC): a coordinator asks all participants to prepare, then to commit.
  • Participants hold locks while waiting; a coordinator crash leaves them blocked.
  • Availability is the product of all participants' availability, and latency is the slowest one.
  • Services own separate databases and brokers; many do not support 2PC at all.
  • The alternative is a series of local transactions with explicit recovery.
تفاصيل المخطط المبدئي

عرض عملي

a diagram: coordinator, inventory, payments, locks held across a network round trip.

اختبر فهمك

What happens to participants if the 2PC coordinator dies after prepare?

أظهر الإجابة

They stay blocked holding locks.

التطبيق

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

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

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

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