CAP بشكل صحيح
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
state CAP precisely and avoid its common misuse.
الموضوعات المخطط لها
- CAP describes behavior during a network partition: choose consistency (refuse some requests) or availability (answer, possibly stale).
- Partitions are not optional in a distributed system, so "pick any two of three" is misleading.
- When there is no partition, you can have both; CAP says nothing about latency.
- "C" here means linearizability, not the "C" in ACID.
- Labels such as "we are AP" describe one operation or data store under partition, not a whole system.
تفاصيل المخطط المبدئي
عرض عملي
a diagram of two replicas with a broken link; a write to replica 1; a read on replica 2 either errors (CP) or returns the old value (AP).
اختبر فهمك
Does CAP say a CP system is slow when the network is healthy?
أظهر الإجابة
No; it only describes the choice during a partition.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.