{"id":3105,"date":"2025-05-22T17:36:49","date_gmt":"2025-05-22T09:36:49","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=3105"},"modified":"2025-05-27T10:00:33","modified_gmt":"2025-05-27T02:00:33","slug":"aws-lambda-core-service-for-serverless-architecture","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/zh_hk\/aws-lambda-core-service-for-serverless-architecture\/","title":{"rendered":"AWS Lambda \uff1a\u7121\u4f3a\u670d\u5668\u67b6\u69cb\u6838\u5fc3\u670d\u52d9"},"content":{"rendered":"<p>AWS Lambda \u662fAmazon Web Services \u65bc2014 \u5e74\u63a8\u51fa\u7684\u4e00\u9805\u7121\u4f3a\u670d\u5668\u904b\u7b97\u670d\u52d9\u3002\u4f5c\u70ba\u300c\u51fd\u6578\u5373\u670d\u52d9\u300d\uff08FaaS\uff09\u7684\u4ee3\u8868\uff0cLambda \u5141\u8a31\u958b\u767c\u8005\u53ea\u9700\u7de8\u5beb\u7a0b\u5f0f\u78bc\uff0c\u7121\u9700\u7ba1\u7406\u4f3a\u670d\u5668\u6216\u57fa\u790e\u8a2d\u65bd\uff0c\u5c31\u53ef\u4ee5\u8f15\u9b06\u5be6\u73fe\u6309\u9700\u57f7\u884c\u3002\u9019\u7a2e\u67b6\u69cb\u7684\u6838\u5fc3\u6982\u5ff5\u662f\uff1a\u53ea\u5728\u6709\u4e8b\u4ef6\u89f8\u767c\u6642\u904b\u884c\u51fd\u6578\uff0c\u4e26\u4e14\u53ea\u70ba\u5be6\u969b\u57f7\u884c\u7684\u904b\u7b97\u8cc7\u6e90\u4ed8\u8cbb\u3002<\/p>\n<p>\u90a3\u9ebc\uff0cAWS Lambda \u7a76\u7adf\u8a72\u5982\u4f55\u904b\u4f5c\uff1f\u6709\u54ea\u4e9b\u5e38\u898b\u7684\u61c9\u7528\u5834\u666f\uff1f\u4ee5\u53ca\u5b83\u6709\u54ea\u4e9b\u512a\u9ede\u8207\u9650\u5236\uff1f\u672c\u6587\u5c07\u5e36\u4f60\u6df1\u5165\u4e86\u89e3\u9019\u9805\u670d\u52d9\uff0c\u5e6b\u52a9\u4f60\u8a55\u4f30\u5b83\u662f\u5426\u9069\u5408\u4f60\u7684\u5c08\u6848\u9700\u6c42\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-3106 aligncenter\" src=\"http:\/\/aws-oncloudai.com\/wp-content\/uploads\/2025\/05\/xz-3.png\" alt=\"\" width=\"277\" height=\"182\" srcset=\"https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2025\/05\/xz-3.png 277w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2025\/05\/xz-3-18x12.png 18w\" sizes=\"(max-width: 277px) 100vw, 277px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>\u4ec0\u9ebc\u662fAWS Lambda\uff1f<\/h4>\n<p>\u5f9e\u539f\u7406\u4e0a\u770b\uff0cAWS Lambda \u672c\u8cea\u4e0a\u662f\u4e00\u500b\u4e8b\u4ef6\u9a45\u52d5\u7684\u57f7\u884c\u74b0\u5883\u3002\u7576\u67d0\u500b\u4e8b\u4ef6\u767c\u751f\u6642\uff0cLambda \u6703\u81ea\u52d5\u547c\u53eb\u5c0d\u61c9\u7684\u51fd\u6578\u9032\u884c\u8655\u7406\uff0c\u800c\u958b\u767c\u8005\u53ea\u9700\u5c08\u6ce8\u65bc\u51fd\u6578\u7684\u696d\u52d9\u908f\u8f2f\uff0c\u800c\u7121\u9700\u95dc\u5fc3\u5e95\u5c64\u7684\u904b\u7b97\u8cc7\u6e90\u3002<\/p>\n<p>\u63db\u53e5\u8a71\u8aaa\uff0c\u4e0d\u9700\u8981\u8a2d\u5b9a\u865b\u64ec\u6a5f\u5668\u3001\u4e0d\u9700\u8981\u7ba1\u7406\u4f3a\u670d\u5668\uff0c\u4e0d\u9700\u8981\u624b\u52d5\u64f4\u5145\u6216\u7dad\u8b77\u7cfb\u7d71\u3002 AWS \u6703\u6839\u64da\u8acb\u6c42\u91cf\u52d5\u614b\u5730\u8655\u7406\u5e95\u5c64\u8cc7\u6e90\uff0c\u5be6\u73fe\u771f\u6b63\u610f\u7fa9\u4e0a\u7684\u300c\u7121\u4f3a\u670d\u5668\u300d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u4f7f\u7528AWS Lambda \u7684\u4e09\u5927\u512a\u52e2<\/h4>\n<ol>\n<li><strong>\u5927\u5e45\u964d\u4f4e\u7dad\u904b\u8ca0\u64d4<\/strong><\/li>\n<li>AWS \u5168\u9762\u8a17\u7ba1\u57f7\u884c\u6642\u9593\u74b0\u5883\uff0c\u7121\u9700\u8003\u616e\u4f3a\u670d\u5668\u7684\u5efa\u7acb\u3001\u7dad\u8b77\u3001\u66f4\u65b0\u6216\u4fee\u88dc\u7b49\u5de5\u4f5c\uff0c\u7bc0\u7701\u4e86\u5927\u91cf\u7684\u4eba\u529b\u548c\u6642\u9593\u6210\u672c\u3002<\/li>\n<li><strong>\u5f48\u6027\u81ea\u52d5\u64f4\u5c55<\/strong><\/li>\n<li>\u7121\u8ad6\u4f60\u7684\u51fd\u6578\u4e00\u5929\u88ab\u547c\u53eb\u4e00\u6b21\uff0c\u9084\u662f\u88ab\u547c\u53eb\u4e00\u767e\u842c\u6b21\uff0cAWS \u90fd\u6703\u81ea\u52d5\u6a6b\u5411\u64f4\u5c55\u670d\u52d9\u5be6\u4f8b\uff0c\u7121\u9700\u624b\u52d5\u914d\u7f6e\u8ca0\u8f09\u5e73\u8861\u6216\u64f4\u5bb9\u7b56\u7565\u3002<\/li>\n<li><strong>\u6309\u9700\u8a08\u8cbb\uff0c\u63a7\u88fd\u6210\u672c<\/strong><\/li>\n<li>Lambda \u5b8c\u5168\u6309\u7167\u51fd\u6578\u57f7\u884c\u7684\u6642\u9593\uff08\u4ee5\u6beb\u79d2\u70ba\u55ae\u4f4d\uff09\u8a08\u8cbb\u3002\u51fd\u6578\u672a\u88ab\u547c\u53eb\u6642\uff0c\u4e0d\u7522\u751f\u4efb\u4f55\u8cbb\u7528\u3002\u5c0d\u65bc\u6d41\u91cf\u6ce2\u52d5\u5927\u6216\u9700\u6c42\u4e0d\u78ba\u5b9a\u7684\u61c9\u7528\u5834\u666f\uff0c\u9019\u7a2e\u6309\u9700\u4ed8\u8cbb\u6a5f\u5236\u975e\u5e38\u5177\u6709\u5438\u5f15\u529b\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>Lambda \u7684\u4e8b\u4ef6\u9a45\u52d5\u67b6\u69cb\uff1a\u5982\u4f55\u89f8\u767c\u51fd\u6578\uff1f<\/h4>\n<p>AWS Lambda \u7684\u8a2d\u8a08\u6982\u5ff5\u662f\u57fa\u65bc\u201c\u4e8b\u4ef6\u9a45\u52d5\u201d\uff0c\u51fd\u6578\u7684\u57f7\u884c\u5fc5\u9808\u900f\u904e\u4e8b\u4ef6\u89f8\u767c\u3002\u5e38\u898b\u7684\u89f8\u767c\u6e90\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>S3<\/strong>\uff1a\u5982\u4e0a\u50b3\u6a94\u6848\u5230S3 \u5132\u5b58\u6876\u6642\uff1b<\/li>\n<li><strong>DynamoDB<\/strong>\uff1a\u8868\u4e2d\u63d2\u5165\u6216\u4fee\u6539\u8a18\u9304\uff1b<\/li>\n<li><strong>API Gateway<\/strong>\uff1a\u56de\u61c9Web \u61c9\u7528\u7684HTTP \u8acb\u6c42\uff1b<\/li>\n<li><strong>\u5b9a\u6642\u8abf\u5ea6<\/strong>\uff1a\u900f\u904eCloudWatch Events \u8a2d\u5b9a\u8a08\u756b\u4efb\u52d9\uff08\u5982\u6bcf\u5206\u9418\u3001\u6bcf\u5c0f\u6642\uff09\uff1b<\/li>\n<li><strong>\u8a0a\u606f\u968a\u5217\u670d\u52d9<\/strong>\uff1a\u5982SQS\u3001SNS \u8a0a\u606f\u63a8\u64ad\uff1b<\/li>\n<li><strong>Kinesis \/ Kafka<\/strong>\uff1a\u8655\u7406\u5373\u6642\u4e32\u6d41\u8cc7\u6599\u3002<\/li>\n<\/ul>\n<p>\u9019\u7a2e\u9ad8\u5ea6\u6574\u5408\u7684\u4e8b\u4ef6\u6a5f\u5236\uff0c\u4f7f\u5f97Lambda \u5e7e\u4e4e\u53ef\u4ee5\u548cAWS \u4e0a\u6240\u6709\u4e3b\u8981\u670d\u52d9\u7121\u7e2b\u5354\u4f5c\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5e38\u898b\u61c9\u7528\u5834\u666f<\/h4>\n<h5>1. \u5f71\u50cf\u8655\u7406\uff1a\u7522\u751f\u7e2e\u5716<\/h5>\n<p>\u9019\u662fLambda \u6700\u5178\u578b\u7684\u7528\u4f8b\u4e4b\u4e00\u3002\u5047\u8a2d\u4f60\u958b\u767c\u4e86\u4e00\u500b\u5716\u7247\u5206\u4eab\u5e73\u53f0\uff0c\u4f7f\u7528\u8005\u4e0a\u50b3\u9ad8\u756b\u8cea\u5716\u7247\u5f8c\uff0c\u4f60\u5e0c\u671b\u7522\u751f\u5c0d\u61c9\u7684\u4f4e\u89e3\u6790\u5ea6\u7e2e\u5716\u4ee5\u4fbf\u7db2\u9801\u5feb\u901f\u8f09\u5165\u3002\u4f60\u53ef\u4ee5\u8a2d\u5b9aS3 \u7684\u4e8b\u4ef6\u901a\u77e5\uff0c\u5728\u65b0\u5716\u50cf\u4e0a\u50b3\u5f8c\u89f8\u767cLambda \u51fd\u6578\u81ea\u52d5\u7522\u751f\u9810\u89bd\u5716\uff0c\u4e26\u5132\u5b58\u5728\u53e6\u4e00\u500bS3 \u6876\u4e2d\u3002<\/p>\n<h5>2. \u97f3\u8a0a\u8f49\u9304<\/h5>\n<p>\u7528\u6236\u4e0a\u50b3\u97f3\u8a0a\u5f8c\uff0c\u53ef\u4ee5\u900f\u904eLambda \u8abf\u7528 <strong>Amazon Transcribe<\/strong> \u81ea\u52d5\u7522\u751f\u6587\u5b57\u7a3f\uff0c\u9019\u5c0d\u64ad\u5ba2\u3001\u63a1\u8a2a\u6a94\u6848\u7b49\u975e\u5e38\u5be6\u7528\u3002<\/p>\n<h5>3. \u5373\u6642\u65e5\u8a8c\u6216\u8cc7\u6599\u6d41\u8655\u7406<\/h5>\n<p>\u7d50\u5408 <strong>Amazon Kinesis<\/strong> \u6216 <strong>Apache Kafka<\/strong>\uff0c\u4f60\u53ef\u4ee5\u5efa\u7acb\u4e00\u500b\u9ad8\u6548\u80fd\u7684\u4e32\u6d41\u8655\u7406\u5e73\u53f0\uff0c\u5c0d\u4f7f\u7528\u8005\u884c\u70ba\u3001\u65e5\u8a8c\u8cc7\u8a0a\u6216\u91d1\u878d\u8cc7\u6599\u505a\u5373\u6642\u5206\u6790\u3002<\/p>\n<h5>4. \u5efa\u7f6e\u7121\u4f3a\u670d\u5668\u5f8c\u7aef<\/h5>\n<p>Web \u6216\u884c\u52d5App \u7684\u5f8c\u7aef\u5e38\u5e38\u9700\u8981API \u4ecb\u9762\u548c\u8cc7\u6599\u5eab\u652f\u63f4\u3002\u900f\u904eAPI Gateway + Lambda + DynamoDB \u7684\u7d44\u5408\uff0c\u53ef\u4ee5\u5efa\u7acb\u4e00\u500b\u5f48\u6027\u5f37\u3001\u6210\u672c\u4f4e\u7684\u5f8c\u7aef\u7cfb\u7d71\uff0c\u7279\u5225\u9069\u5408MVP \u5c08\u6848\u3001\u65b0\u5275\u7522\u54c1\u6216\u5fae\u670d\u52d9\u6a21\u7d44\u3002<\/p>\n<h5>5. \u81ea\u52d5\u5316\u7dad\u904b\u4efb\u52d9<\/h5>\n<p>\u4f8b\u5982\uff0c\u5b9a\u671f\u6aa2\u67e5EC2 \u57f7\u884c\u500b\u9ad4\u72c0\u614b\u3001\u6e05\u7406\u672a\u4f7f\u7528\u7684\u8cc7\u6e90\u3001\u50b3\u9001\u72c0\u614b\u5831\u544a\u7b49\u4efb\u52d9\uff0c\u53ef\u4ee5\u900f\u904eLambda + CloudWatch Events \u5be6\u73fe\u81ea\u52d5\u5316\u904b\u4f5c\u7dad\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>Lambda \u7684\u9650\u5236\u8207\u6311\u6230<\/h4>\n<p>\u96d6\u7136AWS Lambda \u63d0\u4f9b\u4e86\u773e\u591a\u512a\u52e2\uff0c\u4f46\u5b83\u4e26\u975e\u842c\u80fd\uff0c\u5b58\u5728\u4e00\u4e9b\u9650\u5236\u548c\u958b\u767c\u56f0\u96e3\uff1a<\/p>\n<ol>\n<li><strong>\u57f7\u884c\u6642\u9593\u9650\u5236<\/strong><\/li>\n<li>\u6bcf\u500b\u51fd\u6578\u6700\u5927\u57f7\u884c\u6642\u9593\u70ba15 \u5206\u9418\uff0c\u4e0d\u9069\u5408\u8655\u7406\u9577\u6642\u9593\u904b\u884c\u7684\u4efb\u52d9\uff0c\u5982\u6a5f\u5668\u5b78\u7fd2\u8a13\u7df4\u3001\u5927\u578b\u8996\u8a0a\u8f49\u78bc\u7b49\u3002<\/li>\n<li><strong>\u8cc7\u6e90\u9650\u5236<\/strong><\/li>\n<li>\u6700\u5927\u53ef\u914d\u7f6e\u8a18\u61b6\u9ad4\u70ba10 GB\uff0c\u6700\u591a\u4f7f\u75286 \u500bvCPU\uff0c\u4e0d\u9069\u5408\u8cc7\u6e90\u5bc6\u96c6\u578b\u4efb\u52d9\u3002<\/li>\n<li><strong>\u555f\u52d5\u5ef6\u9072\uff08\u51b7\u555f\u52d5\uff09<\/strong><\/li>\n<li>\u5728\u51fd\u6578\u9577\u6642\u9593\u672a\u57f7\u884c\u5f8c\u518d\u6b21\u547c\u53eb\u6642\uff0c\u53ef\u80fd\u6703\u51fa\u73fe\u555f\u52d5\u5ef6\u9072\uff0c\u5f71\u97ff\u97ff\u61c9\u901f\u5ea6\u3002\u9019\u5c0d\u4f7f\u7528\u8005\u9ad4\u9a57\u8981\u6c42\u9ad8\u7684Web \u61c9\u7528\u662f\u4e00\u5927\u6311\u6230\u3002<\/li>\n<li><strong>\u90e8\u7f72\u8907\u96dc\u6027<\/strong><\/li>\n<li>\u5c0f\u898f\u6a21\u51fd\u6578\u53ef\u4ee5\u76f4\u63a5\u900f\u904eAWS \u63a7\u5236\u53f0\u958b\u767c\u3002\u4f46\u96a8\u8457\u5c08\u6848\u8907\u96dc\u5ea6\u63d0\u5347\uff0c\u51fd\u6578\u4e4b\u9593\u7684\u4f9d\u8cf4\u3001\u6b0a\u9650\u914d\u7f6e\u3001\u6e2c\u8a66\u74b0\u5883\u540c\u6b65\u7b49\u8b8a\u5f97\u66f4\u52a0\u7e41\u7463\uff0c\u624b\u52d5\u7ba1\u7406\u6548\u7387\u4f4e\u4e14\u5bb9\u6613\u51fa\u932f\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4>\u7121\u4f3a\u670d\u5668\u6846\u67b6\u5354\u52a9\u9ad8\u6548\u958b\u767c<\/h4>\n<p>\u70ba\u4e86\u89e3\u6c7a\u90e8\u7f72\u548c\u7ba1\u7406\u4e0a\u7684\u75db\u9ede\uff0c\u793e\u5340\u958b\u767c\u4e86\u591a\u7a2e\u201c\u7121\u4f3a\u670d\u5668\u6846\u67b6\u201d\uff0c\u5982\uff1a<\/p>\n<ul>\n<li><strong>Serverless Framework<\/strong><\/li>\n<li><strong>AWS SAM\uff08Serverless Application Model\uff09<\/strong><\/li>\n<li><strong>Terraform + Lambda Modules<\/strong><\/li>\n<\/ul>\n<p>\u9019\u4e9b\u5de5\u5177\u5141\u8a31\u958b\u767c\u8005\u900f\u904e\u8a2d\u5b9a\u6a94\uff08\u5982YAML \u6216JSON\uff09\u5b9a\u7fa9\u51fd\u6578\u3001\u89f8\u767c\u5668\u3001\u6b0a\u9650\u7b49\uff0c\u4e26\u652f\u63f4\u4e00\u9375\u90e8\u7f72\uff0c\u9069\u7528\u65bc\u6301\u7e8c\u6574\u5408\/\u6301\u7e8c\u4ea4\u4ed8\uff08CI\/CD\uff09\u6d41\u7a0b\u3002<\/p>\n<p>\u900f\u904e\u672c\u5730\u958b\u767c+ \u81ea\u52d5\u90e8\u7f72+ \u53ef\u91cd\u8907\u6253\u5305\uff0c\u53ef\u4ee5\u5927\u5e45\u63d0\u5347\u5718\u968a\u6548\u7387\uff0c\u4e26\u964d\u4f4e\u51fa\u932f\u6a5f\u7387\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>Lambda \u5728\u4f01\u696d\u67b6\u69cb\u6f14\u9032\u4e2d\u7684\u89d2\u8272<\/h4>\n<p>\u96a8\u8457\u4f01\u696d\u5c0d\u9748\u6d3b\u6027\u3001\u6210\u672c\u63a7\u5236\u548c\u958b\u767c\u6548\u7387\u8981\u6c42\u7684\u4e0d\u65b7\u63d0\u9ad8\uff0c\u50b3\u7d71\u55ae\u9ad4\u67b6\u69cb\u5df2\u9010\u6b65\u5411\u5fae\u670d\u52d9\u3001\u4e8b\u4ef6\u9a45\u52d5\u548c\u7121\u4f3a\u670d\u5668\u67b6\u69cb\u6f14\u9032\u3002\u5728\u9019\u500b\u904e\u7a0b\u4e2d\uff0c<strong>AWS Lambda \u6210\u70ba\u63a8\u52d5\u67b6\u69cb\u73fe\u4ee3\u5316\u7684\u95dc\u9375\u529b\u91cf<\/strong>\u3002<\/p>\n<p>\u5728\u5927\u578b\u4f01\u696d\u4e2d\uff0cLambda \u5e38\u7528\u65bc\u4ee5\u4e0b\u5e7e\u985e\u67b6\u69cb\u6700\u4f73\u5316\u60c5\u5883\uff1a<\/p>\n<ul>\n<li><strong>\u907a\u7559\u7cfb\u7d71\u7684\u6f38\u9032\u5f0f\u6539\u9020<\/strong><\/li>\n<li><strong>\u4e8b\u4ef6\u7e3d\u7dda\u9a45\u52d5\u7684\u7cfb\u7d71\u96c6\u6210<\/strong><\/li>\n<li><strong>CI\/CD \u7ba1\u7dda\u81ea\u52d5\u5316<\/strong><\/li>\n<li><strong>\u5b89\u5168\u8207\u5408\u898f\u81ea\u52d5\u56de\u61c9<\/strong><\/li>\n<\/ul>\n<p>\u6b64\u5916\uff0cLambda \u4e5f\u5728\u908a\u7de3\u904b\u7b97\uff08\u5982AWS Lambda@Edge\uff09\u548cAI \u63a8\u7406\u7b49\u65b0\u8208\u5834\u666f\u4e2d\u5d84\u9732\u982d\u89d2\uff0c\u9032\u4e00\u6b65\u62d3\u5bec\u4e86\u5b83\u7684\u9069\u7528\u908a\u754c\u3002<\/p>\n<h3>\u6d3b\u8e8d\u7684\u958b\u767c\u8005\u751f\u614b\u8207\u5b78\u7fd2\u8def\u5f91<\/h3>\n<p>AWS Lambda \u64c1\u6709\u6d3b\u8e8d\u7684\u958b\u767c\u8005\u793e\u7fa4\u8207\u8c50\u5bcc\u7684\u5b78\u7fd2\u8cc7\u6e90\u3002 AWS \u5b98\u65b9\u63d0\u4f9b\u4e86\u591a\u8a9e\u8a00\u652f\u63f4\uff08Node.js\u3001Python\u3001Java\u3001Go\u3001.NET \u7b49\uff09\uff0c\u4e26\u900f\u904eAWS Lambda Powertools \u63d0\u4f9b\u6700\u4f73\u5be6\u8e10\u5de5\u5177\u5eab\uff0c\u7c21\u5316\u65e5\u8a8c\u8a18\u9304\u3001\u6307\u6a19\u6536\u96c6\u8207\u932f\u8aa4\u8ffd\u8e64\u7b49\u5de5\u4f5c\u3002<\/p>\n<p>\u958b\u767c\u8005\u53ef\u900f\u904eAWS Skill Builder\u3001GitHub \u7bc4\u4f8b\u5c08\u6848\u6216ServerlessConf \u5f71\u7247\u5feb\u901f\u5165\u9580\uff0c\u5168\u9762\u63d0\u5347\u96f2\u7aef\u539f\u751f\u80fd\u529b\u3002<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>AWS Lambda \u662f\u5efa\u7f6e\u7121\u4f3a\u670d\u5668\u67b6\u69cb\u7684\u6838\u5fc3\u670d\u52d9\u4e4b\u4e00\u3002\u5b83\u900f\u904e\u4e8b\u4ef6\u9a45\u52d5\u7684\u57f7\u884c\u6a21\u578b\u3001\u81ea\u52d5\u5f48\u6027\u64f4\u5c55\u3001\u57fa\u65bc\u4f7f\u7528\u8a08\u8cbb\u7b49\u512a\u52e2\uff0c\u70ba\u958b\u767c\u8005\u63d0\u4f9b\u4e86\u6975\u5927\u7684\u9748\u6d3b\u6027\u8207\u53ef\u64f4\u5c55\u6027\u3002<\/p>\n<p>\u7121\u8ad6\u662f\u5f71\u50cf\u8655\u7406\u3001\u65e5\u8a8c\u5206\u6790\uff0c\u6216\u662f\u5efa\u7acb\u5b8c\u6574\u7684API \u5f8c\u7aef\uff0cLambda \u90fd\u80fd\u5728\u964d\u4f4e\u7dad\u904b\u8ca0\u64d4\u7684\u540c\u6642\u986f\u8457\u63d0\u5347\u958b\u767c\u6548\u7387\u3002\u7136\u800c\uff0c\u958b\u767c\u8005\u4e5f\u9700\u610f\u8b58\u5230\u5176\u8cc7\u6e90\u8207\u6642\u9593\u9650\u5236\uff0c\u8a55\u4f30\u662f\u5426\u9069\u5408\u81ea\u5df1\u7684\u5de5\u4f5c\u8ca0\u8f09\u3002<\/p>\n<p>\u672a\u4f86\uff0c\u96a8\u8457\u7121\u4f3a\u670d\u5668\u751f\u614b\u7684\u9032\u4e00\u6b65\u6210\u719f\uff0c\u6211\u5011\u9810\u671fAWS Lambda \u5c07\u5728\u5fae\u670d\u52d9\u3001\u4e8b\u4ef6\u9a45\u52d5\u67b6\u69cb\u548c\u81ea\u52d5\u5316\u7dad\u904b\u7b49\u5834\u666f\u4e2d\u626e\u6f14\u8d8a\u4f86\u8d8a\u91cd\u8981\u7684\u89d2\u8272\u3002\u5982\u679c\u4f60\u60f3\u64c1\u62b1\u96f2\u7aef\u539f\u751f\u67b6\u69cb\uff0cLambda \u7121\u7591\u662f\u4e00\u500b\u975e\u5e38\u503c\u5f97\u5617\u8a66\u7684\u8d77\u9ede\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>AWS Lambda \u662fAmazon Web Services \u65bc2014 \u5e74\u63a8\u51fa\u7684\u4e00\u9805\u7121\u4f3a\u670d\u5668\u904b\u7b97\u670d\u52d9\u3002\u4f5c\u70ba\u300c\u51fd\u6578\u5373\u670d\u52d9\u300d\uff08FaaS\uff09\u7684\u4ee3\u8868\uff0cLambda \u5141\u8a31\u958b\u767c\u8005\u53ea\u9700\u7de8\u5beb\u7a0b\u5f0f\u78bc\uff0c\u7121\u9700\u7ba1\u7406\u4f3a\u670d\u5668\u6216\u57fa\u790e\u8a2d\u65bd\uff0c\u5c31\u53ef\u4ee5\u8f15\u9b06\u5be6\u73fe\u6309\u9700\u57f7\u884c\u3002\u9019\u7a2e\u67b6\u69cb\u7684\u6838\u5fc3\u6982\u5ff5\u662f\uff1a\u53ea\u5728\u6709\u4e8b\u4ef6\u89f8\u767c\u6642\u904b\u884c\u51fd\u6578\uff0c\u4e26\u4e14\u53ea\u70ba\u5be6\u969b\u57f7\u884c\u7684\u904b\u7b97\u8cc7\u6e90\u4ed8\u8cbb\u3002<\/p>","protected":false},"author":1,"featured_media":3107,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-3105","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\/3105","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=3105"}],"version-history":[{"count":0,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/posts\/3105\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media\/3107"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/media?parent=3105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/categories?post=3105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/zh_hk\/wp-json\/wp\/v2\/tags?post=3105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}