<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Service-Discovery on 静夜思己过 - 猿资猿味 - 高波的博客</title><link>https://gaoboy.com/tags/service-discovery/</link><description>Recent content in Service-Discovery on 静夜思己过 - 猿资猿味 - 高波的博客</description><generator>Hugo</generator><language>zh-cn</language><copyright>&lt;a rel="license noopener" href="https://beian.miit.gov.cn/" target="_blank">浙ICP备14043338号-2&lt;/a>~&lt;a rel="license noopener" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802003111" target="_blank">浙公网安备 33010802003111号&lt;/a></copyright><lastBuildDate>Thu, 22 Nov 2018 17:05:59 +0800</lastBuildDate><atom:link href="https://gaoboy.com/tags/service-discovery/index.xml" rel="self" type="application/rss+xml"/><item><title>服务发现</title><link>https://gaoboy.com/post/service-discovery-in-a-microservices-architecture/</link><pubDate>Thu, 22 Nov 2018 17:05:59 +0800</pubDate><guid>https://gaoboy.com/post/service-discovery-in-a-microservices-architecture/</guid><description>&lt;p>©️&lt;a href="https://www.nginx.com/blog/service-discovery-in-a-microservices-architecture/">Service Discovery in a Microservices Architecture&lt;/a>&lt;/p>
&lt;h1 id="为何使用服务发现">为何使用服务发现&lt;/h1>
&lt;p>我们假设您正在编写某些代码，这些代码调用了有 REST API 或 Thrift API 的服务。为了发送一个请求，您的代码需要知道服务实例的网络位置（ IP 地址与端口）。在运行于物理硬件上的传统应用中，服务实例的网络位置是相对静态的。例如，您的代码可以从偶尔更新的配置文件中读取网络位置。&lt;/p></description></item></channel></rss>