{"id":2001,"date":"2017-10-13T10:10:16","date_gmt":"2017-10-13T10:10:16","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2001"},"modified":"2017-10-13T10:17:17","modified_gmt":"2017-10-13T02:17:17","slug":"%e9%9d%a0%e6%8e%92%e7%85%a7%e7%89%87%e5%92%8c%e6%8b%8d%e8%a7%86%e9%a2%91%e5%81%9a%e5%88%b0%e6%9c%88%e5%85%a510%e4%b8%87-3","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2001","title":{"rendered":"\u767e\u5ea6 RPC \u6846\u67b6 brpc \u7b80\u4ecb"},"content":{"rendered":"<p>\n\t9 \u6708 14 \u65e5\uff0c\u767e\u5ea6\u6b63\u5f0f\u5728 GitHub \u4e0a\u57fa\u4e8e Apache 2.0 \u534f\u8bae\u5f00\u6e90\u4e86\u5176 RPC \u6846\u67b6 brpc\u3002brpc \u662f\u4e00\u4e2a\u57fa\u4e8e protobuf \u63a5\u53e3\u7684 RPC \u6846\u67b6\uff0c\u5728\u767e\u5ea6\u5185\u90e8\u79f0\u4e3a&ldquo;baidu-rpc&rdquo;\uff0c\u5b83\u56ca\u62ec\u4e86\u767e\u5ea6\u5185\u90e8\u6240\u6709 RPC \u534f\u8bae\uff0c\u5e76\u652f\u6301\u591a\u79cd\u7b2c\u4e09\u65b9\u534f\u8bae\uff0c\u4ece\u76ee\u524d\u7684\u6027\u80fd\u6d4b\u8bd5\u6570\u636e\u6765\u770b\uff0cbrpc \u7684\u6027\u80fd\u9886\u8dd1\u4e8e\u5176\u4ed6\u540c\u7c7b RPC \u4ea7\u54c1\u3002\n<\/p>\n<p>\n\tbrpc \u7c7b\u4f3c\u4e8e\u963f\u91cc\u7684 dubbo\uff0c\u817e\u8baf\u7684 tars\u3002\n<\/p>\n<p>\n\tbrpc \u5f00\u53d1\u4e8e 2014 \u5e74\uff0c\u4e3b\u8981\u4f7f\u7528\u7684\u8bed\u8a00\u662f C++ \u548c Java\uff0c\u662f\u767e\u5ea6\u5185\u90e8\u4f7f\u7528\u6700\u4e3a\u5e7f\u6cdb\u7684 RPC \u6846\u67b6\uff0c\u5b83\u7ecf\u53d7\u4e86\u9ad8\u5e76\u53d1\u9ad8\u8d1f\u8f7d\u7684\u751f\u4ea7\u73af\u5883\u9a8c\u8bc1\uff0c\u5e76\u652f\u6491\u4e86\u767e\u5ea6\u5185\u90e8\u5927\u7ea6 75 \u4e07\u4e2a\u540c\u65f6\u5728\u7ebf\u7684\u5b9e\u4f8b\u3002\n<\/p>\n<p>\n\tbrpc \u5728\u767e\u5ea6\u4e2d\u4f7f\u7528\u7684\u6700\u5e38\u89c1\u7684RPC\u6846\u67b6\uff0c\u62e5\u670960\u4e07\u4e2a\u5b9e\u4f8b\u548c500\u591a\u79cd\u670d\u52a1\uff0c\u5728\u767e\u5ea6\u4e4b\u5185\u79f0\u4e3a&ldquo;baidu-rpc&rdquo;\u3002\n<\/p>\n<h2>\n\t\u4ec0\u4e48\u662fRPC\uff1f<br \/>\n<\/h2>\n<p>\n\t\u4e92\u8054\u7f51\u4e0a\u7684\u5927\u591a\u6570\u673a\u5668\u901a\u8fc7TCP \/ IP\u4e92\u76f8\u901a\u4fe1\u3002\u7136\u800c\uff0c<a href=\"http:\/\/en.wikipedia.org\/wiki\/Internet_protocol_suite\" name=\"TCP\/IP\" target=\"_blank\" title=\"TCP\/IP\">TCP\/IP<\/a>\u53ea\u4fdd\u8bc1\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\uff0c\u6211\u4eec\u9700\u8981\u62bd\u8c61\u66f4\u591a\u7684\u6765\u6784\u5efa\u670d\u52a1\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u6570\u636e\u4f20\u8f93\u7684\u683c\u5f0f\u662f\u4ec0\u4e48\uff1f\u4e0d\u540c\u7684\u673a\u5668\u548c\u7f51\u7edc\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u5b57\u8282\u987a\u5e8f\uff0c\u76f4\u63a5\u53d1\u9001\u5185\u5b58\u4e2d\u7684\u6570\u636e\u662f\u4e0d\u5408\u9002\u7684\u3002\u6570\u636e\u4e2d\u7684\u5b57\u6bb5\u9010\u6e10\u6dfb\u52a0\uff0c\u4fee\u6539\u6216\u5220\u9664\uff0c\u65b0\u670d\u52a1\u5982\u4f55\u4e0e\u8f83\u65e7\u7684\u670d\u52a1\u8fdb\u884c\u4ea4\u6d41\uff1f\n\t<\/li>\n<li>\n\t\tTCP\u8fde\u63a5\u53ef\u4ee5\u91cd\u7528\u4e8e\u591a\u4e2a\u8bf7\u6c42\u4ee5\u51cf\u5c11\u5f00\u9500\u5417\uff1f\u591a\u4e2a\u8bf7\u6c42\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2aTCP\u8fde\u63a5\u540c\u65f6\u53d1\u9001\u5417\uff1f\n\t<\/li>\n<li>\n\t\t\u5982\u4f55\u4e0e\u8bb8\u591a\u673a\u5668\u7684\u96c6\u7fa4\u8c08\u8bdd\uff1f\n\t<\/li>\n<li>\n\t\t\u5f53\u8fde\u63a5\u65ad\u5f00\u65f6\u5e94\u8be5\u600e\u4e48\u529e\uff1f\u5982\u679c\u670d\u52a1\u5668\u6ca1\u6709\u54cd\u5e94\u600e\u4e48\u529e\uff1f\n\t<\/li>\n<\/ul>\n<p>\n\t<a href=\"https:\/\/en.wikipedia.org\/wiki\/Remote_procedure_call\" name=\"Remote procedure call\" target=\"_blank\" title=\"Remote procedure call\">RPC<\/a>\u901a\u8fc7\u5c06\u7f51\u7edc\u901a\u4fe1\u62bd\u8c61\u4e3a&ldquo;\u670d\u52a1\u5668\u4e0a\u7684\u5ba2\u6237\u7aef\u8bbf\u95ee\u529f\u80fd&rdquo;\u6765\u89e3\u51b3\u4e0a\u8ff0\u95ee\u9898\uff1a\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u7b49\u5230\u670d\u52a1\u5668\u63a5\u6536\u5230 &ndash; &gt;\u8fdb\u7a0b &ndash; &gt;\u54cd\u5e94\u8bf7\u6c42\uff0c\u7136\u540e\u6839\u636e\u7ed3\u679c\u6267\u884c\u64cd\u4f5c\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"rpc\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201709\/20\/1505891568_13932.png\" \/>\n<\/p>\n<p>\n\t\u8ba9\u6211\u4eec\u770b\u770b\u95ee\u9898\u5982\u4f55\u89e3\u51b3\u3002\n<\/p>\n<ul>\n<li>\n\t\tRPC\u9700\u8981\u7531<a href=\"https:\/\/github.com\/google\/protobuf\" name=\"protobuf\" target=\"_blank\" title=\"protobuf\">protobuf<\/a>\u5b8c\u6210\u7684\u5e8f\u5217\u5316\u3002\u7528\u6237\u4ee5protobuf :: Message\u7684\u683c\u5f0f\u586b\u5199\u8bf7\u6c42\uff0c\u505aRPC\uff0c\u5e76\u5728protobuf :: Message\u4e2d\u4ece\u54cd\u5e94\u4e2d\u83b7\u53d6\u7ed3\u679c\u3002protobuf\u5177\u6709\u826f\u597d\u7684\u524d\u5411\u548c\u540e\u5411\u517c\u5bb9\u6027\uff0c\u7528\u6237\u53ef\u4ee5\u9010\u6b65\u66f4\u6539\u5b57\u6bb5\u548c\u6784\u5efa\u670d\u52a1\u3002\u5bf9\u4e8ehttp\u670d\u52a1\uff0c<a href=\"http:\/\/www.json.org\/\" name=\"json\" target=\"_blank\" title=\"json\">json<\/a>\u7528\u4e8e\u5e7f\u6cdb\u7684\u5e8f\u5217\u5316\u3002\n\t<\/li>\n<li>\n\t\t\u8fde\u63a5\u7684\u5efa\u7acb\u548c\u91cd\u65b0\u4f7f\u7528\u5bf9\u4e8e\u7528\u6237\u662f\u900f\u660e\u7684\uff0c\u4f46\u662f\u7528\u6237\u53ef\u4ee5\u505a\u51fa\u9009\u62e9\uff0c\u8bf4\u51fa\u4e0d\u540c\u7684\u8fde\u63a5\u7c7b\u578b\uff1a\u77ed\uff0c\u6c60\uff0c\u5355\u3002\n\t<\/li>\n<li>\n\t\t\u673a\u5668\u88ab\u547d\u540d\u670d\u52a1\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884c\u53d1\u73b0\u7684<a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\" name=\"Domain Name System\" target=\"_blank\" title=\"Domain Name System\">DNS<\/a>\uff0c&nbsp;<a href=\"https:\/\/zookeeper.apache.org\/\">ZooKeeper<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/github.com\/coreos\/etcd\">etcd<\/a>\u3002\u5728\u767e\u5ea6\u91cc\u9762\uff0c\u6211\u4eec\u4f7f\u7528BNS\uff08\u767e\u5ea6\u547d\u540d\u670d\u52a1\uff09\u3002brpc\u4e5f\u63d0\u4f9b\u4e86&ldquo;list\uff1a\/\/&rdquo;\u548c&ldquo;file\uff1a\/\/&rdquo;\u3002\u7528\u6237\u6307\u5b9a\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u4e3a\u6240\u6709\u673a\u5668\u7684\u6bcf\u4e2a\u8bf7\u6c42\u9009\u62e9\u4e00\u53f0\u673a\u5668\uff0c\u5305\u62ec\uff1a\u5faa\u73af\uff0c\u968f\u673a\uff0c\u4e00\u81f4\u7684\u54c8\u5e0c\uff08murmurhash3\u6216md5\uff09\u548c\u672c\u5730\u5316\u611f\u77e5\u3002\n\t<\/li>\n<li>\n\t\t\u5f53\u8fde\u63a5\u65ad\u5f00\u65f6\uff0cRPC\u91cd\u8bd5\u3002\u5f53\u670d\u52a1\u5668\u5728\u7ed9\u5b9a\u7684\u65f6\u95f4\u5185\u6ca1\u6709\u54cd\u5e94\u65f6\uff0c\u5ba2\u6237\u7aef\u5931\u8d25\uff0c\u8d85\u65f6\u9519\u8bef\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\t\u54ea\u91cc\u573a\u666f\u53ef\u4ee5\u4f7f\u7528RPC\uff1f<br \/>\n<\/h2>\n<p>\n\t\u51e0\u4e4e\u6240\u6709\u7684\u7f51\u7edc\u901a\u4fe1\u3002\n<\/p>\n<p>\n\tRPC\u65e0\u6cd5\u505a\u5230\u4e00\u5207\uff0c\u5426\u5219\u6211\u4eec\u4e0d\u9700\u8981TCP \/ IP\u5c42\u3002\u4f46\u662f\u5728\u5927\u591a\u6570\u7f51\u7edc\u901a\u4fe1\u4e2d\uff0cRPC\u6ee1\u8db3\u8981\u6c42\u5e76\u9694\u79bb\u5e95\u5c42\u7ec6\u8282\u3002\n<\/p>\n<p>\n\tRPC\u5e38\u89c1\u7591\u95ee\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u6211\u7684\u6570\u636e\u662f\u4e8c\u8fdb\u5236\u7684\uff0c\u4f7f\u7528protobuf\u5f88\u6162\u3002\u9996\u5148\u8fd9\u53ef\u80fd\u662f\u4e00\u4e2a\u9519\u8bef\u7684\u611f\u89c9\uff0c\u4f60\u5fc5\u987b\u7528\u5256\u6790\u5668\u8bc1\u660e\u5b83\uff0c\u7b2c\u4e8c\u4e2a\u8bb8\u591a\u534f\u8bae\u652f\u6301\u643a\u5e26\u4e8c\u8fdb\u5236\u6570\u636e\u4ee5\u53caprotobuf\u8bf7\u6c42\uff0c\u5e76\u7ed5\u8fc7\u5e8f\u5217\u5316\u3002\n\t<\/li>\n<li>\n\t\t\u6211\u6b63\u5728\u53d1\u9001\u4e0d\u80fd\u7531RPC\u5904\u7406\u7684\u6d41\u6570\u636e\u3002\u5b9e\u9645\u4e0a\uff0cRPC\u4e2d\u7684\u8bb8\u591a\u534f\u8bae\u53ef\u4ee5\u5904\u7406\u6d41\u6570\u636e\uff0c\u5305\u62echttp\u4e2d\u7684ProgressiveReader\uff0ch2\u4e2d\u7684\u6d41\uff0c\u6d41rpc\u548c\u4f5c\u4e3a\u4e13\u7528\u6d41\u534f\u8bae\u7684RTMP\u3002\n\t<\/li>\n<li>\n\t\t\u6211\u4e0d\u9700\u8981\u56de\u590d \u6709\u4e86\u4e00\u4e9b\u5f15\u5bfc\uff0c\u6211\u4eec\u77e5\u9053\uff0c\u5728\u60a8\u7684\u573a\u666f\u4e2d\uff0c\u8bf7\u6c42\u53ef\u4ee5\u5728\u4efb\u4f55\u9636\u6bb5\u4e22\u5f03\uff0c\u56e0\u4e3a\u5ba2\u6237\u7aef\u59cb\u7ec8\u4e0d\u4e86\u89e3\u60c5\u51b5\u3002\u4f60\u771f\u7684\u786e\u5b9a\u8fd9\u662f\u53ef\u4ee5\u63a5\u53d7\u7684\u5417\uff1f\u5373\u4f7f\u60a8\u4e0d\u9700\u8981\u56de\u590d\uff0c\u6211\u4eec\u5efa\u8bae\u60a8\u53d1\u56de\u5c0f\u5c3a\u5bf8\u7684\u56de\u590d\uff0c\u8fd9\u4e9b\u56de\u590d\u662f\u4e0d\u592a\u53ef\u80fd\u7684\u6027\u80fd\u74f6\u9888\uff0c\u5e76\u4e14\u5728\u8c03\u8bd5\u590d\u6742\u7684\u9519\u8bef\u65f6\u53ef\u80fd\u662f\u6709\u4ef7\u503c\u7684\u7ebf\u7d22\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\tbrpc \u662f\u4ec0\u4e48\uff1f<br \/>\n<\/h2>\n<p>\n\t\u5728<a href=\"http:\/\/ir.baidu.com\/phoenix.zhtml?c=188488&amp;p=irol-irhome\" name=\"\u767e\u5ea6\" target=\"_blank\" title=\"\u767e\u5ea6\">\u767e\u5ea6<\/a>\u4e2d\u4f7f\u7528\u7684RPC\u6846\u67b6\u904d\u5e03\u767e\u5ea6\uff0c\u5176\u4e2d\u6709600,000\u591a\u4e2a\u5b9e\u4f8b\uff08\u4e0d\u5305\u62ec\u5ba2\u6237\u7aef\uff09\u548c500\u591a\u79cd\u670d\u52a1\uff0c\u5728\u767e\u5ea6\u4e2d\u79f0\u4e3a&ldquo;&nbsp;\u767e\u5ea6rpc&nbsp;&rdquo;\u3002\u73b0\u5728\u53ea\u6709C ++\u5b9e\u73b0\u88ab\u6253\u5f00\u4e86\u3002\n<\/p>\n<p>\n\t\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\uff1a\n<\/p>\n<ul>\n<li>\n\t\t\u6784\u5efa\u53ef\u4ee5\u5728\u591a\u4e2a\u534f\u8bae\uff08<strong>\u5728\u540c\u4e00\u7aef\u53e3<\/strong>\uff09<strong>\u4e0a<\/strong>\u8fdb\u884c\u901a\u8bdd\u6216\u8005\u8bbf\u95ee\u5404\u79cd\u670d\u52a1\u7684\u670d\u52a1\u5668<\/p>\n<p>\n\t\t\t&nbsp;\n\t\t<\/p>\n<ul>\n<li>\n\t\t\t\t\u5b89\u9759\u7684http \/ <b style=\"color:#000;background:#ffff66\">https<\/b>\uff0ch2 \/ h2c\uff08\u517c\u5bb9<a href=\"https:\/\/github.com\/grpc\/grpc\">grpc<\/a>\uff0c\u5c06\u5f88\u5feb\u88ab<a href=\"https:\/\/github.com\/grpc\/grpc\">\u6253\u5f00<\/a>\uff09\u3002\u5728brpc\u4e2d\u4f7f\u7528http\u6bd4<a href=\"https:\/\/curl.haxx.se\/libcurl\/\">libcurl<\/a>\u66f4\u53cb\u597d\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/redis_client.md\">redis<\/a>\u548c<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/memcache_client.md\">memcached<\/a>\uff0c\u7ebf\u7a0b\u5b89\u5168\uff0c\u6bd4\u5b98\u65b9\u5ba2\u6237\u66f4\u53cb\u5584\u548c\u66f4\u597d\n\t\t\t<\/li>\n<li>\n\t\t\t\t<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/src\/brpc\/rtmp.h\">rtmp<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Flash_Video\">flv<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP_Live_Streaming\">hls<\/a>\uff0c\u7528\u4e8e\u6784\u5efa<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/live_streaming.md\">\u5b9e\u65f6\u6d41\u670d\u52a1<\/a>\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\thadoop_rpc\uff08\u5c1a\u672a\u6253\u5f00\uff09\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u901a\u8fc7<a href=\"https:\/\/github.com\/openucx\/ucx\">openucx<\/a>\u652f\u6301<a href=\"https:\/\/en.wikipedia.org\/wiki\/Remote_direct_memory_access\">rdma<\/a>\uff08\u5373\u5c06\u5f00\u653e\uff09\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u767e\u5ea6\u4f7f\u7528\u7684\u5404\u79cd\u534f\u8bae\uff1abaidu_std\uff0c<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/streaming_rpc.md\">streaming_rpc<\/a>\uff0chulu_pbrpc\uff0c<a href=\"https:\/\/github.com\/baidu\/sofa-pbrpc\">sofa_pbrpc<\/a>\uff0cnova_pbrpc\uff0cpublic_pbrpc\uff0cubrpc\u548c\u57fa\u4e8enshead\u7684\u534f\u8bae\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u4f7f\u7528HTTP + json\u8bbf\u95ee\u57fa\u4e8eprotobuf\u7684\u534f\u8bae\uff0c\u53ef\u80fd\u6765\u81ea\u53e6\u4e00\u79cd\u8bed\u8a00\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u4f7f\u7528<a href=\"https:\/\/raft.github.io\/\">RAFT\u534f\u5546\u4e00\u81f4\u7684\u7b97\u6cd5<\/a>\u6784\u5efa\u5206\u5e03\u5f0f\u670d\u52a1\uff08\u5c06\u5728<a href=\"https:\/\/github.com\/brpc\/braft\">\u5feb\u901f\u542f\u52a8<\/a>\u65f6<a href=\"https:\/\/github.com\/brpc\/braft\">\u542f\u7528<\/a>\uff09\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t\u4e30\u5bcc\u7684\u5904\u7406\u6a21\u5f0f<\/p>\n<p>\n\t\t\t&nbsp;\n\t\t<\/p>\n<ul>\n<li>\n\t\t\t\t\u670d\u52a1\u53ef\u4ee5<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/server.md\">\u540c\u6b65<\/a>\u6216<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/server.md#%E5%BC%82%E6%AD%A5service\">\u5f02\u6b65<\/a>\u5904\u7406\u8bf7\u6c42\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/client.md#%E5%90%8C%E6%AD%A5%E8%AE%BF%E9%97%AE\">\u540c\u6b65<\/a>\u6216<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/client.md#%E5%BC%82%E6%AD%A5%E8%AE%BF%E9%97%AE\">\u5f02\u6b65<\/a>\u8bbf\u95ee\u670d\u52a1\uff0c\u751a\u81f3<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/client.md#%E5%8D%8A%E5%90%8C%E6%AD%A5\">\u534a\u540c\u6b65\u8bbf\u95ee<\/a>\u3002\n\t\t\t<\/li>\n<li>\n\t\t\t\t\u4f7f\u7528<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/combo_channel.md\">\u7ec4\u5408\u901a\u9053<\/a>\u4ee5\u58f0\u660e\u65b9\u5f0f\u7b80\u5316\u590d\u6742\u7684\u5ba2\u6237\u7aef\u6a21\u5f0f\uff0c\u5305\u62ec\u5206\u7247\u548c\u5e76\u884c\u8bbf\u95ee\u3002\n\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/builtin_service.md\">\u901a\u8fc7http<\/a>\u8c03\u8bd5\u670d\u52a1\uff0c\u5e76\u8fd0\u884c&nbsp;<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/cpu_profiler.md\">cpu<\/a>\uff0c<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/heap_profiler.md\">\u5806<\/a>\u548c<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/contention_profiler.md\">\u4e89\u7528<\/a>\u5206\u6790\u5668\u3002\n\t<\/li>\n<li>\n\t\t\u83b7\u5f97<a href=\"https:\/\/github.com\/brpc\/brpc#better-latency-and-throughput\">\u66f4\u597d\u7684\u5ef6\u8fdf\u548c\u541e\u5410\u91cf<\/a>\u3002\n\t<\/li>\n<li>\n\t\t\u4f7f\u7528\u60a8\u7ec4\u7ec7\u4e2d\u4f7f\u7528\u7684\u534f\u8bae\u5feb\u901f<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/new_protocol.md\">\u6269\u5c55brpc<\/a>\uff0c\u6216\u81ea\u5b9a\u4e49\u7ec4\u4ef6\uff0c\u5305\u62ec<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/load_balancing.md#%E5%90%8D%E5%AD%97%E6%9C%8D%E5%8A%A1\">\u547d\u540d\u670d\u52a1<\/a>\uff08dns\uff0czk\uff0cetcd\uff09\uff0c<a href=\"https:\/\/github.com\/brpc\/brpc\/blob\/master\/docs\/cn\/load_balancing.md#%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1\">\u8d1f\u8f7d\u5747\u8861\u5668<\/a>\uff08rr\uff0crandom\uff0c\u4e00\u81f4\u6563\u5217\uff09\n\t<\/li>\n<\/ul>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"https:\/\/github.com\/brpc\/brpc\" name=\"brpc\" target=\"_blank\" title=\"brpc\"><b style=\"color:#000;background:#ffff66\">https<\/b>:\/\/github.com\/brpc\/brpc<\/a>\n\t<\/li>\n<\/ul>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2001\">\u767e\u5ea6 RPC \u6846\u67b6 brpc \u7b80\u4ecb<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>9 \u6708 14 \u65e5\uff0c\u767e\u5ea6\u6b63\u5f0f\u5728 GitHub \u4e0a\u57fa\u4e8e Apache 2.0 \u534f\u8bae\u5f00\u6e90\u4e86\u5176 RPC \u6846\u67b6 brpc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1516,302,1437,1517,1518],"class_list":["post-2001","post","type-post","status-publish","format-standard","hentry","category-java","tag-brpc","tag-dubbo","tag-github","tag-protobuf","tag-tars"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2001"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2001\/revisions"}],"predecessor-version":[{"id":2142,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2001\/revisions\/2142"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}