{"id":127,"date":"2020-12-30T12:28:54","date_gmt":"2020-12-30T04:28:54","guid":{"rendered":"http:\/\/www.anthonylee.cn\/myblog\/?p=127"},"modified":"2020-12-30T12:28:54","modified_gmt":"2020-12-30T04:28:54","slug":"stack-overflow%e7%bd%91%e7%ab%99%ef%bc%9a30%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%94%af%e6%92%91%e6%97%a5%e5%9d%871-7%e4%ba%bfpv-%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.anthonylee.cn\/myblog\/?p=127","title":{"rendered":"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f"},"content":{"rendered":"\n<h3>\u539f\u4f5c\u8005<\/h3>\n\n\n\n<ul><li>Jeff Atwood<\/li><li>Joel Spolsky<\/li><\/ul>\n\n\n\n<h3>\u8bd1\u8005\u7b80\u4ecb<\/h3>\n\n\n\n<h4>\u4e25\u777f<\/h4>\n\n\n\n<p>\u5de5\u7a0b\u5e08\u3001\u5f00\u6e90\u7c89\u3001\u6df1\u5ea6\u9605\u8bfb\u7231\u597d\u8005\u3002\u76ee\u524d\u5c31\u804c\u4e8e\u4e2d\u76c8\u4f18\u521b\uff0c\u8d1f\u8d23\u8fd0\u8425\u5546\u7f51\u7edc\u7ba1\u7406\u9879\u76ee\u6280\u672f\u7ba1\u7406\uff0c\u81f4\u529b\u4e8e\u9ad8\u53ef\u7528\u67b6\u6784\u6539\u8fdb\u3001DevOps\u56e2\u961f\u5efa\u8bbe\u3002<\/p>\n\n\n\n<h3>\u67b6\u6784\u6982\u8ff0<\/h3>\n\n\n\n<p>Stack Overflow \u662f\u4e00\u4e2a\u8457\u540d\u7684\u7a0b\u5e8f\u76f8\u5173\u7684\u6280\u672f\u95ee\u7b54\u793e\u533a\uff0c\u7531Jeff Atwood \u548c Joel Spolsky \u8fd9\u4e24\u4e2a\u975e\u5e38\u8457\u540d\u7684 Blogger \u5728 2008 \u5e74\u521b\u5efa\uff0c\u4ed6\u4eec\u4e5f\u662f\u672c\u6587\u7684\u539f\u4f5c\u8005\u3002<\/p>\n\n\n\n<p>Stack Overflow\u76ee\u524d\u5168\u7403\u6392\u540d\u7b2c56\u540d\uff0c\u65e5\u5747PV\u4e3a1.7\u4ebf\uff08\u6839\u636ealexa.cn\u57282016\u5e746\u67085\u65e5\u7684\u6570\u636e\uff09\u3002\u5176\u67b6\u6784\u65e2\u6709\u5546\u4e1a\u5916\u5305\u670d\u52a1\uff0c\u4e5f\u5927\u91cf\u91c7\u7528\u5f00\u6e90\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5168\u666f\u5f0f\u5c55\u73b0\u5f53\u4ee3\u4e3b\u6d41\u67b6\u6784\u7684\u98ce\u8c8c\uff0cStack Overflow \u53ef\u4ee5\u5206\u89e3\u4e3a\u516b\u4e2a\u5207\u9762\uff1a<\/p>\n\n\n\n<ol><li>\u4e92\u8054\u7f51<\/li><li>\u8d1f\u8f7d\u5747\u8861<\/li><li>web\u5c42<\/li><li>\u670d\u52a1\u5c42<\/li><li>\u7f13\u5b58<\/li><li>\u63a8\u9001<\/li><li>\u641c\u7d22<\/li><li>\u6570\u636e\u5e93<\/li><\/ol>\n\n\n\n<p>\u5176\u67b6\u6784\u56fe\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p6-tt.byteimg.com\/origin\/b96000a8874544bfe52?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<p><em>\uff08\u70b9\u51fb\u53ef\u770b\u5927\u56fe\uff09<\/em><\/p>\n\n\n\n<h2>\u67b6\u6784\u539f\u5219<\/h2>\n\n\n\n<p>Stack Overflow \u67b6\u6784\u4e2d\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u539f\u5219\u5c31\u662f\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Everything is redundant<\/p><p>\u5373&nbsp;<strong>\u4e00\u5207\u90fd\u6709\u5197\u4f59<\/strong><\/p><\/blockquote>\n\n\n\n<p>\u4e24\u4e2a\u6570\u636e\u4e2d\u5fc3\uff1a\u7ebd\u7ea6\u548c\u79d1\u7f57\u62c9\u591a\uff0c\u5197\u4f59\u4e14\u6301\u7eed\u5907\u4efd\u3002<\/p>\n\n\n\n<p>\u5176\u5b83\u6240\u6709\u5173\u952e\u7ec4\u4ef6\u90fd\u5c3d\u53ef\u80fd\u8d2f\u5f7b\u5197\u4f59\u539f\u5219\u3002<\/p>\n\n\n\n<h2>\u7269\u7406\u67b6\u6784<\/h2>\n\n\n\n<ul><li>4 \u53f0 Microsoft SQL Server \u670d\u52a1\u5668\uff08\u5176\u4e2d 2 \u53f0\u4f7f\u7528\u4e86\u65b0\u7684\u786c\u4ef6\uff09<\/li><li>11 \u53f0 IIS Web \u670d\u52a1\u5668\uff08\u65b0\u7684\u786c\u4ef6\uff09<\/li><li>2 \u53f0 Redis \u670d\u52a1\u5668\uff08\u65b0\u7684\u786c\u4ef6\uff09<\/li><li>3 \u53f0\u6807\u7b7e\u5f15\u64ce\u670d\u52a1\u5668\uff08\u5176\u4e2d 2 \u53f0\u4f7f\u7528\u4e86\u65b0\u7684\u786c\u4ef6\uff09<\/li><li>3 \u53f0 Elasticsearch \u670d\u52a1\u5668\uff08\u540c\u4e0a\uff09<\/li><li>4 \u53f0 HAProxy \u8d1f\u8f7d\u5747\u8861\u670d\u52a1\u5668\uff08\u6dfb\u52a0\u4e86 2 \u53f0\uff0c\u7528\u4e8e\u652f\u6301 CloudFlare\uff09<\/li><li>2 \u53f0\u7f51\u7edc\u8bbe\u5907\uff08Nexus 5596 \u6838\u5fc3 + 2232TM Fabric Extender\uff0c\u5347\u7ea7\u5230 10Gbps \u5e26\u5bbd\uff09<\/li><li>2 \u53f0 Fortinet 800C \u9632\u706b\u5899\uff08\u53d6\u4ee3\u4e86 Cisco 5525-X ASAs\uff09<\/li><li>2 \u53f0 Cisco ASR-1001 \u8def\u7531\u5668\uff08\u53d6\u4ee3\u4e86 Cisco 3945 \u8def\u7531\u5668\uff09<\/li><li>2 \u53f0 Cisco ASR-1001-x \u8def\u7531\u5668<\/li><\/ul>\n\n\n\n<h2>\u903b\u8f91\u67b6\u6784<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p3-tt.byteimg.com\/origin\/b94000fbd704da37497?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<p><em>\uff08\u70b9\u51fb\u53ef\u770b\u5927\u56fe\uff09<\/em><\/p>\n\n\n\n<h2>The Internets \u4e92\u8054\u7f51<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>DNS\u670d\u52a1\uff1a\u5916\u5305CloudFlare + \u81ea\u5efaDNS<\/p><\/blockquote>\n\n\n\n<p>\u5176\u5b9e\u5916\u5305DNS\u670d\u52a1\u5e94\u8be5\u5df2\u7ecf\u53ef\u4ee5\u6ee1\u8db3\u670d\u52a1\uff0c\u4e0d\u8fc7\u51fa\u4e8e\u4fdd\u9669\u8d77\u89c1\uff0c\u8fd8\u662f\u6709\u4e00\u5957\u81ea\u5efa\u7684DNS Server\u3002\u770b\u6765trust issues \u4e2d\u5916\u4e00\u81f4\u554a\u3002<\/p>\n\n\n\n<h2>Load Balancers \u8d1f\u8f7d\u5747\u8861<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>HAProxy 1.5.15 on CentOS 7<\/p><\/blockquote>\n\n\n\n<p>\u652f\u6301TLS (SSL)\u6d41\u91cf\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u53ef\u5173\u6ce8HAProxy 1.7\uff0c\u5b83\u5373\u5c06\u652f\u6301HTTP\/2\u3002<\/p><p>\u5f15\u5165\u5f00\u6e90\u67b6\u6784\u4e4b\u540e\uff0c\u5c31\u5fc5\u987b\u6301\u7eed\u5173\u6ce8\u3001\u8ddf\u8fdb\u793e\u533a\u7684\u53d1\u5c55\u52a8\u6001\u3002<\/p><p>\u5403\u7740\u7897\u91cc\u7684\uff0c\u770b\u7740\u9505\u91cc\u7684\uff0c\u6c38\u8fdc\u4e0d\u80fd\u505c\u3002<\/p><\/blockquote>\n\n\n\n<h2>Web Tier Web\u5c42<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>IIS 8.5\uff0c ASP.Net MVC 5.2.3\uff0c and .Net 4.6.1<\/p><\/blockquote>\n\n\n\n<h2>Service Tier \u670d\u52a1\u5c42<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>IIS\uff0c ASP.Net MVC 5.2.3\uff0c .Net 4.6.1\uff0c and HTTP.SYS<\/p><\/blockquote>\n\n\n\n<h2>Cache\u7f13\u5b58<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Redis<\/p><\/blockquote>\n\n\n\n<p><strong>L1\u7ea7\u522b<\/strong>\uff1aHTTP \u7f13\u5b58<\/p>\n\n\n\n<p><strong>L2\u7ea7\u522b<\/strong>\uff1aL1\u7ea7\u522b\u7f13\u5b58\u5931\u8d25\u4e4b\u540e\uff0c\u901a\u8fc7Redis\u83b7\u53d6\u6570\u636e<\/p>\n\n\n\n<p>L1&amp;L2\u90fd\u65e0\u6cd5\u547d\u4e2d\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u4ece\u6570\u636e\u5e93\u67e5\u8be2\uff0c\u5e76\u66f4\u65b0\u5230\u7f13\u5b58\u548cRedis\u3002<\/p>\n\n\n\n<p><strong>\u7f13\u5b58\u66f4\u65b0<\/strong>\uff1a\u57fa\u4e8e\u53d1\u5e03\uff0f\u8ba2\u9605\u6a21\u578b\uff0c\u5229\u7528\u8fd9\u4e2a\u673a\u5236\u6765\u6e05\u9664\u5176\u4ed6\u670d\u52a1\u4e0a\u7684 L1 \u7f13\u5b58\uff0c\u7528\u6765\u4fdd\u6301 web \u670d\u52a1\u5668\u4e0a\u7684\u7f13\u5b58\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<p>\u53e6\u5916Redis\u5b9e\u4f8b\u7684&nbsp;<strong>CPU\u90fd\u5f88\u4f4e\uff0c\u4e0d\u52302%<\/strong>\uff0c\u8fd9\u70b9\u5f88\u60ca\u4eba\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p6-tt.byteimg.com\/origin\/b94000fbd72b64f817a?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<p><em>\uff08\u70b9\u51fb\u53ef\u770b\u5927\u56fe\uff09<\/em><\/p>\n\n\n\n<h2>Push\u63a8\u9001<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\u5f00\u6e90\u5e93\uff1aNetGrain<\/p><\/blockquote>\n\n\n\n<p>\u4f7f\u7528 websocket \u5411\u7528\u6237\u63a8\u9001\u5b9e\u65f6\u7684\u66f4\u65b0\u5185\u5bb9\uff0c\u6bd4\u5982\u9876\u90e8\u680f\u4e2d\u7684\u901a\u77e5\u3001\u6295\u7968\u6570\u3001<strong>\u65b0\u5bfc\u822a\u6570<\/strong>\u3001\u65b0\u7684\u7b54\u6848\u548c\u8bc4\u8bba\u3002\u5728\u9ad8\u5cf0\u65f6\u523b\uff0c\u5927\u7ea6\u6709 50 \u4e07\u4e2a\u5e76\u53d1\u7684 websocket \u8fde\u63a5\uff0c\u8fd9\u53ef\u662f\u4e00\u5927\u5806\u6d4f\u89c8\u5668\u3002<\/p>\n\n\n\n<p>\u4e00\u4e2a\u6709\u8da3\u7684\u4e8b\u5b9e\uff1a\u5176\u4e2d\u4e00\u4e9b\u6d4f\u89c8\u5668\u5df2\u7ecf\u6253\u5f00\u8d85\u8fc7 18 \u4e2a\u6708\u4e86\u3002Someone should go check if those developers are still alive\uff01\uff01<\/p>\n\n\n\n<p>\u95ee\u9898\uff1a\u4e34\u65f6\u7aef\u53e3\u3001\u8d1f\u8f7d\u5747\u8861\u4e0a\u7684\u6587\u4ef6\u53e5\u67c4\u8017\u5c3d\uff0c\u90fd\u662f\u975e\u5e38\u6709\u8da3\u7684\u95ee\u9898\uff0c<strong>\u6211\u4eec\u7a0d\u540e\u4f1a\u63d0\u5230\u5b83\u4eec<\/strong>\u3002<\/p>\n\n\n\n<h2>Search\u641c\u7d22<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Elasticsearch\u96c6\u7fa4\uff0c\u6bcf\u4e2aES\u96c6\u7fa4\u90fd\u67093\u4e2aNode<\/p><\/blockquote>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u7528<strong>Solr<\/strong>\uff1f<\/p>\n\n\n\n<p>\u6211\u4eec\u9700\u8981\u5728\u6574\u4e2a\u7f51\u7edc\u4e2d\u8fdb\u884c\u641c\u7d22\uff08\u540c\u65f6\u6709\u591a\u4e2a\u7d22\u5f15\uff09\uff0c\u5728\u6211\u4eec\u8fdb\u884c\u51b3\u7b56\u7684\u65f6\u5019 Solr \u8fd8\u4e0d\u652f\u6301\u8fd9\u79cd\u573a\u666f\u3002<\/p>\n\n\n\n<p>\u8fd8\u6ca1\u6709\u4f7f\u7528 2.x \u7248\u672c\u7684\u539f\u56e0\uff0c\u662f\u56e0\u4e3a<strong>2.x\u7248\u672c\u4e2d\u7c7b\u578b\uff08types\uff09\u6709\u4e86\u5f88\u5927\u7684\u53d8\u5316<\/strong>\uff0c\u8fd9\u610f\u5473\u7740\u60f3\u8981\u5347\u7ea7\u7684\u8bdd\u6211\u4eec\u5f97\u91cd\u65b0\u7d22\u5f15\u6240\u6709\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u6ca1\u6709\u8db3\u591f\u7684\u65f6\u95f4\u6765\u5236\u5b9a\u9700\u6c42\u53d8\u66f4\u548c\u8fc1\u79fb\u7684\u8ba1\u5212\u3002<\/p>\n\n\n\n<h2>Database\u6570\u636e\u5e93<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>SQLServer<\/p><\/blockquote>\n\n\n\n<p><strong>Our usage of SQL is pretty simple. Simple is fast.<\/strong><\/p>\n\n\n\n<p><strong>\u6570\u636e\u5e93\u4e2d\u53ea\u6709\u4e00\u4e2a\u5b58\u50a8\u8fc7\u7a0b\uff0c\u800c\u4e14\u6211\u6253\u7b97\u628a\u8fd9\u4e2a\u6700\u540e\u6b8b\u7559\u7684\u5b58\u50a8\u8fc7\u7a0b\u4e5f\u5e72\u6389\uff0c\u6362\u6210\u4ee3\u7801\u3002<\/strong><\/p>\n\n\n\n<h2>\u76d1\u63a7\u7cfb\u7edf<\/h2>\n\n\n\n<p>Opserver\uff1a\u8f7b\u91cf\u7ea7\u76d1\u63a7\u7cfb\u7edf\uff0c\u57fa\u4e8e asp.net MVC \u6846\u67b6\uff0c\u53ef\u76d1\u63a7\uff1a<\/p>\n\n\n\n<ul><li>Servers<\/li><li>SQL clusters\/instances<\/li><li>Redis<\/li><li>Elastic search<\/li><li>exception logs<\/li><li>haproxy<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p3-tt.byteimg.com\/origin\/b53000d8878ea97c427?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p6-tt.byteimg.com\/origin\/b53000d8879b69fa086?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/p3-tt.byteimg.com\/origin\/b94000fbd75241557e8?from=pc\" alt=\"Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f\"\/><\/figure>\n\n\n\n<p><em>\uff08\u70b9\u51fb\u53ef\u770b\u5927\u56fe\uff09<\/em><\/p>\n\n\n\n<h3>\u60f3\u5b66\u4e60\u66f4\u591a\u7684\u7cfb\u7edf\u67b6\u6784\u7ecf\u9a8c\u5417\uff1f\u6765\u53c2\u52a0GOPS2016\u4e0a\u6d77\u7ad9\u5c31\u5bf9\u4e86<\/h3>\n\n\n\n<p>\u5728\u672c\u6b21\u5927\u4f1a\u4e0a\u5c06\u4f1a\u6709\u66f4\u591a\u91cd\u91cf\u7ea7\u5609\u5bbe\u4e3a\u4f60\u5206\u4eab\u5173\u4e8e\u7cfb\u7edf\u67b6\u6784\u65b9\u9762\u7684\u7ecf\u9a8c\u3002<\/p>\n\n\n\n<p>\u5c06\u4e8e2016\u5e749\u670823\u65e5-24\u65e5\u4e3e\u884c\u7684\u5168\u7403\u8fd0\u7ef4\u5927\u4f1a\u7279\u610f\u589e\u8bbe\u57fa\u7840\u67b6\u6784\u3001\u9ad8\u53ef\u7528\u67b6\u6784\u4e13\u573a\uff0c\u73b0\u5df2\u63a5\u53d7\u62a5\u540d\u548c\u8d5e\u52a9\uff0c\u60a8\u53ef\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\u4e86\u89e3\u8be6\u60c5\uff1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u4f5c\u8005 Jeff Atwood Joel Spolsky \u8bd1\u8005\u7b80\u4ecb \u4e25\u777f \u5de5\u7a0b\u5e08\u3001\u5f00\u6e90\u7c89\u3001\u6df1\u5ea6\u9605\u8bfb\u7231&hellip; <a href=\"http:\/\/www.anthonylee.cn\/myblog\/?p=127\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Stack Overflow\u7f51\u7ad9\uff1a30\u53f0\u670d\u52a1\u5668\u652f\u6491\u65e5\u57471.7\u4ebfPV \uff1f<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/127"}],"collection":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":1,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":128,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions\/128"}],"wp:attachment":[{"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.anthonylee.cn\/myblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}