{"id":68746,"date":"2026-01-30T17:04:59","date_gmt":"2026-01-30T09:04:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/68746.html"},"modified":"2026-01-30T17:04:59","modified_gmt":"2026-01-30T09:04:59","slug":"%e5%be%ae%e6%9c%8d%e5%8a%a1%e7%a8%b3%e5%ae%9a%e6%80%a7%e5%ae%88%e6%8a%a4%e8%80%85%ef%bc%9asentinel-%e5%85%a8%e9%9d%a2%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97%ef%bc%88%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/68746.html","title":{"rendered":"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09"},"content":{"rendered":"<h2><\/h2>\n<p>\u5728\u5fae\u670d\u52a1\u67b6\u6784\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u96ea\u5d29\u6548\u5e94\u201d\u65e9\u5df2\u4e0d\u662f\u964c\u751f\u7684\u540d\u8bcd\u2014\u2014\u4e00\u4e2a\u670d\u52a1\u7684\u8d85\u65f6\u3001\u5f02\u5e38&#xff0c;\u53ef\u80fd\u50cf\u591a\u7c73\u8bfa\u9aa8\u724c\u4e00\u6837&#xff0c;\u5f15\u53d1\u4e0a\u4e0b\u6e38\u670d\u52a1\u8fde\u9501\u5d29\u6e83&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea\u3002\u6b64\u524d\u4e3b\u6d41\u7684\u7194\u65ad\u7ec4\u4ef6 Hystrix \u56e0\u793e\u533a\u505c\u66f4\u3001\u914d\u7f6e\u590d\u6742\u3001\u6027\u80fd\u74f6\u9888\u7b49\u95ee\u9898\u9010\u6e10\u9000\u51fa\u821e\u53f0&#xff0c;\u800c\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7684 Sentinel \u51ed\u501f\u8f7b\u91cf\u3001\u9ad8\u6548\u3001\u529f\u80fd\u5168\u9762\u7684\u4f18\u52bf&#xff0c;\u6210\u4e3a\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u4fdd\u969c\u7684\u9996\u9009\u65b9\u6848\u3002<\/p>\n<p>Sentinel \u4ee5\u201c\u6d41\u91cf\u4e3a\u5207\u5165\u70b9\u201d&#xff0c;\u8986\u76d6\u6d41\u91cf\u63a7\u5236\u3001\u7194\u65ad\u964d\u7ea7\u3001\u70ed\u70b9\u9632\u62a4\u3001\u7cfb\u7edf\u8d1f\u8f7d\u4fdd\u62a4\u7b49\u5168\u65b9\u4f4d\u80fd\u529b&#xff0c;\u7ecf\u8fc7\u963f\u91cc\u53cc11\u4e07\u4ebf\u7ea7\u6d41\u91cf\u7684\u5b9e\u6218\u9a8c\u8bc1&#xff0c;\u80fd\u591f\u65e0\u7f1d\u9002\u914d SpringCloud\u3001SpringBoot\u3001Dubbo \u7b49\u4e3b\u6d41\u6846\u67b6&#xff0c;\u65e0\u8bba\u662f\u65b0\u624b\u5165\u95e8\u8fd8\u662f\u8001\u624b\u4f18\u5316&#xff0c;\u90fd\u80fd\u5feb\u901f\u4e0a\u624b\u5e76\u843d\u5730\u5230\u751f\u4ea7\u73af\u5883\u3002\u672c\u6587\u5c06\u4ece\u201c\u8ba4\u77e5\u2192\u5b9e\u64cd\u2192\u8fdb\u9636\u2192\u6700\u4f73\u5b9e\u8df5\u201d\u56db\u4e2a\u7ef4\u5ea6&#xff0c;\u624b\u628a\u624b\u6559\u4f60\u5403\u900f Sentinel \u7684\u4f7f\u7528&#xff0c;\u5e2e\u4f60\u642d\u5efa\u8d77\u5fae\u670d\u52a1\u7684\u201c\u5b89\u5168\u9632\u62a4\u7f51\u201d\u3002<\/p>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 Sentinel&#xff1f;\u6838\u5fc3\u4f18\u52bf\u62c6\u89e3<\/h3>\n<p>\u5728\u52a8\u624b\u5b9e\u64cd\u524d&#xff0c;\u6211\u4eec\u5148\u641e\u6e05\u695a&#xff1a;\u76f8\u6bd4\u4f20\u7edf\u7684\u7194\u65ad\u9650\u6d41\u7ec4\u4ef6&#xff0c;Sentinel \u5230\u5e95\u5f3a\u5728\u54ea\u91cc&#xff1f;\u7ed3\u5408\u5b9e\u6218\u7ecf\u9a8c&#xff0c;\u5176\u6838\u5fc3\u4f18\u52bf\u53ef\u603b\u7ed3\u4e3a5\u70b9&#xff0c;\u5c24\u5176\u9002\u5408\u4f01\u4e1a\u7ea7\u9879\u76ee\u843d\u5730&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8f7b\u91cf\u7ea7\u9ad8\u6027\u80fd&#xff1a;\u6838\u5fc3\u5305\u4ec5\u51e0\u5341 KB&#xff0c;\u57fa\u4e8e Netty \u975e\u963b\u585e IO \u6a21\u578b\u5f00\u53d1&#xff0c;QPS \u652f\u6301\u53ef\u8fbe\u767e\u4e07\u7ea7&#xff0c;\u6027\u80fd\u635f\u8017\u6781\u4f4e&#xff0c;\u8fdc\u4f18\u4e8e Hystrix \u7684\u7ebf\u7a0b\u6c60\u9694\u79bb\u673a\u5236&#xff0c;\u4e0d\u4f1a\u7ed9\u7cfb\u7edf\u5e26\u6765\u989d\u5916\u8d1f\u62c5\u3002<\/p>\n<\/li>\n<li>\n<p>\u529f\u80fd\u5168\u9762\u4e14\u7cbe\u51c6&#xff1a;\u539f\u751f\u652f\u6301\u6d41\u91cf\u63a7\u5236\u3001\u7194\u65ad\u964d\u7ea7\u3001\u70ed\u70b9\u53c2\u6570\u9650\u6d41\u3001\u7cfb\u7edf\u4fdd\u62a4\u3001\u9ed1\u767d\u540d\u5355\u7b49\u529f\u80fd&#xff0c;\u65e0\u9700\u989d\u5916\u96c6\u6210\u63d2\u4ef6&#xff0c;\u53ef\u5b9e\u73b0\u4ece\u63a5\u53e3\u7ea7\u5230\u53c2\u6570\u7ea7\u7684\u7cbe\u7ec6\u5316\u9632\u62a4\u3002<\/p>\n<\/li>\n<li>\n<p>\u53ef\u89c6\u5316\u6613\u7528\u6027\u5f3a&#xff1a;\u63d0\u4f9b\u5b98\u65b9 Dashboard \u63a7\u5236\u53f0&#xff0c;\u652f\u6301\u89c4\u5219\u914d\u7f6e\u3001\u5b9e\u65f6\u76d1\u63a7\u3001\u6d41\u91cf\u7edf\u8ba1\u3001\u7194\u65ad\u72b6\u6001\u67e5\u770b\u7b49\u529f\u80fd&#xff0c;\u754c\u9762\u76f4\u89c2&#xff0c;\u4e0a\u624b\u6210\u672c\u4f4e&#xff0c;\u65e0\u9700\u590d\u6742\u7684\u914d\u7f6e\u5373\u53ef\u5feb\u901f\u542f\u7528\u3002<\/p>\n<\/li>\n<li>\n<p>\u6613\u96c6\u6210\u4e14\u7075\u6d3b&#xff1a;\u65e0\u7f1d\u9002\u914d SpringCloud\u3001SpringBoot\u3001Dubbo\u3001gRPC \u7b49\u4e3b\u6d41\u5fae\u670d\u52a1\u6846\u67b6&#xff0c;\u914d\u7f6e\u7b80\u5355&#xff1b;\u652f\u6301\u89c4\u5219\u52a8\u6001\u8c03\u6574&#xff08;\u65e0\u9700\u91cd\u542f\u670d\u52a1&#xff09;&#xff0c;\u9002\u914d\u4e1a\u52a1\u5feb\u901f\u8fed\u4ee3\u7684\u9700\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>\u793e\u533a\u6d3b\u8dc3\u4e14\u53ef\u9760&#xff1a;\u7531\u963f\u91cc\u5df4\u5df4\u5b98\u65b9\u7ef4\u62a4&#xff0c;\u6301\u7eed\u8fed\u4ee3\u66f4\u65b0&#xff0c;\u9002\u914d\u6700\u65b0\u7684\u5fae\u670d\u52a1\u751f\u6001&#xff0c;\u540c\u65f6\u62e5\u6709\u5b8c\u5584\u7684\u6587\u6863\u548c\u793e\u533a\u652f\u6301&#xff0c;\u9047\u5230\u95ee\u9898\u80fd\u5feb\u901f\u627e\u5230\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u66f4\u76f4\u89c2\u5730\u770b\u51fa\u5dee\u5f02&#xff0c;\u8fd9\u91cc\u6574\u7406\u4e86 Sentinel \u4e0e Hystrix \u7684\u6838\u5fc3\u5bf9\u6bd4&#xff0c;\u5e2e\u4f60\u5feb\u901f\u505a\u51fa\u9009\u62e9&#xff1a;<\/p>\n<table>\n<tr>\n<p>\u5bf9\u6bd4\u9879<\/p>\n<p>Hystrix<\/p>\n<p>Sentinel<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:89px\">\n<p>\u7ef4\u62a4\u72b6\u6001<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:285px\">\n<p>Netflix \u505c\u6b62\u7ef4\u62a4<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u963f\u91cc\u5b98\u65b9\u6301\u7eed\u66f4\u65b0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:89px\">\n<p>\u89c4\u5219\u914d\u7f6e<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:285px\">\n<p>\u4e3b\u8981\u901a\u8fc7\u786c\u7f16\u7801\u6216\u914d\u7f6e\u6587\u4ef6&#xff0c;\u52a8\u6001\u8c03\u6574\u590d\u6742<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u63a7\u5236\u53f0\u3001\u914d\u7f6e\u4e2d\u5fc3\u52a8\u6001\u914d\u7f6e&#xff0c;\u5b9e\u65f6\u751f\u6548<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:89px\">\n<p>\u6838\u5fc3\u80fd\u529b<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:285px\">\n<p>\u4ec5\u652f\u6301\u7194\u65ad\u964d\u7ea7\u3001\u7ebf\u7a0b\u9694\u79bb&#xff0c;\u529f\u80fd\u5355\u4e00<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u9650\u6d41\u3001\u7194\u65ad\u3001\u70ed\u70b9\u9632\u62a4\u3001\u7cfb\u7edf\u4fdd\u62a4\u7b49\u5168\u65b9\u4f4d\u80fd\u529b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:89px\">\n<p>\u76d1\u63a7\u80fd\u529b<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:285px\">\n<p>\u9700\u7ed3\u5408 Turbine\u3001Dashboard&#xff0c;\u914d\u7f6e\u590d\u6742&#xff0c;\u5c55\u793a\u7b80\u5355<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5185\u7f6e Dashboard&#xff0c;\u79d2\u7ea7\u76d1\u63a7&#xff0c;\u56fe\u8868\u5316\u5c55\u793a&#xff0c;\u76f4\u89c2\u6e05\u6670<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:89px\">\n<p>\u6027\u80fd\u635f\u8017<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\" style=\"width:285px\">\n<p>\u57fa\u4e8e\u7ebf\u7a0b\u6c60\u9694\u79bb&#xff0c;\u6027\u80fd\u635f\u8017\u8f83\u9ad8<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u57fa\u4e8e Netty \u5f02\u6b65\u5904\u7406&#xff0c;\u8f7b\u91cf\u7ea7&#xff0c;\u6027\u80fd\u635f\u8017\u6781\u4f4e<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7ed3\u8bba&#xff1a;\u65b0\u9879\u76ee\u9996\u9009 Sentinel&#xff1b;\u65e7\u9879\u76ee\u82e5\u4f7f\u7528 Hystrix&#xff0c;\u5efa\u8bae\u9010\u6b65\u8fc1\u79fb\u81f3 Sentinel&#xff0c;\u964d\u4f4e\u7ef4\u62a4\u6210\u672c&#xff0c;\u63d0\u5347\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002<\/p>\n<h3>\u4e8c\u3001\u5403\u900f\u6838\u5fc3\u6982\u5ff5&#xff1a;\u52a8\u624b\u524d\u5fc5\u61c2\u7684\u57fa\u7840<\/h3>\n<p>\u5f88\u591a\u5f00\u53d1\u8005\u4e0a\u624b Sentinel \u540e&#xff0c;\u4f1a\u51fa\u73b0\u201c\u914d\u7f6e\u4e86\u89c4\u5219\u4f46\u4e0d\u751f\u6548\u201d\u201c\u7194\u65ad\u903b\u8f91\u4e0d\u7b26\u5408\u9884\u671f\u201d\u7b49\u95ee\u9898&#xff0c;\u6838\u5fc3\u539f\u56e0\u662f\u6ca1\u5403\u900f\u5176\u6838\u5fc3\u6982\u5ff5\u3002Sentinel \u7684\u5de5\u4f5c\u903b\u8f91\u56f4\u7ed5\u201c\u8d44\u6e90\u201d\u548c\u201c\u89c4\u5219\u201d\u5c55\u5f00&#xff0c;\u638c\u63e1\u4ee5\u4e0b\u51e0\u4e2a\u6982\u5ff5&#xff0c;\u5b9e\u64cd\u65f6\u5c31\u80fd\u5c11\u8d70\u5f2f\u8def&#xff1a;<\/p>\n<h4>2.1 \u6838\u5fc3\u672f\u8bed\u89e3\u6790<\/h4>\n<ul>\n<li>\n<p>\u8d44\u6e90&#xff08;Resource&#xff09;&#xff1a;Sentinel \u4fdd\u62a4\u7684\u6838\u5fc3\u5bf9\u8c61&#xff0c;\u4e5f\u662f\u9650\u6d41\u3001\u7194\u65ad\u7684\u6700\u5c0f\u7c92\u5ea6&#xff0c;\u53ef\u7406\u89e3\u4e3a\u201c\u9700\u8981\u88ab\u4fdd\u62a4\u7684\u4ee3\u7801\/\u63a5\u53e3\/\u670d\u52a1\u201d\u3002\u6bd4\u5982\u4e00\u4e2a\u63a5\u53e3\u65b9\u6cd5\u3001\u4e00\u4e2a URL\u3001\u4e00\u4e2a Dubbo \u670d\u52a1\u540d&#xff0c;\u90fd\u53ef\u4ee5\u4f5c\u4e3a\u8d44\u6e90\u3002\u901a\u5e38\u901a\u8fc7\u6ce8\u89e3 &#064;SentinelResource \u6216\u4ee3\u7801\u57cb\u70b9\u7684\u65b9\u5f0f\u5b9a\u4e49\u8d44\u6e90\u3002<\/p>\n<\/li>\n<li>\n<p>\u89c4\u5219&#xff08;Rule&#xff09;&#xff1a;\u5bf9\u8d44\u6e90\u7684\u63a7\u5236\u7b56\u7565&#xff0c;\u662f Sentinel \u6267\u884c\u9650\u6d41\u3001\u7194\u65ad\u7b49\u64cd\u4f5c\u7684\u4f9d\u636e\u3002\u5e38\u89c1\u7684\u89c4\u5219\u7c7b\u578b\u6709&#xff1a;\u6d41\u91cf\u63a7\u5236\u89c4\u5219\u3001\u7194\u65ad\u964d\u7ea7\u89c4\u5219\u3001\u70ed\u70b9\u53c2\u6570\u9650\u6d41\u89c4\u5219\u3001\u7cfb\u7edf\u4fdd\u62a4\u89c4\u5219\u3001\u9ed1\u767d\u540d\u5355\u89c4\u5219\u3002<\/p>\n<\/li>\n<li>\n<p>\u6d41\u91cf\u63a7\u5236&#xff1a;\u9650\u5236\u8d44\u6e90\u7684\u8bbf\u95ee\u9891\u7387&#xff08;QPS&#xff09;\u6216\u5e76\u53d1\u7ebf\u7a0b\u6570&#xff0c;\u907f\u514d\u6d41\u91cf\u8d85\u51fa\u7cfb\u7edf\u7684\u627f\u8f7d\u80fd\u529b&#xff0c;\u76f8\u5f53\u4e8e\u201c\u7ed9\u63a5\u53e3\u88c5\u4e00\u4e2a\u6d41\u91cf\u9600\u95e8\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u7194\u65ad\u964d\u7ea7&#xff1a;\u5f53\u8d44\u6e90\u8c03\u7528\u51fa\u73b0\u5f02\u5e38&#xff08;\u6162\u8c03\u7528\u6bd4\u4f8b\u8fc7\u9ad8\u3001\u5f02\u5e38\u7387\u8fc7\u9ad8\u3001\u5f02\u5e38\u6570\u8fc7\u591a&#xff09;\u65f6&#xff0c;\u6682\u65f6\u5207\u65ad\u8be5\u8d44\u6e90\u7684\u8c03\u7528\u94fe\u8def&#xff0c;\u907f\u514d\u6545\u969c\u6269\u6563&#xff0c;\u540c\u65f6\u6267\u884c\u515c\u5e95\u903b\u8f91&#xff08;\u964d\u7ea7\u65b9\u6cd5&#xff09;&#xff0c;\u76f8\u5f53\u4e8e\u201c\u7ed9\u63a5\u53e3\u88c5\u4e00\u4e2a\u4fdd\u9669\u4e1d\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u964d\u7ea7&#xff08;Degrade&#xff09;&#xff1a;\u7194\u65ad\u89e6\u53d1\u540e\u6267\u884c\u7684\u515c\u5e95\u903b\u8f91&#xff0c;\u7528\u4e8e\u8fd4\u56de\u53cb\u597d\u63d0\u793a\u6216\u9ed8\u8ba4\u6570\u636e&#xff0c;\u907f\u514d\u76f4\u63a5\u8fd4\u56de 500 \u9519\u8bef&#xff0c;\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002\u6bd4\u5982\u9650\u6d41\u65f6\u8fd4\u56de\u201c\u5f53\u524d\u7cfb\u7edf\u7e41\u5fd9&#xff0c;\u8bf7\u7a0d\u540e\u518d\u8bd5\u201d&#xff0c;\u7194\u65ad\u65f6\u8fd4\u56de\u7f13\u5b58\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>\u70ed\u70b9\u53c2\u6570&#xff1a;\u8d44\u6e90\u4e2d\u88ab\u9ad8\u9891\u8bbf\u95ee\u7684\u53c2\u6570&#xff0c;\u6bd4\u5982\u7535\u5546\u5546\u54c1\u8be6\u60c5\u63a5\u53e3\u7684 \u5546\u54c1ID\u3001\u7528\u6237\u767b\u5f55\u63a5\u53e3\u7684 \u7528\u6237ID\u3002\u70ed\u70b9\u53c2\u6570\u9650\u6d41\u5c31\u662f\u5bf9\u8fd9\u4e9b\u9ad8\u9891\u53c2\u6570\u5355\u72ec\u9650\u6d41&#xff0c;\u5b9e\u73b0\u7cbe\u51c6\u9632\u62a4\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>2.2 \u7194\u65ad\u964d\u7ea7\u6838\u5fc3\u539f\u7406&#xff08;\u72b6\u6001\u6d41\u8f6c&#xff09;<\/h4>\n<p>\u7194\u65ad\u673a\u5236\u57fa\u4e8e\u201c\u7194\u65ad\u5668\u6a21\u5f0f\u201d\u5b9e\u73b0&#xff0c;\u6838\u5fc3\u5206\u4e3a\u4e09\u4e2a\u72b6\u6001&#xff0c;\u6d41\u8f6c\u903b\u8f91\u6e05\u6670&#xff0c;\u7406\u89e3\u540e\u5c31\u80fd\u8f7b\u677e\u914d\u7f6e\u7194\u65ad\u89c4\u5219&#xff1a;<\/p>\n<li>\n<p>\u95ed\u5408\u72b6\u6001&#xff08;CLOSED&#xff09;&#xff1a;\u6b63\u5e38\u72b6\u6001&#xff0c;\u5141\u8bb8\u6240\u6709\u8bf7\u6c42\u8bbf\u95ee\u8d44\u6e90&#xff0c;\u540c\u65f6 Sentinel \u4f1a\u5b9e\u65f6\u7edf\u8ba1\u8be5\u8d44\u6e90\u7684\u8c03\u7528\u6307\u6807&#xff08;\u54cd\u5e94\u65f6\u95f4\u3001\u5f02\u5e38\u7387\u3001\u5f02\u5e38\u6570&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6253\u5f00\u72b6\u6001&#xff08;OPEN&#xff09;&#xff1a;\u5f53\u8c03\u7528\u6307\u6807\u8fbe\u5230\u7194\u65ad\u9608\u503c&#xff08;\u5982\u6162\u8c03\u7528\u6bd4\u4f8b\u8d85\u8fc7 50%&#xff09;\u65f6&#xff0c;\u89e6\u53d1\u7194\u65ad&#xff0c;\u8fdb\u5165\u6253\u5f00\u72b6\u6001\u3002\u6b64\u65f6\u5728\u6307\u5b9a\u65f6\u95f4\u5185&#xff08;\u7194\u65ad\u65f6\u957f&#xff09;&#xff0c;\u4f1a\u62d2\u7edd\u6240\u6709\u8bbf\u95ee\u8be5\u8d44\u6e90\u7684\u8bf7\u6c42&#xff0c;\u76f4\u63a5\u6267\u884c\u964d\u7ea7\u903b\u8f91\u3002<\/p>\n<\/li>\n<li>\n<p>\u534a\u6253\u5f00\u72b6\u6001&#xff08;HALF-OPEN&#xff09;&#xff1a;\u7194\u65ad\u65f6\u957f\u5230\u671f\u540e&#xff0c;\u81ea\u52a8\u8fdb\u5165\u534a\u6253\u5f00\u72b6\u6001\u3002\u6b64\u65f6\u5141\u8bb8\u5c11\u91cf\u8bf7\u6c42\u5c1d\u8bd5\u8bbf\u95ee\u8d44\u6e90&#xff1a;\u82e5\u8fd9\u4e9b\u8bf7\u6c42\u8c03\u7528\u6210\u529f&#xff0c;\u5219\u6062\u590d\u4e3a\u95ed\u5408\u72b6\u6001&#xff1b;\u82e5\u4ecd\u6709\u5f02\u5e38&#xff0c;\u5219\u91cd\u56de\u6253\u5f00\u72b6\u6001&#xff0c;\u7ee7\u7eed\u7194\u65ad\u3002<\/p>\n<\/li>\n<h4>2.3 \u6d41\u91cf\u63a7\u5236\u6838\u5fc3\u6a21\u5f0f<\/h4>\n<p>Sentinel \u652f\u6301\u4e09\u79cd\u6d41\u91cf\u63a7\u5236\u6a21\u5f0f&#xff0c;\u8986\u76d6\u4e0d\u540c\u7684\u4e1a\u52a1\u573a\u666f&#xff0c;\u5b9e\u64cd\u65f6\u53ef\u6839\u636e\u9700\u6c42\u9009\u62e9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u76f4\u63a5\u6a21\u5f0f&#xff1a;\u76f4\u63a5\u5bf9\u5f53\u524d\u8d44\u6e90\u8fdb\u884c\u9650\u6d41&#xff0c;\u662f\u6700\u5e38\u7528\u7684\u6a21\u5f0f\u3002\u6bd4\u5982\u9650\u5236\u201c\u521b\u5efa\u8ba2\u5355\u201d\u63a5\u53e3\u7684 QPS \u4e3a 100&#xff0c;\u5f53\u6bcf\u79d2\u8bf7\u6c42\u6570\u8d85\u8fc7 100 \u65f6&#xff0c;\u76f4\u63a5\u89e6\u53d1\u9650\u6d41\u3002<\/p>\n<\/li>\n<li>\n<p>\u5173\u8054\u6a21\u5f0f&#xff1a;\u5f53\u5173\u8054\u7684\u8d44\u6e90\u6d41\u91cf\u8fbe\u5230\u9608\u503c\u65f6&#xff0c;\u9650\u5236\u5f53\u524d\u8d44\u6e90\u7684\u8bbf\u95ee\u3002\u6bd4\u5982\u201c\u4e0b\u5355\u201d\u63a5\u53e3\u548c\u201c\u67e5\u8be2\u5546\u54c1\u201d\u63a5\u53e3\u5173\u8054&#xff0c;\u5f53\u201c\u4e0b\u5355\u201d\u63a5\u53e3\u6d41\u91cf\u8fc7\u8f7d\u65f6&#xff0c;\u9650\u5236\u201c\u67e5\u8be2\u5546\u54c1\u201d\u63a5\u53e3\u7684\u6d41\u91cf&#xff0c;\u4f18\u5148\u4fdd\u969c\u4e0b\u5355\u529f\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>\u94fe\u8def\u6a21\u5f0f&#xff1a;\u53ea\u9650\u5236\u67d0\u4e00\u6761\u8c03\u7528\u94fe\u8def\u7684\u6d41\u91cf&#xff0c;\u4e0d\u5f71\u54cd\u5176\u4ed6\u94fe\u8def\u3002\u6bd4\u5982\u201c\u7528\u6237\u670d\u52a1\u201d\u7684\u201c\u67e5\u8be2\u7528\u6237\u4fe1\u606f\u201d\u63a5\u53e3&#xff0c;\u53ef\u80fd\u88ab\u201c\u8ba2\u5355\u670d\u52a1\u201d\u548c\u201c\u5546\u54c1\u670d\u52a1\u201d\u8c03\u7528&#xff0c;\u94fe\u8def\u6a21\u5f0f\u53ef\u53ea\u9650\u5236\u201c\u8ba2\u5355\u670d\u52a1\u2192\u67e5\u8be2\u7528\u6237\u4fe1\u606f\u201d\u7684\u6d41\u91cf\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u5b9e\u64cd\u843d\u5730&#xff1a;\u4ece Dashboard \u90e8\u7f72\u5230\u89c4\u5219\u914d\u7f6e<\/h3>\n<p>\u638c\u63e1\u6838\u5fc3\u6982\u5ff5\u540e&#xff0c;\u8fdb\u5165\u6700\u5173\u952e\u7684\u5b9e\u64cd\u73af\u8282\u3002\u672c\u8282\u5c06\u4ee5 SpringBoot \u9879\u76ee\u4e3a\u4f8b&#xff0c;\u4ece Sentinel Dashboard \u90e8\u7f72\u3001\u9879\u76ee\u96c6\u6210\u3001\u6838\u5fc3\u89c4\u5219\u914d\u7f6e\u4e09\u4e2a\u6b65\u9aa4&#xff0c;\u5e26\u4f60\u5feb\u901f\u5b9e\u73b0 Sentinel \u7684\u57fa\u7840\u4f7f\u7528&#xff0c;\u6240\u6709\u4ee3\u7801\u5747\u53ef\u76f4\u63a5\u590d\u7528\u3002<\/p>\n<h4>3.1 \u7b2c\u4e00\u6b65&#xff1a;\u90e8\u7f72 Sentinel Dashboard&#xff08;\u53ef\u89c6\u5316\u63a7\u5236\u53f0&#xff09;<\/h4>\n<p>Sentinel Dashboard \u662f\u5b98\u65b9\u63d0\u4f9b\u7684\u53ef\u89c6\u5316\u7ba1\u7406\u5de5\u5177&#xff0c;\u7528\u4e8e\u914d\u7f6e\u89c4\u5219\u3001\u67e5\u770b\u76d1\u63a7\u6570\u636e\u3001\u7ba1\u7406\u8d44\u6e90&#xff0c;\u652f\u6301 Windows \u548c Linux \u53cc\u73af\u5883\u90e8\u7f72&#xff0c;\u6b65\u9aa4\u7b80\u5355&#xff1a;<\/p>\n<h5>3.1.1 \u4e0b\u8f7d Dashboard \u5305<\/h5>\n<p>\u4ece Sentinel \u5b98\u65b9 GitHub \u4ed3\u5e93&#xff08;https:\/\/github.com\/alibaba\/Sentinel\/releases&#xff09;\u4e0b\u8f7d\u6700\u65b0\u7684 jar \u5305&#xff08;\u5982 sentinel-dashboard-1.8.6.jar&#xff09;&#xff0c;\u65e0\u9700\u89e3\u538b&#xff0c;\u76f4\u63a5\u901a\u8fc7\u547d\u4ee4\u542f\u52a8\u3002<\/p>\n<h5>3.1.2 \u542f\u52a8 Dashboard&#xff08;Windows \u73af\u5883&#xff09;<\/h5>\n<p>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26&#xff08;CMD&#xff09;&#xff0c;\u8fdb\u5165 jar \u5305\u6240\u5728\u76ee\u5f55&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>java -jar sentinel-dashboard-1.8.6.jar &#8211;server.port&#061;8080 <\/p>\n<p>\u8bf4\u660e&#xff1a;&#8211;server.port&#061;8080 \u6307\u5b9a Dashboard \u7684\u7aef\u53e3\u53f7&#xff0c;\u82e5 8080 \u7aef\u53e3\u88ab\u5360\u7528&#xff0c;\u53ef\u4fee\u6539\u4e3a\u5176\u4ed6\u7aef\u53e3&#xff08;\u5982 8081&#xff09;\u3002<\/p>\n<h5>3.1.3 \u8bbf\u95ee Dashboard<\/h5>\n<p>\u542f\u52a8\u6210\u529f\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee http:\/\/localhost:8080&#xff0c;\u8f93\u5165\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff08;\u5747\u4e3a sentinel&#xff09;&#xff0c;\u5373\u53ef\u8fdb\u5165\u63a7\u5236\u53f0\u3002\u9996\u6b21\u767b\u5f55\u65f6&#xff0c;\u63a7\u5236\u53f0\u4e3a\u7a7a&#xff0c;\u56e0\u4e3a\u8fd8\u672a\u96c6\u6210\u9879\u76ee&#xff0c;\u6ca1\u6709\u8d44\u6e90\u548c\u89c4\u5219\u6570\u636e\u3002<\/p>\n<h4>3.2 \u7b2c\u4e8c\u6b65&#xff1a;SpringBoot \u9879\u76ee\u96c6\u6210 Sentinel<\/h4>\n<p>\u672c\u6b65\u9aa4\u5b9e\u73b0 SpringBoot \u9879\u76ee\u4e0e Sentinel Dashboard \u7684\u96c6\u6210&#xff0c;\u8ba9\u9879\u76ee\u80fd\u591f\u5c06\u8d44\u6e90\u3001\u6d41\u91cf\u6570\u636e\u4e0a\u62a5\u5230 Dashboard&#xff0c;\u540c\u65f6\u63a5\u6536 Dashboard \u4e0b\u53d1\u7684\u89c4\u5219\u3002<\/p>\n<h5>3.2.1 \u5f15\u5165\u4f9d\u8d56<\/h5>\n<p>\u5728 SpringBoot \u9879\u76ee\u7684 pom.xml \u6587\u4ef6\u4e2d&#xff0c;\u5f15\u5165\u4ee5\u4e0b\u6838\u5fc3\u4f9d\u8d56&#xff08;\u9002\u914d SpringBoot 2.x \u7248\u672c&#xff09;&#xff1a;<\/p>\n<p>&lt;!&#8211; Sentinel \u6838\u5fc3\u4f9d\u8d56 &#8211;&gt;<br \/>\n&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;com.alibaba.csp&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;sentinel-core&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;1.8.6&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt;<br \/>\n&lt;!&#8211; Sentinel \u4e0e SpringBoot \u96c6\u6210\u4f9d\u8d56 &#8211;&gt;<br \/>\n&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;com.alibaba.cloud&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;spring-cloud-starter-alibaba-sentinel&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;2.2.10.RELEASE&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt;<br \/>\n&lt;!&#8211; Sentinel \u63a7\u5236\u53f0\u901a\u4fe1\u4f9d\u8d56&#xff08;\u7528\u4e8e\u4e0a\u62a5\u6570\u636e\u3001\u63a5\u6536\u89c4\u5219&#xff09; &#8211;&gt;<br \/>\n&lt;dependency&gt;<br \/>\n    &lt;groupId&gt;com.alibaba.csp&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;sentinel-transport-simple-http&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;1.8.6&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<h5>3.2.2 \u914d\u7f6e application.yml<\/h5>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0 Sentinel \u76f8\u5173\u914d\u7f6e&#xff0c;\u6307\u5b9a Dashboard \u5730\u5740\u3001\u9879\u76ee\u540d\u79f0&#xff08;\u7528\u4e8e\u5728 Dashboard \u4e2d\u8bc6\u522b\u9879\u76ee&#xff09;&#xff1a;<\/p>\n<p>spring:<br \/>\n  application:<br \/>\n    name: sentinel-demo # \u9879\u76ee\u540d\u79f0&#xff0c;\u5c06\u663e\u793a\u5728 Sentinel Dashboard \u4e2d<br \/>\n  cloud:<br \/>\n    sentinel:<br \/>\n      transport:<br \/>\n        dashboard: localhost:8080 # Sentinel Dashboard \u5730\u5740\u548c\u7aef\u53e3<br \/>\n        port: 8719 # \u5ba2\u6237\u7aef\u4e0e Dashboard \u901a\u4fe1\u7684\u7aef\u53e3&#xff0c;\u9ed8\u8ba4 8719&#xff0c;\u82e5\u88ab\u5360\u7528\u4f1a\u81ea\u52a8\u9012\u589e<br \/>\n      eager: true # \u7acb\u5373\u521d\u59cb\u5316 Sentinel&#xff0c;\u907f\u514d\u9996\u6b21\u8bbf\u95ee\u63a5\u53e3\u65f6\u65e0\u6570\u636e <\/p>\n<h5>3.2.3 \u5b9a\u4e49\u8d44\u6e90&#xff08;\u6838\u5fc3\u6b65\u9aa4&#xff09;<\/h5>\n<p>\u901a\u8fc7&#064;SentinelResource \u6ce8\u89e3\u5b9a\u4e49\u8d44\u6e90&#xff0c;\u5e76\u6307\u5b9a\u964d\u7ea7\u65b9\u6cd5&#xff08;\u515c\u5e95\u903b\u8f91&#xff09;\u3002\u8fd9\u91cc\u4ee5\u4e00\u4e2a\u201c\u521b\u5efa\u8ba2\u5355\u201d\u63a5\u53e3\u4e3a\u4f8b&#xff0c;\u6f14\u793a\u8d44\u6e90\u5b9a\u4e49\u548c\u964d\u7ea7\u65b9\u6cd5\u7684\u7f16\u5199&#xff1a;<\/p>\n<p>import com.alibaba.csp.sentinel.annotation.SentinelResource;<br \/>\nimport com.alibaba.csp.sentinel.slots.block.BlockException;<br \/>\nimport org.springframework.web.bind.annotation.GetMapping;<br \/>\nimport org.springframework.web.bind.annotation.PathVariable;<br \/>\nimport org.springframework.web.bind.annotation.RestController;<\/p>\n<p>&#064;RestController<br \/>\npublic class OrderController {<\/p>\n<p>    \/**<br \/>\n     * \u5b9a\u4e49\u8d44\u6e90&#xff1a;createOrder&#xff08;\u8d44\u6e90\u540d&#xff09;<br \/>\n     * blockHandler&#xff1a;\u9650\u6d41\/\u7194\u65ad\u65f6\u89e6\u53d1\u7684\u964d\u7ea7\u65b9\u6cd5<br \/>\n     *\/<br \/>\n    &#064;GetMapping(&#034;\/order\/create\/{userId}&#034;)<br \/>\n    &#064;SentinelResource(value &#061; &#034;createOrder&#034;, blockHandler &#061; &#034;createOrderBlockHandler&#034;)<br \/>\n    public String createOrder(&#064;PathVariable Long userId) {<br \/>\n        \/\/ \u6a21\u62df\u8ba2\u5355\u521b\u5efa\u903b\u8f91&#xff08;\u5b9e\u9645\u573a\u666f\u4e2d\u4f1a\u8c03\u7528\u4e1a\u52a1\u670d\u52a1&#xff09;<br \/>\n        return &#034;\u7528\u6237 &#034; &#043; userId &#043; &#034; \u7684\u8ba2\u5355\u521b\u5efa\u6210\u529f&#xff01;&#034;;<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u964d\u7ea7\u65b9\u6cd5&#xff1a;\u9650\u6d41\/\u7194\u65ad\u65f6\u6267\u884c<br \/>\n     * \u6ce8\u610f&#xff1a;1. \u65b9\u6cd5\u53c2\u6570\u9700\u4e0e\u539f\u8d44\u6e90\u65b9\u6cd5\u4e00\u81f4&#xff1b;2. \u6700\u540e\u9700\u989d\u5916\u6dfb\u52a0 BlockException \u53c2\u6570<br \/>\n     *\/<br \/>\n    public String createOrderBlockHandler(Long userId, BlockException e) {<br \/>\n        \/\/ \u515c\u5e95\u903b\u8f91&#xff1a;\u8fd4\u56de\u53cb\u597d\u63d0\u793a&#xff08;\u53ef\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u4fee\u6539&#xff0c;\u5982\u8fd4\u56de\u7f13\u5b58\u6570\u636e\u3001\u9ed8\u8ba4\u503c&#xff09;<br \/>\n        return &#034;\u5f53\u524d\u7cfb\u7edf\u7e41\u5fd9&#xff0c;\u8bf7\u7a0d\u540e\u518d\u8bd5&#xff08;\u964d\u7ea7\u63d0\u793a&#xff09;&#xff01;&#034;;<br \/>\n    }<br \/>\n} <\/p>\n<h5>3.2.4 \u6d4b\u8bd5\u96c6\u6210\u6548\u679c<\/h5>\n<li>\n<p>\u542f\u52a8 SpringBoot \u9879\u76ee\u548c Sentinel Dashboard&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u8bbf\u95ee\u63a5\u53e3&#xff1a;http:\/\/localhost:8081\/order\/create\/1001&#xff08;\u9879\u76ee\u7aef\u53e3\u9ed8\u8ba4 8080&#xff0c;\u82e5\u51b2\u7a81\u53ef\u81ea\u884c\u4fee\u6539&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6253\u5f00 Sentinel Dashboard&#xff0c;\u5728\u201c\u7c07\u70b9\u94fe\u8def\u201d\u4e2d&#xff0c;\u5373\u53ef\u770b\u5230 createOrder \u8d44\u6e90\u5df2\u88ab\u8bc6\u522b&#xff0c;\u6b64\u65f6\u5c1a\u672a\u914d\u7f6e\u89c4\u5219&#xff0c;\u8bf7\u6c42\u4f1a\u6b63\u5e38\u8fd4\u56de\u3002<\/p>\n<\/li>\n<h4>3.3 \u7b2c\u4e09\u6b65&#xff1a;\u914d\u7f6e\u6838\u5fc3\u89c4\u5219&#xff08;\u5b9e\u64cd\u6f14\u7ec3&#xff09;<\/h4>\n<p>\u96c6\u6210\u6210\u529f\u540e&#xff0c;\u901a\u8fc7 Sentinel Dashboard \u914d\u7f6e\u89c4\u5219&#xff0c;\u5b9e\u73b0\u9650\u6d41\u3001\u7194\u65ad\u7b49\u529f\u80fd\u3002\u4e0b\u9762\u9488\u5bf9\u6700\u5e38\u7528\u7684\u201c\u6d41\u91cf\u63a7\u5236\u89c4\u5219\u201d\u548c\u201c\u7194\u65ad\u964d\u7ea7\u89c4\u5219\u201d&#xff0c;\u8fdb\u884c\u5b9e\u64cd\u6f14\u7ec3&#xff1a;<\/p>\n<h5>3.3.1 \u6d41\u91cf\u63a7\u5236\u89c4\u5219&#xff08;\u6700\u5e38\u7528&#xff09;<\/h5>\n<p>\u573a\u666f&#xff1a;\u9650\u5236 createOrder \u63a5\u53e3\u7684 QPS \u4e3a 10&#xff08;\u6bcf\u79d2\u6700\u591a\u5141\u8bb8 10 \u6b21\u8bf7\u6c42&#xff09;&#xff0c;\u907f\u514d\u6d41\u91cf\u8fc7\u8f7d\u3002<\/p>\n<li>\n<p>\u8fdb\u5165 Sentinel Dashboard \u2192 \u70b9\u51fb\u5de6\u4fa7\u201c\u6d41\u91cf\u63a7\u5236\u201d \u2192 \u70b9\u51fb\u201c\u65b0\u589e\u6d41\u63a7\u89c4\u5219\u201d&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u89c4\u5219\u53c2\u6570&#xff08;\u5173\u952e\u53c2\u6570\u5fc5\u770b&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u8d44\u6e90\u540d&#xff1a;createOrder&#xff08;\u5fc5\u987b\u4e0e &#064;SentinelResource \u7684 value \u4e00\u81f4&#xff0c;\u533a\u5206\u5927\u5c0f\u5199&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u9488\u5bf9\u6765\u6e90&#xff1a;default&#xff08;\u9ed8\u8ba4\u503c&#xff0c;\u4e0d\u533a\u5206\u8c03\u7528\u6765\u6e90&#xff0c;\u82e5\u9700\u9488\u5bf9\u7279\u5b9a\u670d\u52a1\u9650\u6d41&#xff0c;\u53ef\u586b\u5199\u670d\u52a1\u540d&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u9608\u503c\u7c7b\u578b&#xff1a;QPS&#xff08;\u63a8\u8350&#xff0c;\u9002\u5408\u63a5\u53e3\u9650\u6d41&#xff1b;\u82e5\u9700\u9650\u5236\u5e76\u53d1\u7ebf\u7a0b\u6570&#xff0c;\u53ef\u9009\u62e9\u201c\u7ebf\u7a0b\u6570\u201d&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u9608\u503c&#xff1a;10&#xff08;\u6bcf\u79d2\u6700\u591a\u5141\u8bb8 10 \u6b21\u8bf7\u6c42&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d41\u63a7\u6a21\u5f0f&#xff1a;\u76f4\u63a5&#xff08;\u76f4\u63a5\u5bf9\u5f53\u524d\u8d44\u6e90\u9650\u6d41&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d41\u63a7\u6548\u679c&#xff1a;\u5feb\u901f\u5931\u8d25&#xff08;\u9ed8\u8ba4&#xff0c;\u8d85\u51fa\u9608\u503c\u76f4\u63a5\u62d2\u7edd\u8bf7\u6c42&#xff0c;\u6267\u884c\u964d\u7ea7\u65b9\u6cd5&#xff09;\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u70b9\u51fb\u201c\u65b0\u589e\u201d&#xff0c;\u89c4\u5219\u7acb\u5373\u751f\u6548&#xff08;\u65e0\u9700\u91cd\u542f\u9879\u76ee&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u6548\u679c&#xff1a;\u7528 Postman \u6216 JMeter \u6bcf\u79d2\u53d1\u9001 15 \u6b21\u8bf7\u6c42&#xff0c;\u89c2\u5bdf\u8fd4\u56de\u7ed3\u679c\u2014\u2014\u524d 10 \u6b21\u8fd4\u56de\u6b63\u5e38\u63d0\u793a&#xff0c;\u8d85\u51fa 10 \u6b21\u7684\u8bf7\u6c42\u4f1a\u8fd4\u56de\u964d\u7ea7\u63d0\u793a&#xff0c;\u540c\u65f6 Dashboard \u4e2d\u4f1a\u5b9e\u65f6\u663e\u793a\u9650\u6d41\u6570\u636e\u3002<\/p>\n<\/li>\n<p>\u8865\u5145&#xff1a;\u6d41\u63a7\u6548\u679c\u9664\u4e86\u201c\u5feb\u901f\u5931\u8d25\u201d&#xff0c;\u8fd8\u6709\u4e24\u79cd\u5e38\u7528\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\n<p>Warm Up&#xff08;\u9884\u70ed&#xff09;&#xff1a;\u9002\u7528\u4e8e\u79d2\u6740\u3001\u4fc3\u9500\u7b49\u573a\u666f&#xff0c;\u9608\u503c\u4ece\u4f4e\u5230\u9ad8\u9010\u6e10\u63d0\u5347&#xff08;\u5982\u9608\u503c 10&#xff0c;\u9884\u70ed\u65f6\u95f4 5 \u79d2&#xff0c;\u524d 5 \u79d2\u9608\u503c\u4ece 2 \u9010\u6e10\u6da8\u5230 10&#xff09;&#xff0c;\u907f\u514d\u77ac\u95f4\u6d41\u91cf\u51fb\u57ae\u670d\u52a1&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6392\u961f\u7b49\u5f85&#xff1a;\u9002\u7528\u4e8e\u975e\u5b9e\u65f6\u573a\u666f&#xff08;\u5982\u6570\u636e\u7edf\u8ba1&#xff09;&#xff0c;\u8d85\u51fa\u9608\u503c\u7684\u8bf7\u6c42\u4f1a\u6392\u961f\u7b49\u5f85&#xff0c;\u907f\u514d\u76f4\u63a5\u62d2\u7edd&#xff0c;\u63d0\u5347\u8bf7\u6c42\u6210\u529f\u7387&#xff08;\u9700\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>3.3.2 \u7194\u65ad\u964d\u7ea7\u89c4\u5219<\/h5>\n<p>\u573a\u666f&#xff1a;\u5f53 createOrder \u63a5\u53e3\u51fa\u73b0\u6162\u8c03\u7528&#xff08;\u54cd\u5e94\u65f6\u95f4\u8d85\u8fc7 300ms&#xff09;\u7684\u6bd4\u4f8b\u8d85\u8fc7 50% \u65f6&#xff0c;\u89e6\u53d1\u7194\u65ad&#xff0c;\u7194\u65ad\u65f6\u957f 5 \u79d2&#xff0c;\u671f\u95f4\u62d2\u7edd\u6240\u6709\u8bf7\u6c42&#xff0c;\u6267\u884c\u964d\u7ea7\u65b9\u6cd5\u3002<\/p>\n<li>\n<p>\u8fdb\u5165 Sentinel Dashboard \u2192 \u70b9\u51fb\u5de6\u4fa7\u201c\u7194\u65ad\u964d\u7ea7\u201d \u2192 \u70b9\u51fb\u201c\u65b0\u589e\u964d\u7ea7\u89c4\u5219\u201d&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u89c4\u5219\u53c2\u6570&#xff1a;<\/p>\n<li>\n<p>\u8d44\u6e90\u540d&#xff1a;createOrder&#xff08;\u4e0e\u8d44\u6e90\u5b9a\u4e49\u4e00\u81f4&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7194\u65ad\u7b56\u7565&#xff1a;\u6162\u8c03\u7528\u6bd4\u4f8b&#xff08;\u4e5f\u53ef\u9009\u62e9\u201c\u5f02\u5e38\u6bd4\u4f8b\u201d\u201c\u5f02\u5e38\u6570\u201d&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6700\u5927RT&#xff1a;300&#xff08;\u6162\u8c03\u7528\u9608\u503c&#xff0c;\u5355\u4f4d ms&#xff0c;\u54cd\u5e94\u65f6\u95f4\u8d85\u8fc7\u8be5\u503c\u7684\u8bf7\u6c42\u89c6\u4e3a\u6162\u8c03\u7528&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6bd4\u4f8b\u9608\u503c&#xff1a;0.5&#xff08;\u6162\u8c03\u7528\u6bd4\u4f8b\u9608\u503c&#xff0c;\u5373 50%&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6700\u5c0f\u8bf7\u6c42\u6570&#xff1a;5&#xff08;\u89e6\u53d1\u7194\u65ad\u7684\u6700\u5c0f\u8bf7\u6c42\u6570&#xff0c;\u907f\u514d\u5c11\u91cf\u8bf7\u6c42\u8bef\u89e6\u53d1\u7194\u65ad&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7194\u65ad\u65f6\u957f&#xff1a;5&#xff08;\u7194\u65ad\u6301\u7eed\u65f6\u95f4&#xff0c;\u5355\u4f4d\u79d2&#xff0c;\u671f\u95f4\u62d2\u7edd\u6240\u6709\u8bf7\u6c42&#xff09;\u3002<\/p>\n<\/li>\n<\/li>\n<li>\n<p>\u70b9\u51fb\u201c\u65b0\u589e\u201d&#xff0c;\u89c4\u5219\u751f\u6548&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u6d4b\u8bd5\u6548\u679c&#xff1a;\u6a21\u62df\u6162\u8c03\u7528&#xff08;\u5728\u63a5\u53e3\u4e2d\u6dfb\u52a0 Thread.sleep(400)&#xff09;&#xff0c;\u5f53\u6bcf\u79d2\u8bf7\u6c42\u6570\u8fbe\u5230 5 \u6b21\u4ee5\u4e0a&#xff0c;\u4e14\u6162\u8c03\u7528\u6bd4\u4f8b\u8d85\u8fc7 50% \u65f6&#xff0c;\u4f1a\u89e6\u53d1\u7194\u65ad&#xff0c;\u6b64\u65f6\u8bbf\u95ee\u63a5\u53e3\u4f1a\u76f4\u63a5\u8fd4\u56de\u964d\u7ea7\u63d0\u793a&#xff0c;5 \u79d2\u540e\u81ea\u52a8\u8fdb\u5165\u534a\u6253\u5f00\u72b6\u6001&#xff0c;\u5c1d\u8bd5\u6062\u590d\u3002<\/p>\n<\/li>\n<h4>3.3.3 \u5176\u4ed6\u5e38\u7528\u89c4\u5219&#xff08;\u7b80\u8981\u8bf4\u660e&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u70ed\u70b9\u53c2\u6570\u9650\u6d41\u89c4\u5219&#xff1a;\u5bf9\u9ad8\u9891\u53c2\u6570\u5355\u72ec\u9650\u6d41&#xff0c;\u6bd4\u5982\u9650\u5236\u201c\u5546\u54c1ID&#061;100\u201d\u7684 QPS \u4e3a 50&#xff0c;\u5176\u4ed6\u5546\u54c1ID\u4e0d\u53d7\u9650\u3002\u914d\u7f6e\u65f6\u9700\u6307\u5b9a\u8d44\u6e90\u540d\u3001\u53c2\u6570\u7d22\u5f15&#xff08;\u5982\u7b2c\u4e00\u4e2a\u53c2\u6570\u7d22\u5f15\u4e3a 0&#xff09;\u3001\u9608\u503c\u3002<\/p>\n<\/li>\n<li>\n<p>\u7cfb\u7edf\u4fdd\u62a4\u89c4\u5219&#xff1a;\u4ece\u7cfb\u7edf\u6574\u4f53\u7ef4\u5ea6\u9632\u62a4&#xff0c;\u6bd4\u5982\u5f53 CPU \u4f7f\u7528\u7387\u8d85\u8fc7 80%\u3001\u7cfb\u7edf\u8d1f\u8f7d\u8fc7\u9ad8\u65f6&#xff0c;\u81ea\u52a8\u9650\u5236\u6240\u6709\u5165\u53e3\u6d41\u91cf&#xff0c;\u4f18\u5148\u4fdd\u969c\u6838\u5fc3\u670d\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u9ed1\u767d\u540d\u5355\u89c4\u5219&#xff1a;\u901a\u8fc7 IP\u3001\u7528\u6237ID \u7b49\u9650\u5236\u8bbf\u95ee&#xff0c;\u6bd4\u5982\u5141\u8bb8 IP \u4e3a 127.0.0.1 \u7684\u8bf7\u6c42\u8bbf\u95ee&#xff0c;\u62d2\u7edd\u5176\u4ed6 IP \u8bbf\u95ee&#xff0c;\u5b9e\u73b0\u63a5\u53e3\u5b89\u5168\u9632\u62a4\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u56db\u3001\u8fdb\u9636\u7279\u6027&#xff1a;\u4f01\u4e1a\u7ea7\u843d\u5730\u5fc5\u5907\u6280\u5de7<\/h3>\n<p>\u57fa\u7840\u5b9e\u64cd\u5b8c\u6210\u540e&#xff0c;\u82e5\u8981\u5c06 Sentinel \u843d\u5730\u5230\u751f\u4ea7\u73af\u5883&#xff0c;\u8fd8\u9700\u8981\u638c\u63e1\u4ee5\u4e0b\u8fdb\u9636\u7279\u6027&#xff0c;\u89e3\u51b3\u201c\u89c4\u5219\u4e22\u5931\u201d\u201c\u6027\u80fd\u4f18\u5316\u201d\u201c\u96c6\u7fa4\u9650\u6d41\u201d\u7b49\u95ee\u9898&#xff1a;<\/p>\n<h4>4.1 \u89c4\u5219\u6301\u4e45\u5316&#xff08;\u89e3\u51b3\u201c\u91cd\u542f\u9879\u76ee\u89c4\u5219\u4e22\u5931\u201d\u95ee\u9898&#xff09;<\/h4>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Sentinel \u7684\u89c4\u5219\u662f\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\u7684&#xff0c;\u9879\u76ee\u91cd\u542f\u540e&#xff0c;\u6240\u6709\u914d\u7f6e\u7684\u89c4\u5219\u90fd\u4f1a\u4e22\u5931&#xff0c;\u8fd9\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u4e0d\u53ef\u63a5\u53d7\u7684\u3002\u89e3\u51b3\u65b9\u6848\u662f\u5c06\u89c4\u5219\u6301\u4e45\u5316\u5230\u914d\u7f6e\u4e2d\u5fc3&#xff08;\u5982 Nacos\u3001Apollo&#xff09;&#xff0c;\u5b9e\u73b0\u89c4\u5219\u7684\u6301\u4e45\u5316\u548c\u52a8\u6001\u66f4\u65b0\u3002<\/p>\n<p>\u4ee5 Nacos \u4e3a\u4f8b&#xff0c;\u5b9e\u73b0\u6b65\u9aa4\u5982\u4e0b&#xff08;\u6838\u5fc3\u914d\u7f6e&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u5f15\u5165 Nacos \u4e0e Sentinel \u96c6\u6210\u4f9d\u8d56&#xff1a;<\/p>\n<p> &lt;dependency&gt;<br \/>\n    &lt;groupId&gt;com.alibaba.csp&lt;\/groupId&gt;<br \/>\n    &lt;artifactId&gt;sentinel-datasource-nacos&lt;\/artifactId&gt;<br \/>\n    &lt;version&gt;1.8.6&lt;\/version&gt;<br \/>\n&lt;\/dependency&gt; <\/p>\n<\/li>\n<li>\n<p>\u5728 application.yml \u4e2d\u914d\u7f6e Nacos \u6570\u636e\u6e90&#xff1a;\u00a0<\/p>\n<p> spring:<br \/>\n  cloud:<br \/>\n    sentinel:<br \/>\n      datasource:<br \/>\n        ds1: # \u6570\u636e\u6e90\u540d\u79f0&#xff0c;\u53ef\u81ea\u5b9a\u4e49<br \/>\n          nacos:<br \/>\n            server-addr: localhost:8848 # Nacos \u5730\u5740<br \/>\n            dataId: sentinel-rules # Nacos \u4e2d\u5b58\u50a8\u89c4\u5219\u7684 dataId<br \/>\n            groupId: DEFAULT_GROUP # Nacos \u5206\u7ec4<br \/>\n            rule-type: flow # \u89c4\u5219\u7c7b\u578b&#xff08;flow&#xff1a;\u6d41\u91cf\u63a7\u5236\u89c4\u5219&#xff0c;degrade&#xff1a;\u7194\u65ad\u964d\u7ea7\u89c4\u5219&#xff09; <\/p>\n<\/li>\n<li>\n<p>\u5728 Nacos \u63a7\u5236\u53f0\u521b\u5efa\u5bf9\u5e94\u7684\u914d\u7f6e&#xff08;dataId \u4e3a sentinel-rules&#xff09;&#xff0c;\u914d\u7f6e\u5185\u5bb9\u4e3a JSON \u683c\u5f0f\u7684\u89c4\u5219&#xff0c;\u793a\u4f8b&#xff08;\u6d41\u91cf\u63a7\u5236\u89c4\u5219&#xff09;&#xff1a;\u00a0<\/p>\n<p> [<br \/>\n  {<br \/>\n    &#034;resource&#034;: &#034;createOrder&#034;,<br \/>\n    &#034;limitApp&#034;: &#034;default&#034;,<br \/>\n    &#034;grade&#034;: 1,<br \/>\n    &#034;count&#034;: 10,<br \/>\n    &#034;strategy&#034;: 0,<br \/>\n    &#034;controlBehavior&#034;: 0,<br \/>\n    &#034;clusterMode&#034;: false<br \/>\n  }<br \/>\n] <\/p>\n<\/li>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u89c4\u5219\u4f1a\u81ea\u52a8\u4ece Nacos \u52a0\u8f7d&#xff0c;\u4fee\u6539 Nacos \u4e2d\u7684\u89c4\u5219&#xff0c;\u9879\u76ee\u65e0\u9700\u91cd\u542f\u5373\u53ef\u751f\u6548&#xff0c;\u540c\u65f6\u9879\u76ee\u91cd\u542f\u540e\u89c4\u5219\u4e5f\u4e0d\u4f1a\u4e22\u5931\u3002<\/p>\n<h4>4.2 \u96c6\u7fa4\u6d41\u63a7&#xff08;\u5206\u5e03\u5f0f\u7cfb\u7edf\u5fc5\u5907&#xff09;<\/h4>\n<p>\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d&#xff0c;\u4e00\u4e2a\u670d\u52a1\u53ef\u80fd\u90e8\u7f72\u591a\u4e2a\u5b9e\u4f8b&#xff0c;\u82e5\u6bcf\u4e2a\u5b9e\u4f8b\u5355\u72ec\u9650\u6d41&#xff08;\u5982\u6bcf\u4e2a\u5b9e\u4f8b QPS \u9650\u5236 100&#xff09;&#xff0c;\u5219\u6574\u4e2a\u96c6\u7fa4\u7684 QPS \u4f1a\u8fbe\u5230 100 \u00d7 \u5b9e\u4f8b\u6570&#xff0c;\u53ef\u80fd\u8d85\u51fa\u540e\u7aef\u670d\u52a1\u7684\u627f\u8f7d\u80fd\u529b\u3002\u96c6\u7fa4\u6d41\u63a7\u5c31\u662f\u5bf9\u6574\u4e2a\u96c6\u7fa4\u7684\u6d41\u91cf\u8fdb\u884c\u7edf\u4e00\u9650\u5236&#xff08;\u5982\u96c6\u7fa4\u603b QPS \u9650\u5236 500&#xff09;&#xff0c;\u5b9e\u73b0\u5168\u5c40\u6d41\u91cf\u63a7\u5236\u3002<\/p>\n<p>\u5b9e\u73b0\u96c6\u7fa4\u6d41\u63a7\u9700\u8981\u90e8\u7f72 Sentinel Token Server&#xff08;\u4ee4\u724c\u670d\u52a1\u5668&#xff09;&#xff0c;\u5ba2\u6237\u7aef\u901a\u8fc7 Token Server \u83b7\u53d6\u4ee4\u724c&#xff0c;\u53ea\u6709\u83b7\u53d6\u5230\u4ee4\u724c\u7684\u8bf7\u6c42\u624d\u80fd\u8bbf\u95ee\u8d44\u6e90\u3002\u6838\u5fc3\u914d\u7f6e\u5982\u4e0b&#xff08;\u5ba2\u6237\u7aef&#xff09;&#xff1a;<\/p>\n<p>spring:<br \/>\n  cloud:<br \/>\n    sentinel:<br \/>\n      transport:<br \/>\n        cluster-server:<br \/>\n          host: localhost # Token Server \u5730\u5740<br \/>\n          port: 18730 # Token Server \u7aef\u53e3 <\/p>\n<h4>4.3 \u5f02\u6b65\u8d44\u6e90\u652f\u6301<\/h4>\n<p>\u5728\u5f02\u6b65\u7f16\u7a0b\u573a\u666f\u4e2d&#xff08;\u5982 Spring Boot Async&#xff09;&#xff0c;\u666e\u901a\u7684\u8d44\u6e90\u5b9a\u4e49\u65b9\u5f0f\u65e0\u6cd5\u751f\u6548&#xff0c;\u9700\u8981\u4f7f\u7528 Sentinel \u7684\u5f02\u6b65\u57cb\u70b9\u65b9\u5f0f\u5b9a\u4e49\u8d44\u6e90\u3002\u793a\u4f8b\u4ee3\u7801&#xff1a;<\/p>\n<p>import com.alibaba.csp.sentinel.AsyncEntry;<br \/>\nimport com.alibaba.csp.sentinel.SphU;<br \/>\nimport com.alibaba.csp.sentinel.slots.block.BlockException;<br \/>\nimport org.springframework.scheduling.annotation.Async;<br \/>\nimport org.springframework.stereotype.Service;<\/p>\n<p>&#064;Service<br \/>\npublic class AsyncService {<\/p>\n<p>    &#064;Async<br \/>\n    public void asyncHandle() {<br \/>\n        AsyncEntry entry &#061; null;<br \/>\n        try {<br \/>\n            \/\/ \u5f02\u6b65\u57cb\u70b9\u5b9a\u4e49\u8d44\u6e90<br \/>\n            entry &#061; SphU.asyncEntry(&#034;asyncHandleResource&#034;);<br \/>\n            \/\/ \u5f02\u6b65\u4e1a\u52a1\u903b\u8f91<br \/>\n            System.out.println(&#034;\u5f02\u6b65\u5904\u7406\u4e1a\u52a1&#8230;&#034;);<br \/>\n        } catch (BlockException e) {<br \/>\n            \/\/ \u9650\u6d41\/\u7194\u65ad\u5904\u7406<br \/>\n            System.out.println(&#034;\u5f02\u6b65\u8d44\u6e90\u88ab\u9650\u6d41\/\u7194\u65ad&#034;);<br \/>\n        } finally {<br \/>\n            if (entry !&#061; null) {<br \/>\n                entry.exit(); \/\/ \u91ca\u653e\u8d44\u6e90<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<h3>\u4e94\u3001\u907f\u5751\u6307\u5357&#xff1a;\u5b9e\u64cd\u4e2d\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u7ed3\u5408\u5b9e\u6218\u7ecf\u9a8c&#xff0c;\u6574\u7406\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u5e38\u89c1\u95ee\u9898&#xff0c;\u5e2e\u4f60\u5feb\u901f\u6392\u67e5\u95ee\u9898&#xff0c;\u907f\u514d\u8e29\u5751&#xff1a;<\/p>\n<h4>5.1 \u95ee\u98981&#xff1a;Dashboard \u4e2d\u770b\u4e0d\u5230\u8d44\u6e90\/\u6d41\u91cf\u6570\u636e<\/h4>\n<p>\u6392\u67e5\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u68c0\u67e5\u9879\u76ee\u914d\u7f6e&#xff1a;\u786e\u8ba4 spring.cloud.sentinel.transport.dashboard \u914d\u7f6e\u6b63\u786e&#xff0c;\u4e0e Dashboard \u5730\u5740\u4e00\u81f4&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u7aef\u53e3\u5360\u7528&#xff1a;\u5ba2\u6237\u7aef\u4e0e Dashboard \u901a\u4fe1\u7684\u7aef\u53e3&#xff08;\u9ed8\u8ba4 8719&#xff09;\u662f\u5426\u88ab\u5360\u7528&#xff0c;\u53ef\u901a\u8fc7 netstat -ano | findstr 8719 \u6392\u67e5&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u786e\u8ba4\u8d44\u6e90\u88ab\u8bbf\u95ee&#xff1a;Sentinel \u662f\u201c\u61d2\u52a0\u8f7d\u201d\u7684&#xff08;\u9664\u975e\u914d\u7f6e\u4e86 eager: true&#xff09;&#xff0c;\u9700\u5148\u8bbf\u95ee\u4e00\u6b21\u63a5\u53e3&#xff0c;\u8d44\u6e90\u624d\u4f1a\u88ab\u4e0a\u62a5\u5230 Dashboard&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u4f9d\u8d56\u7248\u672c&#xff1a;\u786e\u4fdd Sentinel \u76f8\u5173\u4f9d\u8d56\u7248\u672c\u4e00\u81f4&#xff08;\u5982 core\u3001transport\u3001dashboard \u7248\u672c\u7edf\u4e00&#xff09;&#xff0c;\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>5.2 \u95ee\u98982&#xff1a;\u89c4\u5219\u914d\u7f6e\u540e\u4e0d\u751f\u6548<\/h4>\n<p>\u6392\u67e5\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u68c0\u67e5\u8d44\u6e90\u540d&#xff1a;\u89c4\u5219\u4e2d\u7684\u8d44\u6e90\u540d\u5fc5\u987b\u4e0e &#064;SentinelResource \u7684 value \u5b8c\u5168\u4e00\u81f4&#xff0c;\u533a\u5206\u5927\u5c0f\u5199&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u89c4\u5219\u7c7b\u578b&#xff1a;\u786e\u8ba4\u89c4\u5219\u7c7b\u578b\u4e0e\u9700\u6c42\u4e00\u81f4&#xff08;\u5982\u8981\u9650\u6d41\u5374\u914d\u7f6e\u4e86\u7194\u65ad\u89c4\u5219&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u9608\u503c\u8bbe\u7f6e&#xff1a;\u786e\u8ba4\u9608\u503c\u8bbe\u7f6e\u5408\u7406&#xff0c;\u6bd4\u5982 QPS \u9608\u503c\u8bbe\u7f6e\u8fc7\u9ad8&#xff0c;\u5bfc\u81f4\u65e0\u6cd5\u89e6\u53d1\u9650\u6d41&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u89c4\u5219\u6301\u4e45\u5316&#xff1a;\u82e5\u914d\u7f6e\u4e86 Nacos \u6301\u4e45\u5316&#xff0c;\u786e\u8ba4 Nacos \u4e2d\u7684\u89c4\u5219\u914d\u7f6e\u6b63\u786e&#xff0c;\u4e14 dataId\u3001groupId \u4e0e\u9879\u76ee\u914d\u7f6e\u4e00\u81f4\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>5.3 \u95ee\u98983&#xff1a;\u964d\u7ea7\u65b9\u6cd5\u4e0d\u6267\u884c<\/h4>\n<p>\u6392\u67e5\u6b65\u9aa4&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u68c0\u67e5\u964d\u7ea7\u65b9\u6cd5\u7b7e\u540d&#xff1a;\u786e\u4fdd\u964d\u7ea7\u65b9\u6cd5\u7684\u53c2\u6570\u4e0e\u539f\u8d44\u6e90\u65b9\u6cd5\u5b8c\u5168\u4e00\u81f4&#xff0c;\u4e14\u6700\u540e\u989d\u5916\u6dfb\u52a0 BlockException \u53c2\u6570&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u6ce8\u89e3\u5c5e\u6027&#xff1a;\u786e\u8ba4 &#064;SentinelResource \u6ce8\u89e3\u6307\u5b9a\u4e86 blockHandler \u5c5e\u6027&#xff0c;\u4e14\u5c5e\u6027\u503c\u4e0e\u964d\u7ea7\u65b9\u6cd5\u540d\u4e00\u81f4&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u533a\u5206\u964d\u7ea7\u7c7b\u578b&#xff1a;blockHandler \u5904\u7406\u7684\u662f\u201c\u9650\u6d41\/\u7194\u65ad\u201d\u89e6\u53d1\u7684\u964d\u7ea7&#xff0c;\u82e5\u8981\u5904\u7406\u201c\u4e1a\u52a1\u5f02\u5e38\u201d\u89e6\u53d1\u7684\u964d\u7ea7&#xff0c;\u9700\u4f7f\u7528 fallback \u5c5e\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u516d\u3001\u603b\u7ed3\u4e0e\u5c55\u671b<\/h3>\n<p>Sentinel \u4f5c\u4e3a\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u3001\u9ad8\u6027\u80fd\u7684\u6d41\u91cf\u6cbb\u7406\u7ec4\u4ef6&#xff0c;\u5176\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u201c\u9632\u60a3\u4e8e\u672a\u7136\u201d\u2014\u2014\u901a\u8fc7\u9650\u6d41\u3001\u7194\u65ad\u7b49\u673a\u5236&#xff0c;\u63d0\u524d\u62e6\u622a\u5f02\u5e38\u6d41\u91cf&#xff0c;\u907f\u514d\u7cfb\u7edf\u88ab\u51fb\u57ae&#xff0c;\u4fdd\u969c\u5fae\u670d\u52a1\u67b6\u6784\u7684\u7a33\u5b9a\u6027\u3002\u672c\u6587\u4ece\u6838\u5fc3\u4f18\u52bf\u3001\u6982\u5ff5\u89e3\u6790\u3001\u5b9e\u64cd\u843d\u5730\u3001\u8fdb\u9636\u7279\u6027\u3001\u907f\u5751\u6307\u5357\u4e94\u4e2a\u7ef4\u5ea6&#xff0c;\u5168\u9762\u8bb2\u89e3\u4e86 Sentinel \u7684\u4f7f\u7528&#xff0c;\u8986\u76d6\u4e86\u4ece\u65b0\u624b\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\u7684\u5168\u6d41\u7a0b\u3002<\/p>\n<p>\u7ed3\u5408\u5b9e\u6218\u7ecf\u9a8c&#xff0c;Sentinel \u7684\u4f7f\u7528\u6838\u5fc3\u53ef\u603b\u7ed3\u4e3a\u4e09\u70b9&#xff1a;<\/p>\n<li>\n<p>\u660e\u786e\u8d44\u6e90&#xff1a;\u627e\u51c6\u9700\u8981\u88ab\u4fdd\u62a4\u7684\u63a5\u53e3\/\u670d\u52a1&#xff0c;\u5408\u7406\u5b9a\u4e49\u8d44\u6e90&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u7cbe\u51c6\u914d\u89c4&#xff1a;\u6839\u636e\u4e1a\u52a1\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u89c4\u5219\u7c7b\u578b&#xff0c;\u8bbe\u7f6e\u5408\u7406\u7684\u9608\u503c&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u515c\u5e95\u964d\u7ea7&#xff1a;\u4e3a\u6bcf\u4e2a\u8d44\u6e90\u914d\u7f6e\u5408\u9002\u7684\u964d\u7ea7\u903b\u8f91&#xff0c;\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/li>\n<p>\u672a\u6765&#xff0c;Sentinel \u8fd8\u5c06\u6301\u7eed\u8fed\u4ee3&#xff0c;\u8fdb\u4e00\u6b65\u6574\u5408\u670d\u52a1\u7f51\u683c&#xff08;\u5982 Istio&#xff09;\u3001\u5b9e\u73b0\u57fa\u4e8e AI \u7684\u667a\u80fd\u6d41\u63a7&#xff0c;\u8ba9\u6d41\u91cf\u6cbb\u7406\u53d8\u5f97\u66f4\u7b80\u5355\u3001\u66f4\u9ad8\u6548\u3002\u5bf9\u4e8e\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u638c\u63e1 Sentinel \u4e0d\u4ec5\u80fd\u63d0\u5347\u9879\u76ee\u7684\u7a33\u5b9a\u6027&#xff0c;\u66f4\u662f\u5fae\u670d\u52a1\u67b6\u6784\u80fd\u529b\u7684\u91cd\u8981\u4f53\u73b0\u3002<\/p>\n<p>\u6700\u540e&#xff0c;\u5efa\u8bae\u5927\u5bb6\u7ed3\u5408\u672c\u6587\u7684\u5b9e\u64cd\u6b65\u9aa4&#xff0c;\u4eb2\u624b\u642d\u5efa\u4e00\u4e2a Demo&#xff0c;\u5c1d\u8bd5\u914d\u7f6e\u4e0d\u540c\u7684\u89c4\u5219&#xff0c;\u611f\u53d7 Sentinel \u7684\u5f3a\u5927\u529f\u80fd\u3002\u5b9e\u8df5\u51fa\u771f\u77e5&#xff0c;\u53ea\u6709\u771f\u6b63\u52a8\u624b\u5b9e\u64cd&#xff0c;\u624d\u80fd\u5c06\u7406\u8bba\u8f6c\u5316\u4e3a\u5b9e\u6218\u80fd\u529b&#xff0c;\u8ba9 Sentinel \u6210\u4e3a\u4f60\u9879\u76ee\u4e2d\u7684\u201c\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5fae\u670d\u52a1\u67b6\u6784\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u96ea\u5d29\u6548\u5e94\u201d\u65e9\u5df2\u4e0d\u662f\u964c\u751f\u7684\u540d\u8bcd\u2014\u2014\u4e00\u4e2a\u670d\u52a1\u7684\u8d85\u65f6\u3001\u5f02\u5e38&#xff0c;\u53ef\u80fd\u50cf\u591a\u7c73\u8bfa\u9aa8\u724c\u4e00\u6837&#xff0c;\u5f15\u53d1\u4e0a\u4e0b\u6e38\u670d\u52a1\u8fde\u9501\u5d29\u6e83&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea\u3002\u6b64\u524d\u4e3b\u6d41\u7684\u7194\u65ad\u7ec4\u4ef6 Hystrix \u56e0\u793e\u533a\u505c\u66f4\u3001\u914d\u7f6e\u590d\u6742\u3001\u6027\u80fd\u74f6\u9888\u7b49\u95ee\u9898\u9010\u6e10\u9000\u51fa\u821e\u53f0&#xff0c;\u800c\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7684 Sentinel \u51ed\u501f\u8f7b\u91cf\u3001\u9ad8\u6548\u3001\u529f\u80fd\u5168\u9762\u7684\u4f18\u52bf&#xff0c;\u6210\u4e3a\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u4fdd\u969c\u7684\u9996\u9009\u65b9\u6848\u3002<br \/>\nSentinel \u4ee5\u201c\u6d41\u91cf\u4e3a\u5207\u5165\u70b9\u201d&#xff0c;\u8986\u76d6\u6d41<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2565,1348,188],"topic":[],"class_list":["post-68746","post","type-post","status-publish","format-standard","hentry","category-server","tag-sentinel","tag-1348","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \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\/68746.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u5fae\u670d\u52a1\u67b6\u6784\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u96ea\u5d29\u6548\u5e94\u201d\u65e9\u5df2\u4e0d\u662f\u964c\u751f\u7684\u540d\u8bcd\u2014\u2014\u4e00\u4e2a\u670d\u52a1\u7684\u8d85\u65f6\u3001\u5f02\u5e38&#xff0c;\u53ef\u80fd\u50cf\u591a\u7c73\u8bfa\u9aa8\u724c\u4e00\u6837&#xff0c;\u5f15\u53d1\u4e0a\u4e0b\u6e38\u670d\u52a1\u8fde\u9501\u5d29\u6e83&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea\u3002\u6b64\u524d\u4e3b\u6d41\u7684\u7194\u65ad\u7ec4\u4ef6 Hystrix \u56e0\u793e\u533a\u505c\u66f4\u3001\u914d\u7f6e\u590d\u6742\u3001\u6027\u80fd\u74f6\u9888\u7b49\u95ee\u9898\u9010\u6e10\u9000\u51fa\u821e\u53f0&#xff0c;\u800c\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7684 Sentinel \u51ed\u501f\u8f7b\u91cf\u3001\u9ad8\u6548\u3001\u529f\u80fd\u5168\u9762\u7684\u4f18\u52bf&#xff0c;\u6210\u4e3a\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u4fdd\u969c\u7684\u9996\u9009\u65b9\u6848\u3002 Sentinel \u4ee5\u201c\u6d41\u91cf\u4e3a\u5207\u5165\u70b9\u201d&#xff0c;\u8986\u76d6\u6d41\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/68746.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-30T09:04:59+00:00\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68746.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/68746.html\",\"name\":\"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-30T09:04:59+00:00\",\"dateModified\":\"2026-01-30T09:04:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/68746.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/68746.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68746.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09\"}]},{\"@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":"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \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\/68746.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u5fae\u670d\u52a1\u67b6\u6784\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u96ea\u5d29\u6548\u5e94\u201d\u65e9\u5df2\u4e0d\u662f\u964c\u751f\u7684\u540d\u8bcd\u2014\u2014\u4e00\u4e2a\u670d\u52a1\u7684\u8d85\u65f6\u3001\u5f02\u5e38&#xff0c;\u53ef\u80fd\u50cf\u591a\u7c73\u8bfa\u9aa8\u724c\u4e00\u6837&#xff0c;\u5f15\u53d1\u4e0a\u4e0b\u6e38\u670d\u52a1\u8fde\u9501\u5d29\u6e83&#xff0c;\u6700\u7ec8\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea\u3002\u6b64\u524d\u4e3b\u6d41\u7684\u7194\u65ad\u7ec4\u4ef6 Hystrix \u56e0\u793e\u533a\u505c\u66f4\u3001\u914d\u7f6e\u590d\u6742\u3001\u6027\u80fd\u74f6\u9888\u7b49\u95ee\u9898\u9010\u6e10\u9000\u51fa\u821e\u53f0&#xff0c;\u800c\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u7684 Sentinel \u51ed\u501f\u8f7b\u91cf\u3001\u9ad8\u6548\u3001\u529f\u80fd\u5168\u9762\u7684\u4f18\u52bf&#xff0c;\u6210\u4e3a\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u4fdd\u969c\u7684\u9996\u9009\u65b9\u6848\u3002 Sentinel \u4ee5\u201c\u6d41\u91cf\u4e3a\u5207\u5165\u70b9\u201d&#xff0c;\u8986\u76d6\u6d41","og_url":"https:\/\/www.wsisp.com\/helps\/68746.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-30T09:04:59+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/68746.html","url":"https:\/\/www.wsisp.com\/helps\/68746.html","name":"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-30T09:04:59+00:00","dateModified":"2026-01-30T09:04:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/68746.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/68746.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/68746.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5fae\u670d\u52a1\u7a33\u5b9a\u6027\u5b88\u62a4\u8005\uff1aSentinel \u5168\u9762\u4f7f\u7528\u6307\u5357\uff08\u4ece\u5165\u95e8\u5230\u4f01\u4e1a\u7ea7\u843d\u5730\uff09"}]},{"@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\/68746","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=68746"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68746\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=68746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=68746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=68746"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=68746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}