محاكاة حركة المرور دون التأثير في المستخدمين
اعكس الطلبات الحية إلى نموذج مرشح دون إظهار النتيجة.
محاكاة حركة المرور دون التأثير في المستخدمين درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
What Shadow Mode Is
In shadow mode, a candidate model sees real production requests but its answers are never shown to users. It watches from the sidelines. 👀
Mirror, Do Not Serve
Every live request is mirrored to the shadow model. The champion still produces the response users actually receive.
Zero User Impact
Because shadow output is discarded, even a wildly broken candidate cannot hurt a single user. That is the whole appeal of shadow testing.
Test on Real Data
Shadow mode feeds the candidate the exact production traffic it will face, messy edge cases included, which offline test sets often miss.
How the Mirror Works
Send the same input to both models, return only the champion, and store the shadow result for later. The user waits on the champion alone.
def handle(request):
primary = champion.predict(request)
shadow = candidate.predict(request)
store_shadow(request, primary, shadow)
return primaryRun Shadow Off the Hot Path
Call the shadow model asynchronously so it never adds to the latency users feel. A slow shadow must not slow real responses.
Compare the Two Outputs
Later, line up shadow predictions against the champion to spot disagreements. Big gaps flag where the candidate behaves differently.
Catch Crashes Early
Shadow runs reveal practical problems like timeouts, memory spikes, or schema mismatches under real load, all before any user is exposed.
The Ground-Truth Gap
Shadow shows what the model predicts, not whether it was right. You still need labels later to judge true accuracy.
Mind the Side Effects
If your model triggers writes, emails, or charges, shadow calls must skip those actions. Otherwise a silent test causes very loud real effects.
Shadow Then Canary
Shadow proves the candidate runs safely; a canary then proves it serves well. Many teams shadow first, then canary with real users.
Quick Check
What truly defines shadow deployment?
Recap
Shadow mode mirrors live traffic to a candidate, discards its answers, and runs it off the hot path, so you test on real data with zero user risk. ✅
الأسئلة الشائعة
هل درس «محاكاة حركة المرور دون التأثير في المستخدمين» مجاني؟
نعم — نص درس «محاكاة حركة المرور دون التأثير في المستخدمين» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.
ماذا ستتعلم في «محاكاة حركة المرور دون التأثير في المستخدمين»؟
اعكس الطلبات الحية إلى نموذج مرشح دون إظهار النتيجة. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟
لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.
كم من الوقت يستغرق درس «محاكاة حركة المرور دون التأثير في المستخدمين»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟
نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- عمليات طرح Canary: ابدأ بعدد قليل
- محاكاة حركة المرور دون التأثير في المستخدمين
- تحديد معايير التراجع التلقائي
- التسليم التدريجي باستخدام Argo Rollouts