عرض عملي: توجيه الإشعارات باستخدام topic exchange
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
build the notification flow. Prepares MID-027-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Start RabbitMQ with Docker; open the management UI.
- Declare topic exchange
notificationsand queuesemail(notify.email.#) andsms(notify.sms.#). - Publish
notify.email.orderandnotify.sms.shippedfrom Shop; watch each queue receive its message. - Add a DLX and a poison message that throws; with auto requeue enabled, show the endless loop.
- Planned mistake: leave requeue on. Fix with
nackwithout requeue, route to the DLQ, and show later messages still flow. - Add a TTL retry queue and show a message returning after the delay.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.