{"id":16055,"date":"2025-04-18T22:33:29","date_gmt":"2025-04-18T14:33:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/16055.html"},"modified":"2025-04-18T22:33:29","modified_gmt":"2025-04-18T14:33:29","slug":"golang%e5%80%92%e8%85%be%e4%b8%80%e6%ac%be%e7%ae%80%e9%85%8d%e7%9a%84%e5%85%b7%e6%9c%89%e8%af%b7%e6%b1%82%e6%8e%92%e9%98%9f%e5%8a%9f%e8%83%bd%e7%9a%84%e5%b9%b6%e5%8f%91%e5%8f%97%e9%99%90%e6%9c%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/16055.html","title":{"rendered":"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b86f596.gif\" \/><\/p>\n<p style=\"text-align:left\">golang\u5b98\u65b9\u6307\u5357<sup>[1]<\/sup>\u7ed9\u4e86\u4e00\u4e9b\u4ee3\u7801\u7247\u6bb5&#xff0c;\u5c42\u5c42\u9012\u8fdb\u6f14\u793a\u4e86\u4fe1\u9053\u7684\u80fd\u529b:<\/p>\n<p style=\"text-align:left\">1&gt;. \u4fe1\u53f7\u91cf2&gt;. \u9650\u6d41\u80fd\u529b<\/p>\n<p> var sem &#061; make(chan int, MaxOutstanding)\u00a0<br \/>\n\u00a0<br \/>\nfunc Serve(queue chan *Request) {<br \/>\n\u00a0 \u00a0\u00a0for\u00a0req :&#061; range queue {<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 req:&#061; req<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 sem &lt;- 1 \u00a0\u00a0<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 go\u00a0func() { \u00a0 \/\/ \u53ea\u4f1a\u5f00\u542fMaxOutstanding\u4e2a\u5e76\u53d1\u534f\u7a0b<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 process(req)<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;-sem<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 }()<br \/>\n\u00a0 \u00a0 }<br \/>\n} <\/p>\n<p style=\"text-align:left\">\u4e0a\u9762\u51fa\u73b0\u4e86\u4e24\u4e2a\u4fe1\u9053&#xff1a;<\/p>\n<p style=\"text-align:left\">\u2460\u00a0sem\u00a0\u63d0\u4f9b\u4e86\u9650\u5236\u670d\u52a1\u7aef\u5e76\u53d1\u5904\u7406\u8bf7\u6c42\u7684\u4fe1\u53f7\u91cf\u2461\u00a0queue\u00a0\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42\u961f\u5217&#xff0c;\u8d77\u5a92\u4ecb\/\u89e3\u8026\u7684\u4f5c\u7528<\/p>\n<hr \/>\n<p style=\"text-align:left\">\u8fdb\u4e00\u6b65\u6307\u5357\u7ed9\u51fa\u4e86\u4fe1\u9053\u7684\u53e6\u4e00\u4e2a\u7528\u6cd5&#xff1a; 3&gt;.\u00a0\u89e3\u591a\u8def\u590d\u7528<\/p>\n<p style=\"text-align:left\">\u591a\u8def\u590d\u7528\u662f\u7f51\u7edc\u7f16\u7a0b\u4e2d\u4e00\u4e2a\u8033\u719f\u80fd\u8be6\u7684\u6982\u5ff5&#xff0c;nginx redis\u7b49\u9ad8\u6027\u80fdweb\u3001\u5185\u5b58kv\u90fd\u7528\u5230\u4e86\u8fd9\u4e2a\u6280\u672f \u3002<\/p>\n<p style=\"text-align:left\">\u8fd9\u4e2a\u89e3\u591a\u8def\u590d\u7528\u662f\u600e\u4e48\u7406\u89e3\u5462&#xff1f;<\/p>\n<p style=\"text-align:left\">\u79bb\u6563\/\u72ec\u7acb\/\u5e76\u53d1\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\u88ab\u670d\u52a1\u7aefServe\u6536\u655b\u4e4b\u540e&#xff0c; Serve\u5c31\u8d77\u5230\u4e86\u591a\u8def\u590d\u7528\u7684\u6982\u5ff5&#xff0c;\u5728Request\u5b9a\u4e49resultChan\u4fe1\u9053&#xff0c;\u5c31\u7ed9\u6bcf\u4e2a\u5ba2\u6237\u7aef\u8bf7\u6c42\u63d0\u4f9b\u4e86\u72ec\u7acb\u83b7\u53d6\u8bf7\u6c42\u7ed3\u679c\u7684\u80fd\u529b&#xff0c;\u8fd9\u4fbf\u662f\u4e00\u79cd\u89e3\u591a\u8def\u590d\u7528\u3002<\/p>\n<hr \/>\n<p style=\"text-align:left\">\u4ece\u5b9e\u9645\u6548\u679c\u770b\u8fd9\u5c31\u662f\u5e38\u89c1\u7684\u4e92\u8054\u7f51web\u670d\u52a1\u5668&#xff1a;\u4e00\u6b3e\u5177\u5907\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u9650\u6d41\u670d\u52a1\u5668\u3002<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b882988.png\" alt=\"f09bb9cbd0a0799b91ce51dfd7c16b23.png\" \/> <\/p>\n<p style=\"text-align:left\">\u5b98\u65b9\u6307\u5357\u5e76\u6ca1\u6709\u5b8c\u6574\u5b9e\u73b0\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u5de5\u7a0b\u3002<\/p>\n<p style=\"text-align:left\">\u4e0b\u9762\u662f\u6211\u7684\u5de5\u7a0b\u5316\u5b9e\u73b0&#xff0c; \u8bb0\u5f55\u5b9e\u8df5\u4e2d\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<h3>\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668<\/h3>\n<ul>\n<li>\n<p style=\"text-align:left\">\u4fe1\u9053queue\u63a5\u6536\u5ba2\u6237\u7aef\u8bf7\u6c42,\u89e3\u8026\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668&#xff0c;\u5929\u7136\u5177\u5907\u6392\u961f\u80fd\u529b<\/p>\n<\/li>\n<li>\n<p style=\"text-align:left\">\u4fe1\u53f7\u91cf\u4fe1\u9053sem\u63d0\u4f9b\u4e86\u5e76\u53d1\u53d7\u9650\u7684\u80fd\u529b<\/p>\n<\/li>\n<li>\n<p style=\"text-align:left\">\u670d\u52a1\u5668\u5904\u7406\u5b8c&#xff0c;\u5411\u89e3\u591a\u8def\u590d\u7528\u4fe1\u9053req.resultChan\u5199\u5165\u54cd\u5e94\u7ed3\u679c\u3002<\/p>\n<\/li>\n<\/ul>\n<p> \/* \u5b9e\u73b0\u4e00\u4e2a\u6709\u8bf7\u6c42\u961f\u5217\u529f\u80fd\u7684\u5e76\u53d1\u8bf7\u6c42\u53d7\u9650\u670d\u52a1\u5668*\/<\/p>\n<p>package main<\/p>\n<p>import (<br \/>\n\u00a0&#034;fmt&#034;<br \/>\n\u00a0&#034;sync&#034;<br \/>\n\u00a0&#034;time&#034;<br \/>\n)<\/p>\n<p>var sem &#061; make(chan int, Maxoutstanding)<\/p>\n<p>var wg2 sync.WaitGroup<\/p>\n<p>func server(queue chan *Request) {<br \/>\n\u00a0fmt.Printf(&#034;Server is already, listen req \\\\n&#034;)<\/p>\n<p>\u00a0for req :&#061; range queue {<br \/>\n\u00a0req :&#061; req<br \/>\n\u00a0sem &lt;- 1<\/p>\n<p>\u00a0wg2.Add(1)<br \/>\n\u00a0go func() {<br \/>\n\u00a0defer wg2.Done()<br \/>\n\u00a0process(req)<br \/>\n\u00a0&lt;-sem<br \/>\n\u00a0}()<br \/>\n\u00a0}<br \/>\n}<\/p>\n<p>func process(req *Request) {<br \/>\n\u00a0s :&#061; sum(req.args)<br \/>\n\u00a0req.resultChan &lt;- s<br \/>\n}<br \/>\nfunc sum(a []int) (s int) {<br \/>\n\u00a0for i :&#061; 1; i &lt;&#061; a[0]; i&#043;&#043; {<br \/>\n\u00a0s &#043;&#061; i<br \/>\n\u00a0}<br \/>\n\u00a0time.Sleep(time.Millisecond * 20)<br \/>\n\u00a0return s<br \/>\n} <\/p>\n<p style=\"text-align:left\">time.Sleep\u6a21\u62df\u670d\u52a1\u5668\u5904\u7406\u8bf7\u6c42\u5355\u6b21\u8017\u65f620ms&#xff0c; \u8f93\u51fa\u6570\u5b57\u7684\u7d2f\u52a0&#xff0c;eg&#xff1a; input&#xff1a; 100&#xff1b;output: (1&#043;100)\/2*100 &#061;5050<\/p>\n<p style=\"text-align:left\">wg2 sync.WaitGroup\u662f\u4e00\u4e2a\u52a8\u6001\u6d3b\u8dc3\u7684Goroutine\u8ba1\u6570\u5668&#xff0c;\u6ce8\u610f\u7528\u6cd5\u548c\u4f4d\u7f6e&#xff0c;wg2\u7684\u4f5c\u7528\u662f&#xff1a;\u7b49\u5f85\u6240\u6709\u8bf7\u6c42\u5904\u7406\u5b8c\u6210\u3002<\/p>\n<h3>\u5e76\u53d1\u5ba2\u6237\u7aef\u8bf7\u6c42<\/h3>\n<p style=\"text-align:left\">for\u5faa\u73af\u5f00\u542f\u5e76\u53d1\u5ba2\u6237\u7aef\u8bf7\u6c42&#xff0c;<\/p>\n<ul>\n<li>\n<p style=\"text-align:left\">\u6bcf\u4e2a\u8bf7\u6c42\u5165\u9a7b\u4e00\u4e2a\u72ec\u7acb\u7684Goroutine&#xff0c;\u72ec\u7acb\u5411\u4fe1\u9053queue\u6295\u9012\u8bf7\u6c42\u548c\u63a5\u6536\u54cd\u5e94<\/p>\n<\/li>\n<\/ul>\n<p> package main<\/p>\n<p>import (<br \/>\n\u00a0&#034;fmt&#034;<br \/>\n\u00a0&#034;sync&#034;<br \/>\n)<\/p>\n<p>type Request struct {<br \/>\n\u00a0args \u00a0 \u00a0 \u00a0 []int<br \/>\n\u00a0resultChan chan int<br \/>\n}<\/p>\n<p>var wg1 sync.WaitGroup<\/p>\n<p>func clients() {<br \/>\n\u00a0fmt.Printf(&#034;start %d concurrency client request\\\\n &#034;, concurrencyClients)<br \/>\n\u00a0for i :&#061; 1; i &lt;&#061; concurrencyClients; i&#043;&#043; {<br \/>\n\u00a0r :&#061; &amp;Request{<br \/>\n\u00a0args: \u00a0 \u00a0 \u00a0 []int{i},<br \/>\n\u00a0resultChan: make(chan int),<br \/>\n\u00a0}<br \/>\n\u00a0wg1.Add(1)<br \/>\n\u00a0go ClientReq(r)<br \/>\n\u00a0}<br \/>\n\u00a0wg1.Wait()\u00a0<\/p>\n<p>}<\/p>\n<p>func ClientReq(r *Request) {<br \/>\n\u00a0defer wg1.Done()<br \/>\n\u00a0queue &lt;- r<br \/>\n\u00a0go func() {<br \/>\n\u00a0res :&#061; &lt;-r.resultChan<br \/>\n\u00a0fmt.Printf(&#034;current args is %d, the result is %d \\\\n&#034;, r.args[0], res)<br \/>\n\u00a0}()<br \/>\n} <\/p>\n<p style=\"text-align:left\">wg1 WaitGroup\u7684\u76ee\u7684\u662f\u786e\u4fdd\u6240\u6709\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\u90fd\u5df2\u7ecf\u53d1\u51fa&#xff0c;\u4e4b\u540e\u5ba2\u6237\u7aef\u4efb\u52a1\u7ed3\u675f&#xff0c;\u6240\u4ee5\u6b64\u5904\u6211\u4eec\u65b0\u5f00Goroutine\u5904\u7406\u54cd\u5e94\u7ed3\u679c&#xff08;\u8fd9\u91cc\u53c8\u6709\u95ed\u5305\u7684\u53c2\u4e0e&#xff09;\u3002<\/p>\n<h3>\u5de5\u7a0b\u5316<\/h3>\n<p style=\"text-align:left\">\u5de5\u7a0b\u5316\u4ee3\u7801\u7684\u5148\u540e\u987a\u5e8f&#xff0c;\u51b3\u5b9a\u4e86\u4ee3\u7801\u662f\u5426\u6b7b\u9501\u3002server\u9700\u8981\u5904\u4e8e\u76d1\u542c\u72b6\u6001&#xff0c;\u6545\u5148\u542f\u52a8\u3002<\/p>\n<p style=\"text-align:left\">\u672c\u5904clients\u5728\u4e3b\u534f\u7a0b\u6574\u4f53\u4e0a\u662f\u540c\u6b65\u53d1\u9001&#xff0c;\u5982\u679c\u653e\u5728clients()\u7684\u540e\u9762&#xff0c;clients\u5185\u7684wg1\u53ef\u80fd\u4f1a\u6709\u90e8\u5206\u8bf7\u6c42Goroutine\u963b\u585e\u5728\u4fe1\u9053queue, \u4e14\u6ca1\u6cd5\u5524\u9192, \u8fd0\u884c\u65f6\u4f1a\u68c0\u6d4b\u51fa\u62a5\u6b7b\u9501\u3002<\/p>\n<p> package main<\/p>\n<p>import (<br \/>\n\u00a0&#034;fmt&#034;<br \/>\n\u00a0&#034;time&#034;<br \/>\n)<\/p>\n<p>var concurrencyClients &#061; 1000<br \/>\nvar queueLength &#061; 100<br \/>\nvar queue &#061; make(chan *Request, queueLength) \/\/ \u8bf7\u6c42\u961f\u5217\u957f\u5ea6<br \/>\nvar Maxoutstanding int &#061; 10 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u670d\u52a1\u5668\u5e76\u53d1\u53d7\u965010<\/p>\n<p>func main() {<\/p>\n<p>\u00a0go server(queue)<br \/>\n\u00a0var start &#061; time.Now()<\/p>\n<p>\u00a0clients() \/\/ \u786e\u4fdd\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u5df2\u7ecf\u53d1\u51fa\u53bb<\/p>\n<p>\u00a0wg2.Wait() \/\/ \u786e\u4fdd\u670d\u52a1\u5668\u5904\u7406\u5b8c\u6240\u6709\u7684\u8bf7\u6c42<br \/>\n\u00a0fmt.Printf(&#034;\u5ba2\u6237\u7aef\u5e76\u53d1%d\u8bf7\u6c42&#xff0c;\u670d\u52a1\u5668\u8bf7\u6c42\u961f\u5217\u957f\u5ea6%d&#xff0c;\u670d\u52a1\u5668\u9650\u6d41%d&#xff0c;\u603b\u5171\u8017\u65f6%d ms \\\\n&#034;, concurrencyClients, queueLength, Maxoutstanding, time.Since(start).Milliseconds())<br \/>\n} <\/p>\n<p style=\"text-align:left\">\u4e0a\u9762\u51fa\u73b0\u4e863\u4e2a\u914d\u7f6e\u53d8\u91cf1&gt;. \u00a0\u5ba2\u6237\u7aef\u5e76\u53d1\u8bf7\u6c42\u6570\u91cfconcurrencyClients&#061;1002&gt;. \u00a0\u670d\u52a1\u5668\u6392\u961f\u961f\u5217\u957f\u5ea6queueLength&#061;100&#xff0c; \u4f1a\u4f5c\u7528\u5230\u4fe1\u9053queue3&gt;. \u00a0\u670d\u52a1\u5668\u5e76\u53d1\u53d7\u9650\u9608\u503cMaxoutstanding&#061;10<\/p>\n<p> start 1000 concurrency client request<br \/>\n\u00a0Server is already, listen req\u00a0<br \/>\ncurrent args is 14, the result is 105\u00a0<br \/>\ncurrent args is 2, the result is 3\u00a0<br \/>\ncurrent args is 3, the result is 6\u00a0<br \/>\ncurrent args is 1, the result is 1\u00a0<br \/>\ncurrent args is 4, the result is 10\u00a0<br \/>\ncurrent args is 8, the result is 36\u00a0<br \/>\ncurrent args is 6, the result is 21\u00a0<br \/>\ncurrent args is 12, the result is 78\u00a0<br \/>\ncurrent args is 5, the result is 15\u00a0<br \/>\ncurrent args is 7, the result is 28\u00a0<br \/>\ncurrent args is 18, the result is 171\u00a0<br \/>\ncurrent args is 16, the result is 136\u00a0<br \/>\ncurrent args is 15, the result is 120\u00a0<br \/>\ncurrent args is 20, the result is 210\u00a0<br \/>\ncurrent args is 19, the result is 190\u00a0<br \/>\ncurrent args is 13, the result is 91\u00a0<br \/>\ncurrent args is 21, the result is 231\u00a0<br \/>\ncurrent args is 10, the result is 55\u00a0<br \/>\ncurrent args is 17, the result is 153\u00a0<br \/>\ncurrent args is 9, the result is 45\u00a0<br \/>\ncurrent args is 22, the result is 253\u00a0<br \/>\ncurrent args is 28, the result is 406\u00a0<br \/>\ncurrent args is 27, the result is 378\u00a0<br \/>\ncurrent args is 11, the result is 66\u00a0<br \/>\ncurrent args is 26, the result is 351\u00a0<br \/>\ncurrent args is 30, the result is 465\u00a0<br \/>\ncurrent args is 23, the result is 276\u00a0<br \/>\ncurrent args is 25, the result is 325\u00a0<br \/>\ncurrent args is 29, the result is 435\u00a0<br \/>\ncurrent args is 24, the result is 300\u00a0<br \/>\ncurrent args is 31, the result is 496\u00a0<br \/>\ncurrent args is 34, the result is 595\u00a0<br \/>\ncurrent args is 38, the result is 741\u00a0<br \/>\ncurrent args is 36, the result is 666\u00a0<br \/>\ncurrent args is 41, the result is 861\u00a0<br \/>\ncurrent args is 32, the result is 528\u00a0<br \/>\ncurrent args is 35, the result is 630\u00a0<br \/>\ncurrent args is 33, the result is 561\u00a0<br \/>\ncurrent args is 37, the result is 703\u00a0<br \/>\ncurrent args is 39, the result is 780\u00a0<br \/>\ncurrent args is 52, the result is 1378\u00a0<br \/>\ncurrent args is 46, the result is 1081\u00a0<br \/>\ncurrent args is 47, the result is 1128\u00a0<br \/>\ncurrent args is 49, the result is 1225\u00a0<br \/>\ncurrent args is 45, the result is 1035\u00a0<br \/>\ncurrent args is 43, the result is 946\u00a0<br \/>\ncurrent args is 48, the result is 1176\u00a0<br \/>\ncurrent args is 40, the result is 820\u00a0<br \/>\ncurrent args is 42, the result is 903\u00a0<br \/>\ncurrent args is 44, the result is 990\u00a0<br \/>\ncurrent args is 59, the result is 1770\u00a0<br \/>\ncurrent args is 55, the result is 1540\u00a0<br \/>\ncurrent args is 53, the result is 1431\u00a0<br \/>\ncurrent args is 57, the result is 1653\u00a0<br \/>\ncurrent args is 51, the result is 1326\u00a0<br \/>\ncurrent args is 54, the result is 1485\u00a0<br \/>\ncurrent args is 50, the result is 1275\u00a0<br \/>\ncurrent args is 56, the result is 1596\u00a0<br \/>\ncurrent args is 58, the result is 1711\u00a0<br \/>\ncurrent args is 60, the result is 1830\u00a0<br \/>\ncurrent args is 66, the result is 2211\u00a0<br \/>\ncurrent args is 63, the result is 2016\u00a0<br \/>\ncurrent args is 70, the result is 2485\u00a0<br \/>\ncurrent args is 62, the result is 1953\u00a0<br \/>\ncurrent args is 61, the result is 1891\u00a0<br \/>\ncurrent args is 65, the result is 2145\u00a0<br \/>\ncurrent args is 67, the result is 2278\u00a0<br \/>\ncurrent args is 64, the result is 2080\u00a0<br \/>\ncurrent args is 68, the result is 2346\u00a0<br \/>\ncurrent args is 69, the result is 2415\u00a0<br \/>\ncurrent args is 76, the result is 2926\u00a0<br \/>\ncurrent args is 77, the result is 3003\u00a0<br \/>\ncurrent args is 71, the result is 2556\u00a0<br \/>\ncurrent args is 80, the result is 3240\u00a0<br \/>\ncurrent args is 75, the result is 2850\u00a0<br \/>\ncurrent args is 74, the result is 2775\u00a0<br \/>\ncurrent args is 73, the result is 2701\u00a0<br \/>\ncurrent args is 72, the result is 2628\u00a0<br \/>\ncurrent args is 78, the result is 3081\u00a0<br \/>\ncurrent args is 81, the result is 3321\u00a0<br \/>\ncurrent args is 89, the result is 4005\u00a0<br \/>\ncurrent args is 83, the result is 3486\u00a0<br \/>\ncurrent args is 88, the result is 3916\u00a0<br \/>\ncurrent args is 82, the result is 3403\u00a0<br \/>\ncurrent args is 79, the result is 3160\u00a0<br \/>\ncurrent args is 86, the result is 3741\u00a0<br \/>\ncurrent args is 84, the result is 3570\u00a0<br \/>\ncurrent args is 90, the result is 4095\u00a0<br \/>\ncurrent args is 85, the result is 3655\u00a0<br \/>\ncurrent args is 87, the result is 3828\u00a0<br \/>\ncurrent args is 101, the result is 5151\u00a0<br \/>\ncurrent args is 92, the result is 4278\u00a0<br \/>\ncurrent args is 94, the result is 4465\u00a0<br \/>\ncurrent args is 93, the result is 4371\u00a0<br \/>\ncurrent args is 98, the result is 4851\u00a0<br \/>\ncurrent args is 91, the result is 4186\u00a0<br \/>\ncurrent args is 99, the result is 4950\u00a0<br \/>\ncurrent args is 100, the result is 5050\u00a0<br \/>\ncurrent args is 95, the result is 4560\u00a0<br \/>\ncurrent args is 96, the result is 4656\u00a0<br \/>\ncurrent args is 109, the result is 5995\u00a0<br \/>\ncurrent args is 107, the result is 5778\u00a0<br \/>\ncurrent args is 108, the result is 5886\u00a0<br \/>\ncurrent args is 102, the result is 5253\u00a0<br \/>\ncurrent args is 103, the result is 5356\u00a0<br \/>\ncurrent args is 106, the result is 5671\u00a0<br \/>\ncurrent args is 105, the result is 5565\u00a0<br \/>\ncurrent args is 104, the result is 5460\u00a0<br \/>\ncurrent args is 111, the result is 6216\u00a0<br \/>\ncurrent args is 97, the result is 4753\u00a0<br \/>\ncurrent args is 120, the result is 7260\u00a0<br \/>\ncurrent args is 112, the result is 6328\u00a0<br \/>\ncurrent args is 113, the result is 6441\u00a0<br \/>\ncurrent args is 114, the result is 6555\u00a0<br \/>\ncurrent args is 110, the result is 6105\u00a0<br \/>\ncurrent args is 119, the result is 7140\u00a0<br \/>\ncurrent args is 115, the result is 6670\u00a0<br \/>\ncurrent args is 117, the result is 6903\u00a0<br \/>\ncurrent args is 116, the result is 6786\u00a0<br \/>\ncurrent args is 118, the result is 7021\u00a0<br \/>\ncurrent args is 123, the result is 7626\u00a0<br \/>\ncurrent args is 122, the result is 7503\u00a0<br \/>\ncurrent args is 130, the result is 8515\u00a0<br \/>\ncurrent args is 121, the result is 7381\u00a0<br \/>\ncurrent args is 126, the result is 8001\u00a0<br \/>\ncurrent args is 129, the result is 8385\u00a0<br \/>\n&#8230;&#8230;<br \/>\n current args is 988, the result is 488566\u00a0<br \/>\ncurrent args is 992, the result is 492528\u00a0<br \/>\ncurrent args is 976, the result is 476776\u00a0<br \/>\ncurrent args is 984, the result is 484620\u00a0<br \/>\ncurrent args is 995, the result is 495510\u00a0<br \/>\ncurrent args is 999, the result is 499500\u00a0<br \/>\ncurrent args is 1000, the result is 500500\u00a0<br \/>\ncurrent args is 990, the result is 490545\u00a0<br \/>\n\u5ba2\u6237\u7aef\u5e76\u53d11000\u8bf7\u6c42&#xff0c;\u670d\u52a1\u5668\u8bf7\u6c42\u961f\u5217\u957f\u5ea6100&#xff0c;\u670d\u52a1\u5668\u9650\u6d4110&#xff0c;\u603b\u5171\u8017\u65f62099 ms <\/p>\n<p style=\"text-align:left\">\u8bfb\u8005\u53ef\u4ee5\u968f\u610f\u8c03\u65743\u4e2a\u53c2\u6570\u7684\u5927\u5c0f&#xff0c;\u6765\u611f\u53d7\u670d\u52a1\u5668\u8c03\u53c2\u7684\u9b45\u529b\u3002<\/p>\n<table>\n<tr>\n<p>\u5e76\u53d1\u5ba2\u6237\u7aef\u8bf7\u6c42\u6570concurrencyClients<\/p>\n<p>\u670d\u52a1\u5668\u8bf7\u6c42\u961f\u5217queueLength<\/p>\n<p>\u670d\u52a1\u5668\u9650\u6d41\u9608\u503c Maxoutstanding<\/p>\n<p>\u8017\u65f6ms<\/p>\n<\/tr>\n<tbody>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>2067<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>50<\/p>\n<\/td>\n<td>\n<p>454<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>210<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>300<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>2082<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>1000<\/p>\n<\/td>\n<td>\n<p>500<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>2071<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>3000<\/p>\n<\/td>\n<td>\n<p>100<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>6259<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>5000<\/p>\n<\/td>\n<td>\n<p>500<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<td>\n<p>10516<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align:left\">\u5b8c\u6574\u4ee3\u7801\u4f20\u9001\u95e8<sup>[2]<\/sup><\/p>\n<p style=\"text-align:left\">That\u2019s All,\u672c\u6587\u6839\u636egolang\u6709\u5173\u4fe1\u9053\u7684\u6307\u5357&#xff0c; \u5b9e\u73b0\u4e86\u4e00\u4e2a\u5e26\u6709\u8bf7\u6c42\u961f\u5217\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668&#xff0c; \u5de9\u56fa\u4e86\u4fe1\u9053\u3001WaitGroup\u7684\u7528\u6cd5\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599<\/p>\n<p>[1]\u00a0<\/p>\n<p style=\"text-align:left\">golang\u5b98\u65b9\u6307\u5357:\u00a0https:\/\/go.dev\/doc\/effective_go<\/p>\n<p> [2]\u00a0 <\/p>\n<p style=\"text-align:left\">\u5b8c\u6574\u4ee3\u7801\u4f20\u9001\u95e8:\u00a0https:\/\/github.com\/zwbdzb\/go_sample1<\/p>\n<p>\u672c\u7bc7\u6587\u5b57\u548c\u56fe\u7247\u5747\u4e3a\u539f\u521b&#xff0c;\u8bfb\u8005\u53ef\u7ed3\u5408\u56fe\u7247\u63a2\u7d22\u6e90\u7801&#xff0c; \u6b22\u8fce\u53cd\u9988 ~\u3002\u3002~\u3002\u6b22\u8fce\u6dfb\u52a0\u5fae\u4fe1\u53f7\u00a0niumabujuan\u00a0\u4ea4\u6d41\u6495\u903c\u3002\u00a0<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b8af2ad.gif\" \/><\/p>\n<p style=\"text-align:left\">\u4e00\u79cd\u57fa\u4e8eetcd\u5b9e\u8df5\u8282\u70b9\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u7684\u601d\u8def<\/p>\n<p style=\"text-align:left\">\u4e00\u6b21sql\u8bf7\u6c42&#xff0c;\u8fd4\u56de\u5206\u9875\u6570\u636e\u548c\u603b\u6761\u6570<\/p>\n<p style=\"text-align:left\">http\u8bf7\u6c42\u8d85\u65f6&#xff0c;\u5e95\u5c42\u53d1\u751f\u4e86\u4ec0\u4e48&#xff1f;<\/p>\n<p style=\"text-align:left\">\u4e24\u5c06\u519b\u95ee\u9898\u548cTCP\u4e09\u6b21\u63e1\u624b<\/p>\n<p style=\"text-align:left\">\u5b57\u8282\u4e8c\u9762&#xff1a;\u4f60\u600e\u4e48\u7406\u89e3\u4fe1\u9053\u662fGolang\u4e2d\u7684\u9876\u7ea7\u516c\u6c11<\/p>\n<p> \u4e09\u5f20\u5927\u56fe\u5256\u6790HttpClient\u548cIHttpClientFactory\u5728DNS\u89e3\u6790\u95ee\u9898\u4e0a\u7684\u6b8a\u9014\u540c\u5f52 <\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b8c0c48.png\" \/><\/p>\n<p style=\"text-align:center\">\u70b9\u201c\u8d5e\u201d<img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b8d25e4.gif\" \/>\u6233\u201c\u5728\u770b\u201d<img decoding=\"async\" alt=\"\u56fe\u7247\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b8e27bc.gif\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb984\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf30\u6b21\u3002golang\u5b98\u65b9\u6307\u5357[1]\u7ed9\u4e86\u4e00\u4e9b\u4ee3\u7801\u7247\u6bb5\uff0c\u5c42\u5c42\u9012\u8fdb\u6f14\u793a\u4e86\u4fe1\u9053\u7684\u80fd\u529b:1&gt;. \u4fe1\u53f7\u91cf2&gt;. \u9650\u6d41\u80fd\u529bvar sem = make(chan int, MaxOutstanding)func Serve(queue chan *Request) { forreq := range queue {    req:= req    sem &lt;- 1&#8230;<\/p>\n","protected":false},"author":2,"featured_media":16049,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[746,292,190,43,44],"topic":[],"class_list":["post-16055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-golang","tag-292","tag-190","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \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\/16055.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb984\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf30\u6b21\u3002golang\u5b98\u65b9\u6307\u5357[1]\u7ed9\u4e86\u4e00\u4e9b\u4ee3\u7801\u7247\u6bb5\uff0c\u5c42\u5c42\u9012\u8fdb\u6f14\u793a\u4e86\u4fe1\u9053\u7684\u80fd\u529b:1&gt;. \u4fe1\u53f7\u91cf2&gt;. \u9650\u6d41\u80fd\u529bvar sem = make(chan int, MaxOutstanding)func Serve(queue chan *Request) { forreq := range queue {  req:= req  sem &lt;- 1...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/16055.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T14:33:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b86f596.gif\" \/>\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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16055.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/16055.html\",\"name\":\"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T14:33:29+00:00\",\"dateModified\":\"2025-04-18T14:33:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/16055.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/16055.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16055.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668\"}]},{\"@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":"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \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\/16055.html","og_locale":"zh_CN","og_type":"article","og_title":"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb984\u6b21\uff0c\u70b9\u8d5e22\u6b21\uff0c\u6536\u85cf30\u6b21\u3002golang\u5b98\u65b9\u6307\u5357[1]\u7ed9\u4e86\u4e00\u4e9b\u4ee3\u7801\u7247\u6bb5\uff0c\u5c42\u5c42\u9012\u8fdb\u6f14\u793a\u4e86\u4fe1\u9053\u7684\u80fd\u529b:1&gt;. \u4fe1\u53f7\u91cf2&gt;. \u9650\u6d41\u80fd\u529bvar sem = make(chan int, MaxOutstanding)func Serve(queue chan *Request) { forreq := range queue {  req:= req  sem &lt;- 1...","og_url":"https:\/\/www.wsisp.com\/helps\/16055.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T14:33:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418143328-680262b86f596.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/16055.html","url":"https:\/\/www.wsisp.com\/helps\/16055.html","name":"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T14:33:29+00:00","dateModified":"2025-04-18T14:33:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/16055.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/16055.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/16055.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Golang\u5012\u817e\u4e00\u6b3e\u7b80\u914d\u7684\u5177\u6709\u8bf7\u6c42\u6392\u961f\u529f\u80fd\u7684\u5e76\u53d1\u53d7\u9650\u670d\u52a1\u5668"}]},{"@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\/16055","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=16055"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/16049"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=16055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=16055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=16055"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=16055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}