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

العثور على الخدمات

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

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

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

في هذا الدرس

explain why hard-coded addresses fail and the two discovery styles.

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

  • Instances come and go (scaling, deploys, crashes); their IPs change.
  • Client-side discovery: the client asks a registry for instances and picks one itself.
  • Server-side discovery: the client calls a stable name or load balancer, which picks an instance.
  • Both need to know which instances are healthy.
  • Prefer what the platform already provides; add a registry only if you need one.
تفاصيل المخطط المبدئي

عرض عملي

StyleWho picks the instanceExample
Client-sidethe callerEureka, Consul + client library
Server-sidea proxy or platformCompose DNS, Kubernetes Service

اختبر فهمك

Why is http://10.0.0.17:8080 a poor service address?

أظهر الإجابة

The instance may move, die, or be replaced.

التطبيق

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

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

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

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