لماذا نحدّ المعدّل
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
name the reasons to limit traffic.
الموضوعات المخطط لها
- Protect capacity from abusive or buggy clients (a retry loop, a scraper).
- Fairness: one customer must not starve others.
- Cost control and protection of downstream services and paid APIs.
- Security: slows credential stuffing and brute force.
- Limits are keyed by something: API key, user, IP, tenant.
تفاصيل المخطط المبدئي
عرض عملي
| Key | Good for | Weakness |
|---|---|---|
| IP | anonymous traffic | shared NAT, proxies |
| User or API key | fairness per customer | needs authentication |
اختبر فهمك
Why not limit only by IP?
أظهر الإجابة
Many users can share one IP and attackers can rotate IPs.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.