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

عرض عملي: نقطة دخول واحدة لأربع خدمات

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

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

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

في هذا الدرس

put Shop behind one gateway. Prepares MID-035-LAB1.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Add a gateway service to Compose with routes for catalog, orders, inventory, and payments.
  2. Call GET localhost:8080/api/products and see it routed to catalog; show the headers added.
  3. Add JWT validation; call orders without a token and get 401.
  4. Add the rate-limit filter from MID-034.
  5. Planned mistake: leave the services' ports published in Compose. Call localhost:8083 directly and bypass the gateway. Fix: remove published ports so only the gateway is reachable, and make services validate tokens too.
  6. Verify the correlation id header flows to all services.

التطبيق

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

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

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

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