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

ما لا يجب وضعه في البوابة

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

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

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

في هذا الدرس

keep the gateway thin.

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

  • No business rules (pricing, discounts, order validation); they belong in services.
  • No data aggregation that grows into a service of its own (see BFF).
  • No shared database access, and no per-service special cases that need constant redeploys.
  • Keep it stateless and fast; every request pays its cost.
  • A gateway that every team must change for each feature becomes a new monolith and a bottleneck.
تفاصيل المخطط المبدئي

عرض عملي

ConcernGatewayService
TLS, CORS, token validationyesno
Rate limits, correlation idyesno
Price calculationnoyes
Order ownership checknoyes

اختبر فهمك

Where does "customer may only see their own orders" belong?

أظهر الإجابة

In the orders service.

التطبيق

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

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

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

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