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

الحواجز (Bulkheads)

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

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

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

في هذا الدرس

isolate resource pools per dependency.

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

  • Named after ship compartments: a leak floods one section, not the whole ship.
  • Give each dependency its own limit on concurrent calls (semaphore) or its own thread pool.
  • A slow reviews call can then use at most its share, leaving capacity for payments.
  • Excess calls are rejected quickly rather than queued.
  • Size limits from expected concurrency, not guesses; revisit with load tests.
تفاصيل المخطط المبدئي

عرض عملي

java
BulkheadConfig cfg = BulkheadConfig.custom()
    .maxConcurrentCalls(20).maxWaitDuration(Duration.ZERO).build();

اختبر فهمك

What does a bulkhead protect?

أظهر الإجابة

Other dependencies and endpoints from one slow dependency using all shared capacity.

التطبيق

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

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

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

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