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

المتزامن مقابل غير المتزامن

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

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

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

في هذا الدرس

compare the two styles by coupling, latency, and failure.

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

  • Synchronous: the caller waits for the answer (HTTP, gRPC). Simple, immediate result.
  • Asynchronous: the caller sends a message and continues (broker). Decoupled in time, harder to reason about.
  • Sync couples availability: if inventory is down, orders fails too.
  • Async absorbs spikes and outages, but the result arrives later and must be tracked.
  • Use sync for queries needing an answer now; async for work that can finish later.
تفاصيل المخطط المبدئي

عرض عملي

two sequence sketches for "place order": a sync chain versus OrderPlaced published to a broker.

اختبر فهمك

Which style needs both services up at the same moment?

أظهر الإجابة

Synchronous.

التطبيق

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

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

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

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