{"id":3842,"date":"2025-11-18T16:17:36","date_gmt":"2025-11-18T08:17:36","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=3842"},"modified":"2025-11-18T16:20:43","modified_gmt":"2025-11-18T08:20:43","slug":"what-is-aws-fargate-serverless-container-engine","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/what-is-aws-fargate-serverless-container-engine\/","title":{"rendered":"What is AWS Fargate? \u7121\u4f3a\u670d\u5668\u5bb9\u5668\u5f15\u64ce"},"content":{"rendered":"<p>\u5728\u73fe\u4ee3\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e2d\uff0c\u4f01\u696d\u5e0c\u671b\u4ee5\u6700\u5c0f\u7684\u904b\u7dad\u6210\u672c\u7ba1\u7406\u5bb9\u5668\u5316\u61c9\u7528\u3002<strong>AWS Fargate<\/strong> \u662f\u4e9e\u99ac\u905c\u63d0\u4f9b\u7684\u4e00\u7a2e <strong>\u7121\u4f3a\u670d\u5668\u904b\u7b97\u5f15\u64ce<\/strong>\uff0c\u5b83\u5141\u8a31\u7528\u6236\u5728\u7121\u9700\u7ba1\u7406\u5e95\u5c64\u4f3a\u670d\u5668\u7684\u60c5\u6cc1\u4e0b\u904b\u884c\u5bb9\u5668\u3002\u672c\u6587\u5c07\u89e3\u7b54 <strong>what is AWS Fargate<\/strong>\uff0c\u4e26\u8a73\u7d30\u4ecb\u7d39\u5176\u7d44\u4ef6\u3001\u512a\u52e2\u3001\u9650\u5236\u53ca\u6700\u4f73\u5be6\u52d9\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>What is AWS Fargate\uff1f<\/h4>\n<p><strong>AWS Fargate<\/strong> \u662fAmazon Elastic Container Service (ECS) \u7684\u904b\u7b97\u5f15\u64ce\uff0c\u5b83\u900f\u904e\u62bd\u8c61\u5316\u5e95\u5c64\u57fa\u790e\u8a2d\u65bd\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u5c08\u6ce8\u65bc\u61c9\u7528\u7a0b\u5f0f\u672c\u8eab\u3002\u4f7f\u7528\u8005\u53ea\u9700\u5b9a\u7fa9\u5bb9\u5668\u6240\u9700\u7684CPU\u3001\u8a18\u61b6\u9ad4\u548c\u7db2\u8def\u8cc7\u6e90\uff0cFargate \u5c31\u6703\u81ea\u52d5\u8655\u7406\uff1a<\/p>\n<ul>\n<li>\u4f3a\u670d\u5668\u555f\u52d5\u8207\u7ba1\u7406<\/li>\n<li>\u8cc7\u6e90\u8abf\u5ea6\u548c\u64f4\u5c55<\/li>\n<li>\u5b89\u5168\u9694\u96e2<\/li>\n<\/ul>\n<p>Fargate \u652f\u63f4Linux \u548cWindows \u5bb9\u5668\uff0c\u4e26\u8207AWS \u7684\u5176\u4ed6\u670d\u52d9\uff08\u5982S3\u3001CloudWatch \u548cIAM\uff09\u7121\u7e2b\u6574\u5408\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>AWS Fargate \u7684\u4e3b\u8981\u512a\u52e2<\/h4>\n<h5 style=\"padding-left: 40px;\"><strong>1.\u7c21\u5316\u57fa\u790e\u8a2d\u65bd\u7ba1\u7406<\/strong><\/h5>\n<ul>\n<li>\u4f7f\u7528\u8005\u7121\u9700\u7ba1\u7406EC2 \u5be6\u4f8b\u6216\u4f5c\u696d\u7cfb\u7d71<\/li>\n<li>\u81ea\u52d5\u8655\u7406\u5bb9\u5668\u8abf\u5ea6\u3001\u7db2\u8def\u548c\u5132\u5b58\u8cc7\u6e90<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>2.\u5b89\u5168\u6027\u9ad8<\/strong><\/h5>\n<ul>\n<li>\u6bcf\u500b\u4efb\u52d9\u5728\u7368\u7acb\u74b0\u5883\u4e2d\u904b\u884c<\/li>\n<li>\u8207AWS IAM \u96c6\u6210\uff0c\u63a7\u5236\u8cc7\u6e90\u5b58\u53d6\u6b0a\u9650<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>3.\u9748\u6d3b\u6027\u8207\u76f8\u5bb9\u6027<\/strong><\/h5>\n<ul>\n<li>\u652f\u63f4Docker \u5bb9\u5668<\/li>\n<li>\u53ef\u8207ECS \u6216EKS \u642d\u914d\u4f7f\u7528<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>4.\u81ea\u52d5\u64f4\u5c55<\/strong><\/h5>\n<ul>\n<li>Fargate \u53ef\u6839\u64daCPU\u3001\u8a18\u61b6\u9ad4\u6216\u7db2\u8def\u9700\u6c42\u81ea\u52d5\u64f4\u5c55\u5bb9\u5668<\/li>\n<li>\u9069\u5408\u9ad8\u6d41\u91cf\u6216\u52d5\u614b\u8ca0\u8f09\u5834\u666f<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>AWS Fargate \u7684\u9650\u5236<\/h4>\n<ul>\n<li>\u4e0d\u652f\u63f4GPU \u52a0\u901f\u5bb9\u5668<\/li>\n<li>\u7121\u6cd5\u904b\u4f5c\u9700\u8981\u5b58\u53d6\u5e95\u5c64\u4f5c\u696d\u7cfb\u7d71\u7684\u7279\u6b0a\u5bb9\u5668<\/li>\n<li>\u7db2\u8def\u914d\u7f6e\u548c\u8cc7\u6e90\u4e0a\u6709\u4e00\u5b9a\u9650\u5236<\/li>\n<li>\u5340\u57df\u53ef\u7528\u6027\u6709\u9650<\/li>\n<\/ul>\n<p>\u5118\u7ba1\u5982\u6b64\uff0cFargate \u4ecd\u7136\u662f\u9069\u5408\u5927\u591a\u6578\u4f01\u696d\u7684 <strong>\u7121\u4f3a\u670d\u5668\u5bb9\u5668\u89e3\u6c7a\u65b9\u6848<\/strong>\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u6838\u5fc3\u7d44\u4ef6<\/h4>\n<h5 style=\"padding-left: 40px;\"><strong>1.Task\uff08\u4efb\u52d9\uff09<\/strong><\/h5>\n<ul>\n<li>\u5b9a\u7fa9\u5bb9\u5668\u93e1\u50cf\u3001CPU\u3001\u8a18\u61b6\u9ad4\u548c\u9023\u63a5\u57e0\u6620\u5c04<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>2.Cluster\uff08\u96c6\u7fa4\uff09<\/strong><\/h5>\n<ul>\n<li>\u7d44\u7e54\u548c\u8abf\u5ea6\u4efb\u52d9\u7684\u908f\u8f2f\u96c6\u5408<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>3.Container Image\uff08\u5bb9\u5668\u93e1\u50cf\uff09<\/strong><\/h5>\n<ul>\n<li>\u5305\u542b\u61c9\u7528\u7a0b\u5f0f\u53ca\u5176\u904b\u4f5c\u6240\u9700\u7684\u4f9d\u8cf4<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>4.Compute Resources\uff08\u8a08\u7b97\u8cc7\u6e90\uff09<\/strong><\/h5>\n<ul>\n<li>Fargate \u63d0\u4f9b\u6240\u9700\u7684CPU \u548c\u5167\u5b58<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>5.Networking\uff08\u7db2\u8def\uff09<\/strong><\/h5>\n<ul>\n<li>\u652f\u63f4VPC\u3001ENI \u548c\u5b89\u5168\u7fa4\u7d44<\/li>\n<\/ul>\n<h5 style=\"padding-left: 40px;\"><strong>6.Amazon ECS<\/strong><\/h5>\n<ul>\n<li>\u63d0\u4f9b\u4efb\u52d9\u8abf\u5ea6\u3001\u7ba1\u7406\u548cAPI \u4ecb\u9762<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>Fargate \u7684\u5de5\u4f5c\u539f\u7406<\/h4>\n<ol>\n<li>\u5b9a\u7fa9\u5bb9\u5668\u53ca\u5176\u6240\u9700\u8cc7\u6e90<\/li>\n<li>\u5efa\u7acb\u4efb\u52d9\u5b9a\u7fa9\uff08Task Definition\uff09<\/li>\n<li>\u5efa\u7acb\u53e2\u96c6\u4e26\u9078\u64c7Fargate \u4f5c\u70ba\u555f\u52d5\u985e\u578b<\/li>\n<li>Fargate \u63d0\u4f9b\u6240\u9700\u904b\u7b97\u8cc7\u6e90\u4e26\u8abf\u5ea6\u5bb9\u5668<\/li>\n<li>\u7cfb\u7d71\u81ea\u52d5\u64f4\u5c55\u4e26\u76e3\u63a7\u5bb9\u5668\u72c0\u614b<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>Fargate \u8207\u5176\u4ed6\u6280\u8853\u5c0d\u6bd4<\/h4>\n<ul>\n<li><strong>Fargate vs Kubernetes<\/strong>\uff1a<\/li>\n<li>Kubernetes \u662f\u958b\u6e90\u5bb9\u5668\u7de8\u6392\u5de5\u5177\uff0cFargate \u662f\u4e00\u500b\u7121\u4f3a\u670d\u5668\u5f15\u64ce\uff0c\u5c08\u6ce8\u65bc\u7c21\u5316ECS\/EKS \u7ba1\u7406<\/li>\n<li><strong>Fargate vs Amazon EC2<\/strong>\uff1a<\/li>\n<li>EC2 \u63d0\u4f9b\u53ef\u7ba1\u7406\u7684\u865b\u64ec\u6a5f\uff0cFargate \u62bd\u8c61\u5e95\u5c64\u4f3a\u670d\u5668\uff0c\u4f7f\u7528\u8005\u7121\u9700\u914d\u7f6e\u4f5c\u696d\u7cfb\u7d71\u548c\u7db2\u8def<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u56de\u7b54\u6838\u5fc3\u554f\u984c\uff1a<strong>what is AWS Fargate\uff1f<\/strong><\/p>\n<ul>\n<li>Fargate \u662f\u4e00\u7a2e <strong>\u7121\u4f3a\u670d\u5668\u5bb9\u5668\u8a08\u7b97\u5f15\u64ce<\/strong><\/li>\n<li>\u63d0\u4f9b\u81ea\u52d5\u5316\u7684\u8cc7\u6e90\u7ba1\u7406\u548c\u64f4\u5c55<\/li>\n<li>\u652f\u63f4ECS\/EKS\uff0c\u4e26\u8207AWS \u670d\u52d9\u6df1\u5ea6\u96c6\u6210<\/li>\n<li>\u7c21\u5316\u4f01\u696d\u5bb9\u5668\u5316\u61c9\u7528\u7684\u90e8\u7f72\u8207\u7dad<\/li>\n<\/ul>\n<p>\u900f\u904e\u7d50\u5408Fargate\uff0c\u4f01\u696d\u53ef\u4ee5\u964d\u4f4e\u7dad\u904b\u8907\u96dc\u5ea6\uff0c\u63d0\u9ad8\u8cc7\u6e90\u5229\u7528\u7387\uff0c\u540c\u6642\u5c08\u6ce8\u65bc\u61c9\u7528\u5275\u65b0\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5728\u73fe\u4ee3\u96f2\u7aef\u904b\u7b97\u74b0\u5883\u4e2d\uff0c\u4f01\u696d\u5e0c\u671b\u4ee5\u6700\u5c0f\u7684\u904b\u7dad\u6210\u672c\u7ba1\u7406\u5bb9\u5668\u5316\u61c9\u7528\u3002 AWS Fargate \u662f\u4e9e\u99ac\u905c\u63d0\u4f9b\u7684\u7121\u4f3a\u670d\u5668\u904b\u7b97\u5f15\u64ce\uff0c\u5b83\u5141\u8a31\u4f7f\u7528\u8005\u5728\u7121\u9700\u7ba1\u7406\u5e95\u5c64\u4f3a\u670d\u5668\u7684\u60c5\u6cc1\u4e0b\u904b\u884c\u5bb9\u5668\u3002\u672c\u6587\u5c07\u89e3\u7b54what is AWS Fargate\uff0c\u4e26\u8a73\u7d30\u4ecb\u7d39\u5176\u5143\u4ef6\u3001\u512a\u9ede\u3001\u9650\u5236\u53ca\u6700\u4f73\u5be6\u52d9\u3002<\/p>","protected":false},"author":1,"featured_media":3843,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-3842","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/comments?post=3842"}],"version-history":[{"count":1,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3842\/revisions"}],"predecessor-version":[{"id":3844,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3842\/revisions\/3844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/3843"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=3842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=3842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=3842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}