قانون Little
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
relate concurrency, throughput, and latency.
الموضوعات المخطط لها
- L = lambda x W: items in the system equals arrival rate times time in the system.
- Applies to threads, connections, consumers, queue contents.
- Example: 500 requests/s at 0.2 s latency needs about 100 concurrent in flight.
- Use it to size pools and to predict what happens when latency rises.
تفاصيل المخطط المبدئي
عرض عملي
pool sizing: 300 DB calls/s at 15 ms each gives 4.5 busy connections on average; a pool of 10 is fine until latency grows ten times.
اختبر فهمك
200 requests/s at 0.5 s each: how many in flight?
أظهر الإجابة
About 100.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.