<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Brpc - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/brpc/</link><description>Brpc - 标签 - 研发日志 · 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>Wed, 09 Jul 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/brpc/" rel="self" type="application/rss+xml"/><item><title>trpc/brpc/grpc协议设计</title><link>https://rd163.visword.com/posts/proto_disign_for_trpc_grpc_brpc/</link><pubDate>Wed, 09 Jul 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/proto_disign_for_trpc_grpc_brpc/</guid><description><![CDATA[<h2 id="trpc" class="headerLink">
    <a href="#trpc" class="header-mark"></a>trpc</h2><ul>
<li><a href="https://github.com/trpc-group/trpc/blob/main/docs/zh/trpc_protocol_design.md" target="_blank" rel="noopener noreferrer">tRPC协议设计</a></li>
<li><a href="https://github.com/trpc-group/trpc/blob/main/trpc/trpc.proto" target="_blank" rel="noopener noreferrer">trpc.proto</a></li>
</ul>
<h2 id="grpc" class="headerLink">
    <a href="#grpc" class="header-mark"></a>grpc</h2><p>四种通信模式实现​​:</p>
<p>​- ​Unary RPC​​：单一请求对应单一响应（类似传统 HTTP 请求）。
​​- Server Streaming​​：服务端通过同一流发送多个响应。
​​- Client Streaming​​：客户端通过同一流发送多个请求。
​​- Bidirectional Streaming​​：全双工通信，双方可异步发送消息（基于 HTTP/2 流控机制）。</p>]]></description></item></channel></rss>