انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRC-015-L03

استنزاف الاتصالات

  • الدرس 3 من 8
  • Senior C
في هذا الدرس 4 موضوعات

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

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

في هذا الدرس

diagnose exhausted connection pools and database connection limits.

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

  • Symptom: threads waiting for a connection; timeouts "unable to acquire connection".
  • Causes: slow queries holding connections, leaked connections, transactions open across remote calls, a pool larger than the database can serve across all instances.
  • Evidence: pool metrics (active, idle, pending), database session list showing idle-in-transaction, long-running queries.
  • Fixes: shorter transactions, no remote calls inside transactions, correct pool sizing per instance times replicas, timeouts, leak detection.
تفاصيل المخطط المبدئي

عرض عملي

Arithmetic: 40 pods times a pool of 20 equals 800 connections against a database limit of 500. At 10× scale this becomes a failure.

اختبر فهمك

Why avoid remote calls inside a transaction?

أظهر الإجابة

They hold a connection while waiting on something slow.

التطبيق

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

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

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

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