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

Write-behind

  • الدرس 3 من 5
  • Mid-level
في هذا الدرس 4 موضوعات

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

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

في هذا الدرس

understand why write-behind is risky and when it is acceptable.

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

  • Write-behind: write to the cache, return immediately, persist to the database later in batches.
  • Gains: very fast writes, batching, absorbs spikes.
  • Risk: if the cache or node dies before the flush, the writes are lost; ordering and failures become hard.
  • Acceptable only for data you can lose or rebuild: view counters, last-seen timestamps, analytics. Never for orders or payments.
تفاصيل المخطط المبدئي

عرض عملي

timeline: write at 10:00:00 acknowledged, flush at 10:00:05, crash at 10:00:03: write lost.

اختبر فهمك

Why not use write-behind for orders?

أظهر الإجابة

An acknowledged order could be lost before it reaches the database.

التطبيق

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

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

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

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