Examples
نظرية CAP عند انقطاع الشبكة
The CAP theorem in Arabic, laid out right to left: two copies of a database lose their link, and a read shows what choosing consistency or availability costs.
This video was made with the System design skill.
- 1:05
- System design
- Narrated by Orus
- Arabic
Made from a prompt
اشرح نظرية CAP: ماذا يحدث عند انقطاع الشبكة بين نسختين من قاعدة البيانات؟ Video transcript
نسختان من بياناتك تفقدان الاتصال؛ هل تفضّل رفض القراءة أم إرجاع قيمة قديمة؟
نبدأ بقاعدة أولى قيمتها صفر، ونسخة ثانية تحمل القيمة نفسها. بينهما رابط لنقل التحديثات.
عميلك يكتب عبر الأولى، وعميل آخر يقرأ الثانية. الآن ينقطع الرابط، لكن النسختين تظلان تعملان.
تقبل الأولى كتابة الواحد وتؤكد نجاحها، بينما تبقى الثانية عند الصفر. هل تستطيع ضمان أحدث قيمة؟
لا؛ لذلك يرفض خيار الاتساق قراءة الثانية مؤقتًا. هكذا تحمي أحدث كتابة مكتملة، وتخسر الإتاحة هناك.
أما الإتاحة فتعني استجابة كل نسخة سليمة؛ فتعيد الثانية الصفر، رغم اكتمال كتابة الواحد. تناسب قراءات تتحمل القِدم.
بعد عودة الرابط، تنقل الأولى التحديث إلى الثانية. ولو سمحت بكتابات متعارضة، فستحتاج سياسة لتسويتها.
إذن، العميل يطلب، والنسختان تحفظان البيانات، والرابط يزامنهما. أثناء الانقطاع، تختار اتساق القراءات أو إتاحتها، لا كليهما معًا.
More examples
-
Where the money goes when you buy a $5 coffee A $5 latte split into what it pays for, one hand-drawn picture at a time: ingredients, staff, rent and running costs, the 50¢ left over, and why a quiet day makes every cup carry more rent. 2:14 · English -
Why your stomach gets gassy Where gas comes from, drawn and painted in as it is said: swallowed air, gut bacteria and foods like beans and milk, what normal looks like, what helps, and when to see a doctor. 2:17 · English -
A train’s average speed, then a triangle’s area Two problems on a teacher’s board: the options in a row, every line of working written as it is said, each answer checked before it is drawn. 2:07 · English
Your topic, drawn in about a minute.
Your first 2 videos are free, up to 1 minute each, watermarked. No card required. Full product, every voice and style included.