{"id":197369,"date":"2020-08-06T09:00:40","date_gmt":"2020-08-06T01:00:40","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=197369"},"modified":"2020-08-02T22:49:08","modified_gmt":"2020-08-02T14:49:08","slug":"distributed-current-limiting","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/distributed-current-limiting.html","title":{"rendered":"\u4ebf\u7ea7\u6d41\u91cf\u4e0b\u5206\u5e03\u5f0f\u9650\u6d41\u7684\u5fc5\u77e5\u8981\u70b9"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728\u4e92\u8054\u7f51\u5e94\u7528\u4e2d\uff0c\u9ad8\u5e76\u53d1\u7cfb\u7edf\u4f1a\u9762\u4e34\u4e00\u4e2a\u91cd\u5927\u7684\u6311\u6218\uff0c\u90a3\u5c31\u662f\u5927\u91cf\u6d41\u9ad8\u5e76\u53d1\u8bbf\u95ee\uff0c\u6bd4\u5982\uff1a\u5929\u732b\u7684\u53cc\u5341\u4e00\u3001\u4eac\u4e1c618\u3001\u79d2\u6740\u3001\u62a2\u8d2d\u4fc3\u9500\u7b49\uff0c\u8fd9\u4e9b\u90fd\u662f\u5178\u578b\u7684\u5927\u6d41\u91cf\u9ad8\u5e76\u53d1\u573a\u666f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4f5c\u8005\u4e2a\u4eba\u7814\u53d1\u7684\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\uff0c\u63d0\u4f9b\u7684\u7b80\u5355\u3001\u7a33\u5b9a\u3001\u53ef\u6269\u5c55\u7684\u5ef6\u8fdf\u6d88\u606f\u961f\u5217\u6846\u67b6\uff0c\u5177\u6709\u7cbe\u51c6\u7684\u5b9a\u65f6\u4efb\u52a1\u548c\u5ef6\u8fdf\u961f\u5217\u5904\u7406\u529f\u80fd\u3002\u81ea\u5f00\u6e90\u534a\u5e74\u591a\u4ee5\u6765\uff0c\u5df2\u6210\u529f\u4e3a\u5341\u51e0\u5bb6\u4e2d\u5c0f\u578b\u4f01\u4e1a\u63d0\u4f9b\u4e86\u7cbe\u51c6\u5b9a\u65f6\u8c03\u5ea6\u65b9\u6848\uff0c\u7ecf\u53d7\u4f4f\u4e86\u751f\u4ea7\u73af\u5883\u7684\u8003\u9a8c\u3002\u4e3a\u4f7f\u66f4\u591a\u7ae5\u978b\u53d7\u76ca\uff0c\u73b0\u7ed9\u51fa\u5f00\u6e90\u6846\u67b6\u5730\u5740\uff1a<\/p>\n

https:\/\/github.com\/sunshinelyz\/mykit-delay<\/p>\n

PS: \u6b22\u8fce\u5404\u4f4dStar\u6e90\u7801\uff0c\u4e5f\u53ef\u4ee5pr\u4f60\u725b\u903c\u54c4\u54c4\u7684\u4ee3\u7801\u3002<\/p>\n

\u5199\u5728\u524d\u9762<\/strong><\/strong><\/div>\n

\u5728\u4e92\u8054\u7f51\u5e94\u7528\u4e2d\uff0c\u9ad8\u5e76\u53d1\u7cfb\u7edf\u4f1a\u9762\u4e34\u4e00\u4e2a\u91cd\u5927\u7684\u6311\u6218\uff0c\u90a3\u5c31\u662f\u5927\u91cf\u6d41\u9ad8\u5e76\u53d1\u8bbf\u95ee\uff0c\u6bd4\u5982\uff1a\u5929\u732b\u7684\u53cc\u5341\u4e00\u3001\u4eac\u4e1c618\u3001\u79d2\u6740\u3001\u62a2\u8d2d\u4fc3\u9500\u7b49\uff0c\u8fd9\u4e9b\u90fd\u662f\u5178\u578b\u7684\u5927\u6d41\u91cf\u9ad8\u5e76\u53d1\u573a\u666f\u3002<\/p>\n

\u6ce8\u610f\uff1a\u7531\u4e8e\u539f\u6587\u7bc7\u5e45\u6bd4\u8f83\u957f\uff0c\u6240\u4ee5\u88ab\u62c6\u5206\u4e3a\uff1a\u7406\u8bba\u3001\u7b97\u6cd5\u3001\u5b9e\u6218(HTTP\u63a5\u53e3\u5b9e\u6218+\u5206\u5e03\u5f0f\u9650\u6d41\u5b9e\u6218)\u4e09\u5927\u90e8\u5206\u3002<\/p>\n

\u9ad8\u5e76\u53d1\u7cfb\u7edf\u9650\u6d41<\/strong><\/strong><\/div>\n

\u77ed\u65f6\u95f4\u5185\u5de8\u5927\u7684\u8bbf\u95ee\u6d41\u91cf\uff0c\u6211\u4eec\u5982\u4f55\u8ba9\u7cfb\u7edf\u5728\u5904\u7406\u9ad8\u5e76\u53d1\u7684\u540c\u65f6\u8fd8\u80fd\u4fdd\u8bc1\u81ea\u8eab\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027?\u6709\u4eba\u4f1a\u8bf4\uff0c\u589e\u52a0\u673a\u5668\u5c31\u53ef\u4ee5\u4e86\uff0c\u56e0\u4e3a\u6211\u7684\u7cfb\u7edf\u662f\u5206\u5e03\u5f0f\u7684\uff0c\u6240\u4ee5\u53ef\u4ee5\u53ea\u9700\u8981\u589e\u52a0\u673a\u5668\u5c31\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u4e86\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u901a\u8fc7\u589e\u52a0\u673a\u5668\u8fd8\u662f\u4e0d\u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u600e\u4e48\u529e\u5462?\u800c\u4e14\u8fd9\u79cd\u60c5\u51b5\u4e0b\u53c8\u4e0d\u80fd\u65e0\u9650\u5236\u7684\u589e\u52a0\u673a\u5668\uff0c\u670d\u52a1\u5668\u7684\u786c\u4ef6\u8d44\u6e90\u59cb\u7ec8\u90fd\u662f\u6709\u9650\u7684\uff0c\u5728\u6709\u9650\u7684\u8d44\u6e90\u4e0b\uff0c\u6211\u4eec\u8981\u5e94\u5bf9\u8fd9\u79cd\u5927\u6d41\u91cf\u9ad8\u5e76\u53d1\u7684\u8bbf\u95ee\uff0c\u5c31\u4e0d\u5f97\u4e0d\u91c7\u53d6\u4e00\u4e9b\u5176\u4ed6\u7684\u63aa\u65bd\u6765\u4fdd\u62a4\u6211\u4eec\u7684\u540e\u7aef\u670d\u52a1\u7cfb\u7edf\u4e86\uff0c\u6bd4\u5982\uff1a\u7f13\u5b58\u3001\u5f02\u6b65\u3001\u964d\u7ea7\u3001\u9650\u6d41\u3001\u9759\u6001\u5316\u7b49\u3002<\/p>\n

\u8fd9\u91cc\uff0c\u6211\u4eec\u5148\u8bf4\u8bf4\u5982\u4f55\u5b9e\u73b0\u9650\u6d41\u3002<\/p>\n

\u4ec0\u4e48\u662f\u9650\u6d41?<\/strong><\/strong><\/div>\n

\u5728\u9ad8\u5e76\u53d1\u7cfb\u7edf\u4e2d\uff0c\u9650\u6d41\u901a\u5e38\u6307\u7684\u662f\uff1a\u5bf9\u9ad8\u5e76\u53d1\u8bbf\u95ee\u6216\u8005\u8bf7\u6c42\u8fdb\u884c\u9650\u901f\u6216\u8005\u5bf9\u4e00\u4e2a\u65f6\u95f4\u5185\u7684\u8bf7\u6c42\u8fdb\u884c\u9650\u901f\u6765\u4fdd\u62a4\u6211\u4eec\u7684\u7cfb\u7edf\uff0c\u4e00\u65e6\u8fbe\u5230\u7cfb\u7edf\u7684\u9650\u901f\u89c4\u5219(\u6bd4\u5982\u7cfb\u7edf\u9650\u5236\u7684\u8bf7\u6c42\u901f\u5ea6)\uff0c\u5219\u53ef\u4ee5\u91c7\u7528\u4e0b\u9762\u7684\u65b9\u5f0f\u6765\u5904\u7406\u8fd9\u4e9b\u8bf7\u6c42\u3002<\/p>\n

    \n
  • \u62d2\u7edd\u670d\u52a1(\u53cb\u597d\u63d0\u793a\u6216\u8005\u8df3\u8f6c\u5230\u9519\u8bef\u9875\u9762)\u3002<\/li>\n
  • \u6392\u961f\u6216\u7b49\u5f85(\u6bd4\u5982\u79d2\u6740\u7cfb\u7edf)\u3002<\/li>\n
  • \u670d\u52a1\u964d\u7ea7(\u8fd4\u56de\u9ed8\u8ba4\u7684\u515c\u5e95\u6570\u636e)\u3002<\/li>\n<\/ul>\n

    \u5176\u5b9e\uff0c\u5c31\u662f\u5bf9\u8bf7\u6c42\u8fdb\u884c\u9650\u901f\uff0c\u6bd4\u598210r\/s\uff0c\u5373\u6bcf\u79d2\u53ea\u5141\u8bb810\u4e2a\u8bf7\u6c42\uff0c\u8fd9\u6837\u5c31\u9650\u5236\u4e86\u8bf7\u6c42\u7684\u901f\u5ea6\u3002\u4ece\u67d0\u79cd\u610f\u4e49\u4e0a\u8bf4\uff0c\u9650\u6d41\uff0c\u5176\u5b9e\u5c31\u662f\u5728\u4e00\u5b9a\u9891\u7387\u4e0a\u8fdb\u884c\u91cf\u7684\u9650\u5236\u3002<\/p>\n

    \u9650\u6d41\u4e00\u822c\u7528\u6765\u63a7\u5236\u7cfb\u7edf\u670d\u52a1\u8bf7\u6c42\u7684\u901f\u7387\uff0c\u6bd4\u5982\uff1a\u5929\u732b\u53cc\u5341\u4e00\u7684\u9650\u6d41\uff0c\u4eac\u4e1c618\u7684\u9650\u6d41\uff0c12306\u7684\u62a2\u7968\u7b49\u3002<\/p>\n

    \u9650\u6d41\u6709\u54ea\u4e9b\u4f7f\u7528\u573a\u666f?<\/strong><\/strong><\/div>\n

    \u8fd9\u91cc\uff0c\u6211\u4eec\u6765\u4e3e\u4e00\u4e2a\u4f8b\u5b50\uff0c\u5047\u8bbe\u4f60\u505a\u4e86\u4e00\u4e2a\u5546\u57ce\u7cfb\u7edf\uff0c\u67d0\u4e2a\u8282\u5047\u65e5\u7684\u65f6\u5019\uff0c\u7a81\u7136\u53d1\u73b0\u63d0\u4ea4\u8ba2\u5355\u7684\u63a5\u53e3\u8bf7\u6c42\u6bd4\u5e73\u65f6\u8bf7\u6c42\u91cf\u7a81\u7136\u4e0a\u6da8\u4e86\u5c06\u8fd150\u500d\uff0c\u6ca1\u591a\u4e45\u63d0\u4ea4\u8ba2\u5355\u7684\u63a5\u53e3\u5c31\u8d85\u65f6\u5e76\u4e14\u629b\u51fa\u4e86\u5f02\u5e38\uff0c\u51e0\u4e4e\u4e0d\u53ef\u7528\u4e86\u3002\u800c\u4e14\uff0c\u56e0\u4e3a\u8ba2\u5355\u63a5\u53e3\u8d85\u65f6\u4e0d\u53ef\u7528\uff0c\u8fd8\u5bfc\u81f4\u4e86\u7cfb\u7edf\u5176\u5b83\u670d\u52a1\u51fa\u73b0\u6545\u969c\u3002<\/p>\n

    \u6211\u4eec\u8be5\u5982\u4f55\u5e94\u5bf9\u8fd9\u79cd\u5927\u6d41\u91cf\u573a\u666f\u5462?\u4e00\u79cd\u5178\u578b\u7684\u5904\u7406\u65b9\u6848\u5c31\u662f\u9650\u6d41\u3002\u5f53\u7136\u4e86\uff0c\u9664\u4e86\u9650\u6d41\u4e4b\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u7684\u5904\u7406\u65b9\u6848\uff0c\u6211\u4eec\u8fd9\u7bc7\u6587\u7ae0\u5c31\u4e3b\u8981\u8bb2\u9650\u6d41\u3002<\/p>\n

      \n
    • \u5bf9\u7a00\u7f3a\u8d44\u6e90\u7684\u79d2\u6740\u3001\u62a2\u8d2d;<\/li>\n
    • \u5bf9\u6570\u636e\u5e93\u7684\u9ad8\u5e76\u53d1\u8bfb\u5199\u64cd\u4f5c\uff0c\u6bd4\u5982\u63d0\u4ea4\u8ba2\u5355\uff0c\u77ac\u95f4\u5f80\u6570\u636e\u5e93\u63d2\u5165\u5927\u91cf\u7684\u6570\u636e;<\/li>\n<\/ul>\n

      \u9650\u6d41\u53ef\u4ee5\u8bf4\u662f\u5904\u7406\u9ad8\u5e76\u53d1\u95ee\u9898\u7684\u5229\u5668\uff0c\u6709\u4e86\u9650\u6d41\u5c31\u53ef\u4ee5\u4e0d\u7528\u62c5\u5fc3\u77ac\u95f4\u9ad8\u5cf0\u6d41\u91cf\u538b\u57ae\u7cfb\u7edf\u670d\u52a1\u6216\u8005\u670d\u52a1\u96ea\u5d29\uff0c\u6700\u7ec8\u505a\u5230\u6709\u635f\u670d\u52a1\u800c\u4e0d\u662f\u4e0d\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u4f5c\u8005\u4e2a\u4eba\u7814\u53d1\u7684\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\uff0c\u63d0\u4f9b\u7684\u7b80\u5355\u3001\u7a33\u5b9a\u3001\u53ef\u6269\u5c55\u7684\u5ef6\u8fdf\u6d88\u606f\u961f\u5217\u6846\u67b6\uff0c\u5177\u6709\u7cbe\u51c6\u7684\u5b9a\u65f6\u4efb\u52a1\u548c\u5ef6\u8fdf\u961f\u5217\u5904\u7406\u529f\u80fd […]<\/p>\n","protected":false},"author":1898,"featured_media":197371,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[587],"class_list":["post-197369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-587"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/197369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1898"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=197369"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/197369\/revisions"}],"predecessor-version":[{"id":197669,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/197369\/revisions\/197669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/197371"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=197369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=197369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=197369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}