<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>服务寻址 - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/%E6%9C%8D%E5%8A%A1%E5%AF%BB%E5%9D%80/</link><description>服务寻址 - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Sun, 01 Jun 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/%E6%9C%8D%E5%8A%A1%E5%AF%BB%E5%9D%80/" rel="self" type="application/rss+xml"/><item><title>trpc微服务寻址方案设计</title><link>https://rd163.visword.com/posts/trpc-service-addressing-scheme-design/</link><pubDate>Sun, 01 Jun 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/trpc-service-addressing-scheme-design/</guid><description><![CDATA[<h2 id="服务命名" class="headerLink">
    <a href="#%e6%9c%8d%e5%8a%a1%e5%91%bd%e5%90%8d" class="header-mark"></a>服务命名</h2><p>tRPC 在服务命名上定义了以下 3 个维度信息：</p>
<ul>
<li><strong>app 名（应用名）</strong>：表示某个业务系统的名称，用于标识某个业务下不同服务模块的一个集合。</li>
<li><strong>server 名（模块名）</strong>：表示具体服务模块的名称，一般也称为模块的进程名称。</li>
<li><strong>service 名</strong>：表示具体服务提供者的名称，一般使用 proto 文件定义的 Service 名称。</li>
</ul>
<p>其中 <code>app.server</code> 的组合在全局上要具备唯一性。</p>]]></description></item></channel></rss>