{"id":122110,"date":"2026-11-04T07:53:46","date_gmt":"2026-11-03T23:53:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/122110.html"},"modified":"2026-11-04T07:53:46","modified_gmt":"2026-11-03T23:53:46","slug":"c-%e5%b7%a5%e7%a8%8b%e7%bb%84%e4%bb%b6%e4%b8%8e%e5%9f%ba%e7%a1%80%e8%ae%be%e6%96%bd%ef%bc%88%e4%b8%89%ef%bc%89%e8%af%a6%e8%a7%a3rpc%e6%9c%8d%e5%8a%a1%e7%9a%84%e6%a6%82%e5%bf%b5%e4%b8%8e%e5%ae%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/122110.html","title":{"rendered":"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235342-6aea740610421.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"200\" \/><\/p>\n<p> <b> \u25c6 \u535a\u4e3b\u540d\u79f0&#xff1a; \u5c0f\u6b64\u65b9-CSDN\u535a\u5ba2 <\/b><\/p>\n<p>   \u5927\u5bb6\u597d&#xff0c;\u6b22\u8fce\u6765\u5230\u5c0f\u6b64\u65b9\u7684\u535a\u5ba2\u3002 <\/p>\n<p>    \u2b50\ufe0f\u7f51\u7edc\u7cfb\u5217\u4e2a\u4eba\u4e13\u680f&#xff1a;<br \/>\n    \u3010\u63d2\u66f2\u3011C&#043;&#043; \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd  <\/p>\n<p>    \u2b50\ufe0f\u6b64\u65b9\u7684GitHub&#xff1a;<br \/>\n    github_\u6b64\u65b9  <\/p>\n<p>   \u2b50\ufe0f<br \/>\n   <b>\u6211\u4eec\u601d\u8003 (Rethink) \u00b7 \u6211\u4eec\u91cd\u5efa (Rebuild) \u00b7 \u6211\u4eec\u8bb0\u5f55 (Record) <\/b><\/p>\n<hr \/>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u6982\u8981&amp;\u5e8f\u8ad6<\/li>\n<li>\u4e00\u3001\u6982\u5ff5<\/li>\n<li>\n<ul>\n<li>1.1 RPC\u521d\u63a2\u4e0e\u4e3b\u6d41\u6846\u67b6\u6a2a\u5411\u5bf9\u6bd4<\/li>\n<li>1.2 \u6df1\u5165 brpc&#xff1a;\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b<\/li>\n<li>1.3 \u4e00\u4e2a\u7aef\u53e3\u652f\u6301\u591a\u534f\u8bae\u7684\u670d\u52a1<\/li>\n<li>1.4 \u7075\u6d3b\u7684\u540c\u6b65\u4e0e\u5f02\u6b65\u5904\u7406\u673a\u5236<\/li>\n<li>1.5 \u5f3a\u5927\u7684\u8c03\u8bd5\u4e0e\u5185\u7f6e\u7ec4\u4ef6<\/li>\n<li>1.6 \u5b89\u88c5<\/li>\n<li>\n<ul>\n<li>1.6.1\u5b89\u88c5\u4f9d\u8d56<\/li>\n<li>1.6.2 \u5b89\u88c5 brpc<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u56fe\u7247\u89e3\u6790&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7684\u642d\u5efa\u8fc7\u7a0b<\/li>\n<\/ul>\n<hr \/>\n<h2>\u6982\u8981&amp;\u5e8f\u8ad6<\/h2>\n<p>\u2003\u2003Hello\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u6b64\u65b9\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790RPC\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\u6982\u5ff5&#xff0c;\u6a2a\u5411\u5bf9\u6bd4gRPC\u3001brpc\u7b49\u4e3b\u6d41\u6846\u67b6\u4f18\u52a3\u52bf\u3002\u91cd\u70b9\u5256\u6790\u767e\u5ea6\u5de5\u4e1a\u7ea7\u6846\u67b6brpc&#xff0c;\u8bb2\u89e3\u5176\u5355\u7aef\u53e3\u591a\u534f\u8bae\u3001\u9ad8\u5e76\u53d1\u5f02\u6b65\u673a\u5236\u4e0e\u5185\u7f6e\u8c03\u8bd5\u80fd\u529b\u3002\u63d0\u4f9b\u5b8c\u6574\u7684Linux\u4f9d\u8d56\u5b89\u88c5\u4e0e\u6e90\u7801\u7f16\u8bd1\u6307\u5357&#xff0c;\u4e0e\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u642d\u5efa\u8fc7\u7a0b\u3002<\/p>\n<h2>\u4e00\u3001\u6982\u5ff5<\/h2>\n<h3>1.1 RPC\u521d\u63a2\u4e0e\u4e3b\u6d41\u6846\u67b6\u6a2a\u5411\u5bf9\u6bd4<\/h3>\n<p>\u2003\u2003RPC&#xff08;Remote Procedure Call&#xff09;\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528&#xff0c;\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u5ba2\u6237\u7aef\u5728\u4e0d\u77e5\u9053\u8c03\u7528\u7ec6\u8282\u7684\u60c5\u51b5\u4e0b&#xff0c;\u8c03\u7528\u8fdc\u7a0b\u8ba1\u7b97\u673a\u4e0a\u7684\u67d0\u4e2a\u529f\u80fd\u5c31\u50cf\u8c03\u7528\u672c\u5730\u529f\u80fd\u4e00\u6837&#xff0c;\u5176\u4e3b\u8981\u76ee\u6807\u5c31\u662f\u8ba9\u6784\u5efa\u5206\u5e03\u5f0f\u8ba1\u7b97&#xff08;\u5e94\u7528&#xff09;\u66f4\u5bb9\u6613&#xff0c;\u5728\u63d0\u4f9b\u5f3a\u5927\u7684\u8fdc\u7a0b\u8c03\u7528\u80fd\u529b\u65f6\u4e0d\u635f\u5931\u672c\u5730\u8c03\u7528\u7684\u8bed\u4e49\u7b80\u6d01\u6027\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235342-6aea740684865.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u76ee\u524d\u4e3b\u6d41 RPC \u6846\u67b6\u7684\u7279\u6027\u5bf9\u6bd4\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u6846\u67b6\u5f00\u53d1\u8005\u8bed\u8a00\u652f\u6301\u5e8f\u5217\u5316http\u534f\u8bae\u6587\u6863\u7f16\u8bd1\u95ee\u9898(ubuntu 22.04)\u670d\u52a1\u7aef\u63a8\u9001\u5f02\u6b65\u8c03\u7528\u6d41\u5f0f\u4f20\u8f93(\u5927\u5757\u6570\u636e\u4f20\u8f93)\u6613\u7528\u6027<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">grpc<\/td>\n<td align=\"left\">google<\/td>\n<td align=\"left\">C&#043;&#043;\u3001Java\u3001Python\u3001Go<\/td>\n<td align=\"left\">pb<\/td>\n<td align=\"left\">\u652f\u6301<\/td>\n<td align=\"left\">\u6587\u6863\u8f83\u4e3a\u5b8c\u5584&#xff0c;\u6ca1\u6709\u4e2d\u6587\u6587\u6863<\/td>\n<td align=\"left\">\u4e3b\u8981\u662f\u4e0b\u8f7dsubmodule\u7684\u95ee\u9898&#xff0c;\u6ca1\u6709vpn<\/td>\n<td align=\"left\">\u4e0d\u652f\u6301<\/td>\n<td align=\"left\">1.\u5f02\u6b65\u5ba2\u6237\u7aef\u9700\u8981\u7528\u6237\u81ea\u5df1\u521b\u5efa\u6d88\u8d39\u7ebf\u7a0b&#xff0c;\u4f7f\u7528\u8d77\u6765\u8f83\u4e3a\u9ebb\u70e62.\u652f\u6301\u5f02\u6b65\u670d\u52a1\u5668<\/td>\n<td align=\"left\">\u652f\u6301&#xff08;\u63a5\u53e3\u7b80\u5355\u6613\u7528&#xff09;<\/td>\n<td align=\"left\">1.\u7b80\u5355\u6613\u75282.\u652f\u6301\u8de8\u8bed\u8a00\u3001\u8de8\u5e73\u53f0<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">brpc<\/td>\n<td align=\"left\">baidu<\/td>\n<td align=\"left\">C&#043;&#043;<\/td>\n<td align=\"left\">pb<\/td>\n<td align=\"left\">\u652f\u6301<\/td>\n<td align=\"left\">\u6587\u6863\u8f83\u4e3a\u5b8c\u5584&#xff0c;\u6709\u4e2d\u6587\u6587\u6863<\/td>\n<td align=\"left\">\u7f16\u8bd1\u57fa\u672c\u6ca1\u6709\u95ee\u9898<\/td>\n<td align=\"left\">\u652f\u6301&#xff0c;\u4f46\u662f\u652f\u6301\u7684\u4e0d\u597d&#xff0c;\u662f\u901a\u8fc7\u4e00\u6b21\u957f\u7684RPC\u8c03\u7528\u5b9e\u73b0\u7684<\/td>\n<td align=\"left\">1.\u901a\u8fc7\u56de\u8c03\u51fd\u6570\u652f\u6301\u5ba2\u6237\u7aef\u5f02\u6b65\u8c03\u7528<\/td>\n<td align=\"left\">\u652f\u6301(\u63a5\u53e3\u7a0d\u5fae\u6bd4\u539f\u751f\u590d\u6742)<\/td>\n<td align=\"left\">1.\u63d0\u4f9b\u7b80\u6d01\u7684API\u548c\u53cb\u597d\u7684\u4f7f\u7528\u6587\u6863&#xff0c;\u6613\u4e8e\u4e0a\u624b2.\u5728sofa-prpc\u57fa\u7840\u4e0a\u52a0\u4e86\u4e00\u4e9b\u5c01\u88c5&#xff0c;\u6bd4\u5982\u8d44\u6e90\u7ba1\u7406\u7b49&#xff0c;\u66f4\u6613\u7528<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">srpc<\/td>\n<td align=\"left\">sogou<\/td>\n<td align=\"left\">C&#043;&#043;<\/td>\n<td align=\"left\">pb\u3001Thrift<\/td>\n<td align=\"left\">\u652f\u6301<\/td>\n<td align=\"left\">\u6587\u6863\u7565\u663e\u7b80\u5355,\u6ca1\u6709\u72ec\u7acb\u7f51\u7ad9\u3001\u90fd\u6258\u7ba1\u5728github<\/td>\n<td align=\"left\">\u7f16\u8bd1\u57fa\u672c\u6ca1\u6709\u95ee\u9898<\/td>\n<td align=\"left\">\u4e0d\u652f\u6301<\/td>\n<td align=\"left\">1.\u652f\u6301\u5f02\u6b65\u5ba2\u6237\u7aef2.\u901a\u8fc7workflow\u652f\u6301\u5f02\u6b65\u670d\u52a1\u5668<\/td>\n<td align=\"left\">\u4e0d\u652f\u6301<\/td>\n<td align=\"left\">\u4e13\u6ce8\u4e8e\u5f02\u6b65\u7f16\u7a0b&#xff0c;\u6027\u80fd\u8f83\u9ad8&#xff0c;\u7528\u8d77\u6765\u66f4\u590d\u6742\u4e00\u4e9b<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">sofa-pbrpc<\/td>\n<td align=\"left\">baidu<\/td>\n<td align=\"left\">C&#043;&#043;\u3001Java<\/td>\n<td align=\"left\">pb<\/td>\n<td align=\"left\">\u652f\u6301<\/td>\n<td align=\"left\">\u5b98\u65b9\u6587\u6863\u8f83\u5c11<\/td>\n<td align=\"left\">\u7f16\u8bd1\u5b58\u5728\u95ee\u9898\u4f9d\u8d56\u7684\u5e93\u7248\u672c\u90fd\u6bd4\u8f83\u8001<\/td>\n<td align=\"left\">\u4e0d\u652f\u6301<\/td>\n<td align=\"left\">1.\u901a\u8fc7\u56de\u8c03\u51fd\u6570\u652f\u6301\u5ba2\u6237\u7aef\u5f02\u6b65\u8c03\u7528<\/td>\n<td align=\"left\">\u4e0d\u652f\u6301<\/td>\n<td align=\"left\">1.\u8f7b\u91cf\u53162.\u63a5\u53e3\u7b80\u5355&#xff0c;\u5bb9\u6613\u4f7f\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>1.2 \u6df1\u5165 brpc&#xff1a;\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b<\/h3>\n<p>\u2003\u2003brpc \u662f\u7528 C&#043;&#043; \u8bed\u8a00\u7f16\u5199\u7684\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6&#xff0c;\u5e38\u7528\u4e8e\u641c\u7d22\u3001\u5b58\u50a8\u3001\u673a\u5668\u5b66\u4e60\u3001\u5e7f\u544a\u3001\u63a8\u8350\u7b49\u9ad8\u6027\u80fd\u7cfb\u7edf\u3002\u90a3\u4e48&#xff0c;\u5b83\u5230\u5e95\u80fd\u7528\u6765\u5e72\u4ec0\u4e48&#xff1f;\u5b83\u7684\u6838\u5fc3\u80fd\u529b\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u3002<\/p>\n<h3>1.3 \u4e00\u4e2a\u7aef\u53e3\u652f\u6301\u591a\u534f\u8bae\u7684\u670d\u52a1<\/h3>\n<p>\u2003\u2003\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b83\u642d\u5efa\u80fd\u5728\u4e00\u4e2a\u7aef\u53e3\u652f\u6301\u591a\u534f\u8bae\u7684\u670d\u52a1&#xff0c;\u6216\u8bbf\u95ee\u5404\u79cd\u670d\u52a1\u3002\u8fd9\u6781\u5927\u7b80\u5316\u4e86\u5fae\u670d\u52a1\u7f51\u5173\u548c\u6df7\u5408\u67b6\u6784\u7684\u90e8\u7f72\u3002<\/p>\n<li>restful http\/https, h2\/gRPC&#xff1a;\u4f7f\u7528 brpc \u7684 http \u5b9e\u73b0\u6bd4 libcurl \u65b9\u4fbf\u591a\u4e86\u3002\u5b83\u8fd8\u652f\u6301\u4ece\u5176\u4ed6\u8bed\u8a00\u901a\u8fc7 HTTP\/h2&#043;json \u8bbf\u95ee\u57fa\u4e8e protobuf \u7684\u534f\u8bae\u3002<\/li>\n<li>redis \u548c memcached&#xff1a;\u652f\u6301\u7ebf\u7a0b\u5b89\u5168&#xff0c;\u6bd4\u5b98\u65b9 client \u66f4\u65b9\u4fbf\u3002<\/li>\n<li>rtmp\/flv\/hls&#xff1a;\u53ef\u7528\u4e8e\u642d\u5efa\u6d41\u5a92\u4f53\u670d\u52a1\u3002<\/li>\n<li>thrift&#xff1a;\u652f\u6301 thrift&#xff0c;\u7ebf\u7a0b\u5b89\u5168&#xff0c;\u6bd4\u5b98\u65b9 client \u66f4\u65b9\u4fbf\u3002<\/li>\n<li>\u767e\u5ea6\u5185\u90e8\u534f\u8bae&#xff1a;\u652f\u6301\u5404\u79cd\u767e\u5ea6\u5185\u4f7f\u7528\u7684\u534f\u8bae&#xff0c;\u5982 baidu_std\u3001streaming_rpc\u3001hulu_pbrpc\u3001sofa_pbrpc\u3001nova_pbrpc\u3001public_pbrpc\u3001ubrpc \u548c\u4f7f\u7528 nshead \u7684\u5404\u79cd\u534f\u8bae\u3002<\/li>\n<li>\u5de5\u4e1a\u7ea7 RAFT \u7b97\u6cd5&#xff1a;\u57fa\u4e8e\u5de5\u4e1a\u7ea7\u7684 RAFT \u7b97\u6cd5\u5b9e\u73b0\u642d\u5efa\u9ad8\u53ef\u7528\u5206\u5e03\u5f0f\u7cfb\u7edf&#xff0c;\u5df2\u5728 braft \u5f00\u6e90\u3002<\/li>\n<h3>1.4 \u7075\u6d3b\u7684\u540c\u6b65\u4e0e\u5f02\u6b65\u5904\u7406\u673a\u5236<\/h3>\n<p>\u2003\u2003\u5728\u7f51\u7edc IO \u5c42\u9762&#xff0c;brpc \u63d0\u4f9b\u4e86\u6781\u5176\u7075\u6d3b\u7684\u8c03\u7528\u6a21\u5f0f\u3002<\/p>\n<li>Server \u7aef&#xff1a;\u80fd\u540c\u6b65\u6216\u5f02\u6b65\u5904\u7406\u8bf7\u6c42\u3002<\/li>\n<li>Client \u7aef&#xff1a;\u652f\u6301\u540c\u6b65\u3001\u5f02\u6b65\u3001\u534a\u540c\u6b65&#xff0c;\u6216\u4f7f\u7528\u7ec4\u5408 channels \u7b80\u5316\u590d\u6742\u7684\u5206\u5e93\u6216\u5e76\u53d1\u8bbf\u95ee\u3002<\/li>\n<h3>1.5 \u5f3a\u5927\u7684\u8c03\u8bd5\u4e0e\u5185\u7f6e\u7ec4\u4ef6<\/h3>\n<p>\u2003\u2003\u5bf9\u4e8e\u5f00\u53d1\u548c\u8fd0\u7ef4\u6765\u8bf4&#xff0c;brpc \u63d0\u4f9b\u4e86\u6781\u4f73\u7684\u4fbf\u5229\u6027&#xff1a;<\/p>\n<li>\u5185\u7f6e\u670d\u52a1\u8c03\u8bd5&#xff1a;\u53ef\u4ee5\u901a\u8fc7 http \u754c\u9762\u8c03\u8bd5\u670d\u52a1&#xff0c;\u4f7f\u7528 cpu, heap, contention profilers\u3002<\/li>\n<li>\u534f\u8bae\u5feb\u901f\u63a5\u5165&#xff1a;\u628a\u4f60\u7ec4\u7ec7\u4e2d\u4f7f\u7528\u7684\u534f\u8bae\u5feb\u901f\u5730\u52a0\u5165 brpc&#xff0c;\u6216\u5b9a\u5236\u5404\u7c7b\u7ec4\u4ef6&#xff0c;\u5305\u62ec\u547d\u540d\u670d\u52a1 (dns, zk, etcd)&#xff0c;\u8d1f\u8f7d\u5747\u8861 (rr, random, consistent hashing)\u3002<\/li>\n<li>\u6027\u80fd\u4f18\u52bf&#xff1a;\u80fd\u591f\u83b7\u5f97\u66f4\u597d\u7684\u5ef6\u65f6\u548c\u541e\u5410\u3002<\/li>\n<h3>1.6 \u5b89\u88c5<\/h3>\n<h4>1.6.1\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<p>\u2003\u2003\u5728\u7f16\u8bd1 brpc \u4e4b\u524d&#xff0c;\u9700\u8981\u5148\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u73af\u5883&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> <span class=\"token function\">git<\/span> g&#043;&#043; <span class=\"token function\">make<\/span> libssl-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev<\/p>\n<h4>1.6.2 \u5b89\u88c5 brpc<\/h4>\n<p>\u2003\u2003\u4f9d\u8d56\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u62c9\u53d6\u6e90\u7801\u5e76\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/apache\/brpc.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> brpc\/<br \/>\n<span class=\"token function\">mkdir<\/span> build <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">cd<\/span> build<br \/>\ncmake <span class=\"token parameter variable\">-DCMAKE_INSTALL_PREFIX<\/span><span class=\"token operator\">&#061;<\/span>\/usr <span class=\"token punctuation\">..<\/span> <span class=\"token operator\">&amp;&amp;<\/span> cmake <span class=\"token parameter variable\">&#8211;build<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token parameter variable\">-j6<\/span><br \/>\n<span class=\"token function\">make<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">make<\/span> <span class=\"token function\">install<\/span><\/p>\n<h2>\u4e8c\u3001\u56fe\u7247\u89e3\u6790&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7684\u642d\u5efa\u8fc7\u7a0b<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235342-6aea7406b6263.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235343-6aea7407a0e9a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235344-6aea74083cc86.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235344-6aea7408b85cd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p> <b> \u597d\u7684\u672c\u6587\u5185\u5bb9\u5230\u6b64\u7ed3\u675f&#xff0c;\u6211\u662f\u6b64\u65b9&#xff0c;\u6211\u4eec\u4e0b\u671f\u518d\u89c1\u3002 <\/b> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25c6 \u535a\u4e3b\u540d\u79f0&#xff1a; \u5c0f\u6b64\u65b9-CSDN\u535a\u5ba2 \u5927\u5bb6\u597d&#xff0c;\u6b22\u8fce\u6765\u5230\u5c0f\u6b64\u65b9\u7684\u535a\u5ba2\u3002 \u2b50\ufe0f\u7f51\u7edc\u7cfb\u5217\u4e2a\u4eba\u4e13\u680f&#xff1a; \u3010\u63d2\u66f2\u3011C \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd  \u2b50\ufe0f\u6b64\u65b9\u7684GitHub&#xff1a; github_\u6b64\u65b9  \u2b50\ufe0f\u6211\u4eec\u601d\u8003 (Rethink) \u00b7 \u6211\u4eec\u91cd\u5efa (Rebuild) \u00b7 \u6211\u4eec\u8bb0\u5f55 (Record) \u6587\u7ae0\u76ee\u5f55\u6982\u8981&amp;\u5e8f\u8ad6\u4e00\u3001\u6982\u5ff51.1 RPC\u521d\u63a2\u4e0e\u4e3b\u6d41\u6846\u67b6\u6a2a\u5411\u5bf9\u6bd41.2 \u6df1\u5165 brpc&#xff1a;\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b1.3 \u4e00\u4e2a\u7aef\u53e3\u652f<\/p>\n","protected":false},"author":2,"featured_media":122104,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11820,55,1380,43],"topic":[],"class_list":["post-122110","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-atomgit","tag-c","tag-rpc","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/122110.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u25c6 \u535a\u4e3b\u540d\u79f0&#xff1a; \u5c0f\u6b64\u65b9-CSDN\u535a\u5ba2 \u5927\u5bb6\u597d&#xff0c;\u6b22\u8fce\u6765\u5230\u5c0f\u6b64\u65b9\u7684\u535a\u5ba2\u3002 \u2b50\ufe0f\u7f51\u7edc\u7cfb\u5217\u4e2a\u4eba\u4e13\u680f&#xff1a; \u3010\u63d2\u66f2\u3011C \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd \u2b50\ufe0f\u6b64\u65b9\u7684GitHub&#xff1a; github_\u6b64\u65b9 \u2b50\ufe0f\u6211\u4eec\u601d\u8003 (Rethink) \u00b7 \u6211\u4eec\u91cd\u5efa (Rebuild) \u00b7 \u6211\u4eec\u8bb0\u5f55 (Record) \u6587\u7ae0\u76ee\u5f55\u6982\u8981&amp;\u5e8f\u8ad6\u4e00\u3001\u6982\u5ff51.1 RPC\u521d\u63a2\u4e0e\u4e3b\u6d41\u6846\u67b6\u6a2a\u5411\u5bf9\u6bd41.2 \u6df1\u5165 brpc&#xff1a;\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b1.3 \u4e00\u4e2a\u7aef\u53e3\u652f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/122110.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-03T23:53:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235342-6aea740610421.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122110.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/122110.html\",\"name\":\"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-03T23:53:46+00:00\",\"dateModified\":\"2026-11-03T23:53:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/122110.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/122110.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122110.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/122110.html","og_locale":"zh_CN","og_type":"article","og_title":"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u25c6 \u535a\u4e3b\u540d\u79f0&#xff1a; \u5c0f\u6b64\u65b9-CSDN\u535a\u5ba2 \u5927\u5bb6\u597d&#xff0c;\u6b22\u8fce\u6765\u5230\u5c0f\u6b64\u65b9\u7684\u535a\u5ba2\u3002 \u2b50\ufe0f\u7f51\u7edc\u7cfb\u5217\u4e2a\u4eba\u4e13\u680f&#xff1a; \u3010\u63d2\u66f2\u3011C \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd \u2b50\ufe0f\u6b64\u65b9\u7684GitHub&#xff1a; github_\u6b64\u65b9 \u2b50\ufe0f\u6211\u4eec\u601d\u8003 (Rethink) \u00b7 \u6211\u4eec\u91cd\u5efa (Rebuild) \u00b7 \u6211\u4eec\u8bb0\u5f55 (Record) \u6587\u7ae0\u76ee\u5f55\u6982\u8981&amp;\u5e8f\u8ad6\u4e00\u3001\u6982\u5ff51.1 RPC\u521d\u63a2\u4e0e\u4e3b\u6d41\u6846\u67b6\u6a2a\u5411\u5bf9\u6bd41.2 \u6df1\u5165 brpc&#xff1a;\u5de5\u4e1a\u7ea7 RPC \u6846\u67b6\u7684\u6838\u5fc3\u80fd\u529b1.3 \u4e00\u4e2a\u7aef\u53e3\u652f","og_url":"https:\/\/www.wsisp.com\/helps\/122110.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-03T23:53:46+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103235342-6aea740610421.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/122110.html","url":"https:\/\/www.wsisp.com\/helps\/122110.html","name":"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-03T23:53:46+00:00","dateModified":"2026-11-03T23:53:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/122110.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/122110.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/122110.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"C++ \u5de5\u7a0b\u7ec4\u4ef6\u4e0e\u57fa\u7840\u8bbe\u65bd\uff08\u4e09\uff09\u8be6\u89e3RPC\u670d\u52a1\u7684\u6982\u5ff5\u4e0e\u5b89\u88c5\uff0c\u56fe\u7247\u4ecb\u7ecdBrpc\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u642d\u5efa\u8fc7\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=122110"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122110\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/122104"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=122110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=122110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=122110"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=122110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}