عرض عملي: استبدال ملف المخزون الليلي بـ CDC شبه الفوري
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
redesign one interface step by step and prove the benefit with numbers.
تفاصيل المخطط المبدئي
خطوة بخطوة
- State the problem: the nightly ERP stock file means the web shop oversells items sold in stores during the day.
- Quantify: count oversold orders per week and the cost of cancellations, with the business owner.
- Design: capture stock-table changes in the ERP database, publish stock-changed events, and update the platform's stock cache; keep the nightly file as a reconciliation check.
- Planned mistake: publish raw table-row changes as events. Fix: add a translator that emits a business event (StockChanged: item, location, quantity) so consumers do not depend on ERP columns.
- Plan failure modes: lag alarm, replay from the log position, and a fallback to the nightly file.
- Agree success measures with the store-ops lead: oversells down, lag under the agreed seconds, reconciliation differences near zero.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.