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

عرض عملي: الاستدعاء نفسه في REST وgRPC

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

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

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

في هذا الدرس

implement inventory's stock check twice and compare. Prepares MID-024-LAB1.

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

خطوة بخطوة

  1. Implement GET /stock/{sku} in inventory with Spring MVC and call it from orders.
  2. Write inventory.proto; generate stubs with the build plugin.
  3. Implement the gRPC service and call it from orders with a deadline of 500 ms.
  4. Compare payload sizes and latency with a quick benchmark (note it is indicative only).
  5. Planned mistake: renumber a proto field and show the old client reading garbage; restore the number and add a new field instead.
  6. Stop inventory and compare how each client reports the failure.

التطبيق

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

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

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

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