{"id":172421,"date":"2020-10-25T11:40:03","date_gmt":"2020-10-25T03:40:03","guid":{"rendered":"http:\/\/4563.org\/?p=172421"},"modified":"2020-10-25T11:40:03","modified_gmt":"2020-10-25T03:40:03","slug":"serverless-%e4%b8%8d%e9%80%82%e5%90%88%e5%8d%95%e6%9c%ba%e9%9c%80%e8%a6%81%e5%af%b9%e5%a4%a7%e6%89%b9%e6%95%b0%e6%8d%ae%e8%bf%9b%e8%a1%8c%e5%a4%9a%e6%a0%b8%e5%b9%b6%e8%a1%8c%e5%a4%84%e7%90%86%e7%9a%84","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=172421","title":{"rendered":"serverless \u4e0d\u9002\u5408\u5355\u673a\u9700\u8981\u5bf9\u5927\u6279\u6570\u636e\u8fdb\u884c\u591a\u6838\u5e76\u884c\u5904\u7406\u7684\u4e1a\u52a1?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  serverless \u4e0d\u9002\u5408\u5355\u673a\u9700\u8981\u5bf9\u5927\u6279\u6570\u636e\u8fdb\u884c\u591a\u6838\u5e76\u884c\u5904\u7406\u7684\u4e1a\u52a1?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6211\u7684\u4e1a\u52a1\u9700\u8981\u5bf9\u51e0\u5341\u4e07\u6570\u636e\u505a\u62a5\u8868, \u4ece db \u91cc\u53d6\u51fa\u6765, \u7136\u540e\u5206\u7ed9 8 \u4e2a cpu \u6838\u5fc3\u505a\u8fd0\u7b97,\u8fd9\u6837\u901f\u5ea6\u5c31\u80fd\u5feb,\u4e0d\u7136\u5355\u6838\u53ea\u80fd\u6162 8 \u500d. \u8fd9\u6837\u7684\u60c5\u51b5\u662f\u4e0d\u662f\u4e0d\u80fd serverless? \u56e0\u4e3a\u76ee\u524d sls \u5355\u51fd\u6570\u53ea\u6700\u591a\u7ed9\u5206\u914d\u4e86 2 \u4e2a\u6838\u5fc3      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3877114\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : m939594960 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u51fd\u6570\u5de5\u4f5c\u6d41                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877115\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : janxin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u5355\u4e2a\u51fd\u6570\u5b9e\u4f8b\u5427\uff0c\u4f60\u53ef\u4ee5\u53cd\u590d\u8c03\u7528\u7684\u3002<\/p>\n<p>\u4e0d\u8fc7\u8fd8\u9700\u8981\u6ce8\u610f\u8d85\u65f6\u65f6\u95f4                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877116\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u79cd\u573a\u666f\u7528 lambda \u592a\u70e6\u4e86 \u7528 lambda \u8981\u8fbe\u5230\u5355\u673a 8 \u6838\u7684\u6548\u679c \u53ea\u80fd\u628a\u6570\u636e\u62c6\u6210 8 \u4efd <br \/>\u603b\u5171\u8981 9 \u4e2a lambda \u7528\u6237\u8bf7\u6c42\u7b2c\u4e00\u4e2a lambda \u8fd9\u4e2a lambda \u8c03\u7528\u53e6 8 \u4e2a lambda \u6bcf\u4e2a\u90fd\u4f20\u8f93\u4e0d\u540c\u53c2\u6570\u7528\u6765\u5207\u5272\u6570\u636e \u7b49 8 \u4e2a lambda \u6240\u6709\u6570\u636e\u90fd\u5904\u7406\u597d\u8fd4\u56de\u7ed9\u7b2c\u4e00\u4e2a lambda \u5b83\u518d\u5904\u7406\u4e0b\u518d\u8fd4\u56de\u7ed9\u7528\u6237 \u662f\u4e0d\u662f\u592a\u70e6\u4e86?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877117\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54e6 \u60f3\u5230\u4e86\u53e6\u4e00\u79cd\u65b9\u6848 \u5c31\u662f\u666e\u901a\u7684\u4e1a\u52a1\u7528 lambda \u62a5\u8868\u7c7b\u578b\u9700\u8981\u591a\u6838\u7684 \u53e6\u5916\u641e\u4e2a ec2 \u53cd\u6b63\u66b4\u9732\u51fa\u6765\u7684\u90fd\u662f url \u9a8c\u8bc1\u53ef\u4ee5\u7528 jwt \u8fd9\u6837\u662f\u4e0d\u662f\u6700\u597d\u529e\u6cd5?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877118\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : user8341 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oneforallsoft <\/p>\n<p>\u90a3\u6837\u4f30\u8ba1\u4f1a\u6162\u6b7b\uff0c\u6570\u636e\u8981\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u597d\u51e0\u904d\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877119\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : stateman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u89c9\u8ddf serverless \u76f8\u5173\u6027\u4e0d\u9ad8\u5427\uff0c \u5373\u4f7f EC2\uff0ccpu cores \u4e5f\u662f\u6709\u4e0a\u9650\u7684\uff0c\u6700\u5927\u89c4\u683c\u662f 48Cpu core\uff0c96 vCpu\uff0c\u4f46\u6570\u636e\u91cf\u53ef\u80fd\u662f\u65e0\u9650\u589e\u52a0\u7684\uff0c\u800c\u4e14\u5f88\u53ef\u80fd\u662f\u51e0\u4f55\u7ea7\u589e\u51cf\uff0c\u5982\u679c\u7ffb\u4e86 100 \u500d\uff0c1000 \u500d\uff0c\u600e\u4e48\u89e3\u51b3\u5462\uff1f<br \/>@oneforallsoft                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4e2a\u4eba\u89c9\u5f97 serverless \u5e26\u6765\u7684\u4ef7\u503c\uff08\u6bd4\u5982\u6309\u4f7f\u7528\u8ba1\u8d39\uff0c\u4e8b\u4ef6\u89e6\u53d1\uff0c\u51cf\u5c11\u8fd0\u7ef4\u7b49\uff09\u4e0d\u5e94\u8be5\u8ddf serverless \u7684\u8ba1\u7b97\u80fd\u529b\u6302\u94a9\uff0c\u4e3a\u4ec0\u4e48 serverless \u8ba1\u7b97\u5c31\u53ea\u80fd\u5c0f\u89c4\u683c\u5462\uff1f\u53ea\u662f\u4ece\u6280\u672f\u7684\u89d2\u5ea6\uff08\u8d44\u6e90\u5229\u7528\uff0c\u5f39\u6027\u4f38\u7f29\uff09\u76ee\u524d\u63d0\u4f9b\u5927\u89c4\u683c\u5b9e\u4f8b\u5c1a\u672a\u6210\u719f\uff0c\u4f46\u662f\u9700\u6c42\u662f\u771f\u5b9e\u5b58\u5728\u7684\uff0c\u6240\u4ee5\u963f\u91cc\u4e91\u51fd\u6570\u8ba1\u7b97\u63a8\u51fa\u4e86\u6027\u80fd\u578b\u5b9e\u4f8b\uff0c\u6700\u5927 8 \u6838 16GB\uff0c\u4e3b\u53ef\u4ee5\u8bd5\u4e0b\uff1a https:\/\/help.aliyun.com\/document_detail\/179379.html#title-mhb-tgy-0m9 \u3002<\/p>\n<p>\u4f46\u662f\u5373\u4f7f\u6709\u5927\u89c4\u683c\u5b9e\u4f8b\uff0c\u4e0d\u7ba1\u662f\u670d\u52a1\u5668\u8fd8\u662f\u65e0\u670d\u52a1\u5668\uff0c\u662f\u4e0d\u662f\u9760\u5355\u673a\u7684\u9ad8\u914d\u7f6e\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5c31\u597d\u5462\uff1f\u6211\u89c9\u5f97\u80fd\u4e0d\u62c6\u8fd8\u80fd\u8fbe\u5230\u4e1a\u52a1\u76ee\u7684\u6700\u597d\uff0c\u4f46\u662f\u6709\u65f6\u5019\u9700\u8981\u8003\u8651\u5176\u5b83\u56e0\u7d20\uff0c\u6bd4\u5982\u4e2d\u9014\u5931\u8d25\u5e26\u6765\u7684\u5f71\u54cd\uff0c\u5c31\u50cf\u6253\u6e38\u620f\u53ea\u80fd\u4e00\u6b21\u901a\u5173\u4e0d\u80fd\u4fdd\u5b58\u8fdb\u5ea6\u4e00\u6837\uff0c\u5f88\u4e0d\u723d\uff0c\u767d\u6253\u4e86\u3002\u4f60\u8fd9\u4e2a\u573a\u666f\u53ef\u80fd\u8fd8\u597d\uff0c\u6709\u7684\u573a\u666f\u9700\u8981\u62c6\u5206\uff0c\u53c8\u8981\u5bf9\u62c6\u5206\u540e\u7684\u4efb\u52a1\u4fdd\u5b58\u8fdb\u5ea6\uff0c\u505a\u72b6\u6001\u7ba1\u7406\uff0c\u8fd9\u4e9b\u4e8b\u60c5\u8ba9 serverless faas \u6765\u505a\u4e0d\u5408\u9002\uff0c\u66f4\u597d\u7684\u505a\u6cd5\u662f\u5de5\u4f5c\u6d41\u534f\u8c03\u51fd\u6570\uff0c\u4e0d\u597d\u610f\u601d\uff0c\u518d\u5141\u8bb8\u6211\u63a8\u8350\u4e00\u4e0b Serverless \u5de5\u4f5c\u6d41\u670d\u52a1\uff0c\u8fd9\u91cc\u6709\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u5de5\u4f5c\u6d41\u548c\u51fd\u6570\u5b9e\u73b0 MapReduce\uff0chttps:\/\/developer.aliyun.com\/article\/741105 \u3002<\/p>\n<p>\u6b22\u8fce\u63a2\u8ba8\uff0c\u5410\u69fd\uff0c\u52a0\u76df\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             serverless \u66f4\u591a\u7684\u51fa\u53d1\u70b9\u5728\u4e8e\uff0c\u968f\u7528\u968f\u53d6\u3002\u800c\u4e0d\u662f\u7206\u53d1\u6027\u8d28\u7684\u4e00\u4e0b\u5b50\u9700\u6c42\u5de8\u5927\u529f\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             serverless \u5e76\u4e0d\u53ea\u6709 lambda\uff0c\u8fd8\u6709 fargate<\/p>\n<p>lambda \u9002\u5408\u7b80\u5355\u4e1a\u52a1\uff0c\u4e00\u822c\u7528\u4f5c\u5fae\u670d\u52a1\u7279\u522b\u5408\u9002\u3002\u5982\u679c\u9700\u8981\u66f4\u9ad8\u7684\u5355\u673a\u6027\u80fd\uff0c\u6216\u8005\u9700\u8981\u7a81\u7834 lambda \u7684\u65f6\u95f4\u548c\u7a7a\u95f4\u9650\u5236\uff0c\u90a3\u53ef\u4ee5\u8003\u8651 fargate \u3002\u914d\u7f6e\u597d\u81ea\u5df1\u7684 docker image\uff0c\u7136\u540e\u4ee5 serverless \u7684\u65b9\u5f0f\u8fd0\u884c\u5bb9\u5668\u3002<\/p>\n<p>AWS \u5df2\u7ecf\u57fa\u672c\u5b9e\u73b0\u4e86\u4e00\u5207\u7686 serverless\uff0c\u8fde\u5173\u7cfb\u578b\u6570\u636e\u5e93\u90fd\u53ef\u4ee5 serverless \u7684\u65b9\u5f0f\u8fd0\u884c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lihongming \u5927\u4f6c \u6c42\u4e2a fargate \u6216 ecs \u5165\u95e8\u5de5\u5177 \u4f60\u4e0d\u4f1a\u7528 ecs-cli \u547d\u4ee4\u884c \u5427?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lihongming fargate \u662f\u4e0d\u662f\u4e0d\u9700\u8981\u50cf lambda \u90a3\u6837\u628a\u6240\u6709\u4ee3\u7801\u90fd\u62c6\u6210\u4e00\u4e2a\u4e2a function \u5982\u679c laravel \u5c31\u53ef\u4ee5\u50cf\u4f20\u7edf\u90a3\u6837\u7528 \u5c31\u662f\u5b58\u50a8\u65b9\u9762\u9700\u8981\u7528 s3 \u800c\u4e0d\u662f\u672c\u5730\u78c1\u76d8?<br \/>\u62b1\u6b49 \u5c0f\u5f1f\u76ee\u524d\u8fd9\u65b9\u9762\u5f88\u83dc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oneforallsoft fargate \u5c31\u662f\u4ee5 serverless \u7684\u65b9\u5f0f\u8fd0\u884c docker image\uff0c\u6240\u4ee5\u4f60\u53ea\u8981\u4f1a\u7528 docker\uff0c\u5c31\u53ef\u4ee5\u7528 fargate\uff0c\u65e0\u975e\u5c31\u662f\u914d\u7f6e\u4e00\u4e0b\u7b56\u7565\uff08\u4fdd\u6301\u51e0\u4e2a\u5b9e\u4f8b\u8fd0\u884c\uff0c\u5f53\u7a7a\u95f2\u5b9e\u4f8b\u5c11\u4e8e\u591a\u5c11\u65f6\u589e\u52a0\uff0c\u591a\u4e8e\u591a\u5c11\u65f6\u51cf\u5c11\u4e4b\u7c7b\u7684\uff09<\/p>\n<p>serverless \u6240\u6709\u6d89\u53ca\u6301\u4e45\u5316\u7684\u5b58\u50a8\u90fd\u5fc5\u987b\u4f7f\u7528\u5916\u90e8\u670d\u52a1\uff08\u6570\u636e\u5e93\u3001S3 \u4e4b\u7c7b\u7684\uff09\uff0c\u56e0\u4e3a\u4f60\u7684\u5b9e\u4f8b\u4e0d\u4f1a\u957f\u671f\u4fdd\u5b58\uff0c\u8fd0\u884c\u5b8c\u968f\u65f6\u53ef\u80fd\u88ab\u9500\u6bc1\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lihongming \u53c8\u60f3\u5230 2 \u4e2a\u95ee\u9898 <br \/>#fargate \u914d\u7f6e\u597d\u8fd0\u884c\u8d77\u6765\u540e \u6709\u4e2a\u516c\u7f51 ip \u8bbf\u95ee\u662f\u80fd\u8bbf\u95ee \u4f46\u8981\u4e0d\u8981\u548c load balancer \u7ed3\u5408 \u662f\u4e0d\u662f\u4e00\u5b9a\u9700\u8981 load balancer \u4e0d\u7136\u5982\u679c\u8d1f\u8f7d\u5f88\u5927 \u8d77\u4e86\u5f88\u591a\u4e2a instance \u600e\u4e48\u4fdd\u8bc1\u4ed6\u4eec\u4f7f\u7528\u540c\u4e00\u4e2a\u516c\u7f51 ip?<br \/>#\u6211\u9700\u8981\u66f4\u65b0\u4ee3\u7801\u65f6 \u600e\u4e48\u628a docker image \u5f04\u4e0a\u53bb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3877127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oneforallsoft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #\u600e\u4e48\u66f4\u65b0\u4ee3\u7801\u627e\u5230\u4e86 \u5c31\u662f\u70b9 service -&gt; update \u7136\u540e \u9009\u62e9\u65b0 task definition                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>serverless \u4e0d\u9002\u5408\u5355\u673a\u9700&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/172421"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=172421"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/172421\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=172421"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=172421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}