الحواجز (Bulkheads)
في هذا الدرس 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
reviewscall can then use at most its share, leaving capacity forpayments. - Excess calls are rejected quickly rather than queued.
- Size limits from expected concurrency, not guesses; revisit with load tests.
تفاصيل المخطط المبدئي
عرض عملي
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.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.