{"id":9972,"date":"2023-03-20T15:35:48","date_gmt":"2023-03-20T07:35:48","guid":{"rendered":"http:\/\/123.57.164.21\/?p=9972"},"modified":"2023-03-20T15:35:48","modified_gmt":"2023-03-20T07:35:48","slug":"%e5%b0%8f%e7%99%bd%e5%85%a5%e9%97%a8%e5%be%ae%e6%9c%8d%e5%8a%a1-%e4%bb%80%e4%b9%88%e6%98%af-api-gateway","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=9972","title":{"rendered":"\u5c0f\u767d\u5165\u95e8\u5fae\u670d\u52a1-\u4ec0\u4e48\u662f API gateway"},"content":{"rendered":"\n<p><strong>\u524d\u8a00<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4e00\u5f00\u59cb\u5427\uff0c\u611f\u89c9\u6211\u4e5f\u63cf\u8ff0\u4e0d\u597d\u4ec0\u4e48\u662f API gateway\uff0c\u5728\u770b\u4e86\u8fd9\u7bc7<a rel=\"noreferrer noopener\" href=\"https:\/\/microservices.io\/patterns\/apigateway.html\" target=\"_blank\">\u6587\u7ae0<\/a>\uff08<a rel=\"noreferrer noopener\" href=\"https:\/\/microservices.io\/patterns\/apigateway.html\" target=\"_blank\">https:\/\/microservices.io\/patterns\/apigateway.html<\/a>\uff09\u4e4b\u540e\uff0c\u611f\u89c9\u8c41\u7136\u5f00\u6717\uff0c\u90a3\u4e48\u6211\u8fd9\u8fb9\u5c31\u7528\u6211\u7684\u8bed\u8a00\u6765\u63cf\u8ff0\u4e00\u904d\u3002<\/p>\n\n\n\n<p><strong>\u4ec0\u4e48\u662f API gateway<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>API gateway \u5904\u4e8e\u5ba2\u6237\u7aef\u4e0e\u5404\u4e2a\u5fae\u670d\u52a1\u4e4b\u95f4\uff0c\u5b83\u62c5\u4efb\u4e86\u53cd\u5411\u4ee3\u7406\u7684\u89d2\u8272\uff0c\u5c06\u4e0d\u540c\u7684\u8bf7\u6c42\u8def\u7531\u5230\u76f8\u5bf9\u5e94\u7684\u5fae\u670d\u52a1\u4e2d\u53bb\u3002\u4e0e\u6b64\u540c\u65f6\uff0c\u5b83\u8fd8\u6709\u4ee5\u4e0b\u529f\u80fd\uff1a\u5b89\u5168\uff0c\u9650\u6d41\uff0c\u7f13\u5b58\uff0c\u65e5\u5fd7\uff0c\u76d1\u63a7\uff0c\u91cd\u8bd5\uff0c\u7194\u65ad\u7b49\u3002<\/p>\n\n\n\n<p><strong>\u4e3a\u4ec0\u4e48\u8981\u7528 API gateway<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u9996\u5148\u6211\u4eec\u6765\u5927\u80c6\u60f3\u60f3\u4e00\u4e0b\uff0c\u4f60\u662f\u4e00\u4e2a\u516c\u53f8\u7684 CTO\uff0c\u4f60\u516c\u53f8\u7684\u4ea7\u54c1\u662f\u8981\u505a\u4e00\u4e2a\u7c7b\u4f3c\u4e8e\u5f53\u5f53\u7684\u5356\u4e66\u4ea7\u54c1\uff0c\u53eb\u3010\u53ee\u53ee\u5f53\u5f53\u3011\u3002\u90a3\u4e48\u4f60\u7684\u4ea7\u54c1\u53ef\u80fd\u6709\u4ee5\u4e0b\u4e09\u7aef\uff1a<\/p>\n\n\n\n<ul><li>\u7f51\u9875\u7248<\/li><li>Android\/iOS \u5ba2\u6237\u7aef<\/li><li>\u5c0f\u7a0b\u5e8f<\/li><\/ul>\n\n\n\n<p>\u5f53\u7136\u4f60\u7684\u4ea7\u54c1\u505a\u5f97\u8db3\u591f\u5927\u7684\u8bdd\uff0c\u4f60\u6709\u5fc5\u8981\u5f00\u653e\u4e00\u4e9b\u7ed9\u7b2c\u4e09\u65b9\u8c03\u7528\u7684 REST API \u63a5\u53e3\u3002<br>\u90a3\u4e48\u73b0\u5728\u6765\u8ba8\u8bba\u4e00\u4e0b\u4ea7\u54c1\u7684\u4e00\u4e9b\u529f\u80fd\uff1a<\/p>\n\n\n\n<ul><li>\u767b\u5f55\u6ce8\u518c\uff08\u767b\u5f55\u6ce8\u518c\u3001\u7528\u6237\u57fa\u7840\u4fe1\u606f\u7684\u5b58\u53d6\uff09<\/li><li>\u4ef7\u683c\u670d\u52a1\uff08\u8bb0\u5f55\u4ef7\u683c\u3001\u53cc\u5341\u4e00\u7279\u4ef7\u3001\u79d2\u6740\u4ef7\u3001\u4f18\u60e0\u5238\u4ef7\u7b49\u4ef7\u683c\u7684\u8ba1\u7b97\uff09<\/li><li>\u4ea7\u54c1\u670d\u52a1\uff08\u4ea7\u54c1\u4fe1\u606f\u3001\u540d\u79f0\u3001\u5355\u4ef7\u3001\u56fe\u7247\u5c55\u793a\uff09<\/li><li>\u5e93\u5b58\u670d\u52a1\uff08\u8bb0\u5f55\u4ea7\u54c1\u5e93\u5b58\uff09<\/li><li>\u8bc4\u4ef7\u670d\u52a1\uff08\u8d2d\u4e70\u5546\u54c1\u540e\u7684\u5ba2\u6237\u8bc4\u4ef7\u3001\u8ba8\u8bba\u533a\uff09<\/li><li>\u7b2c\u4e09\u65b9\u5f00\u653e\u63a5\u53e3\uff08\u4f8b\u5982\uff1a\u5fae\u4fe1\u5f00\u653e\u5e73\u53f0\uff0c\u63d0\u4f9b\u7ed9\u7b2c\u4e09\u4e2a\u8c03\u7528\u7684\u63a5\u53e3\uff09<\/li><\/ul>\n\n\n\n<p>\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff1a<\/p>\n\n\n\n<ul><li>\u5ba2\u6237\u7aef\u4e0e\u4f17\u591a\u5fae\u670d\u52a1\u4ea4\u4e92\uff0c\u534f\u8bae\u4e0d\u7edf\u4e00\uff0c\u6709\u4e9b\u534f\u8bae\u662f\u5bf9\u5ba2\u6237\u7aef\u4e0d\u53cb\u597d\u7684\u3002<\/li><li>\u6570\u636e\u4e0d\u7edf\u4e00\uff0c\u53ef\u80fd\u5728\u4e00\u4e2a\u64cd\u4f5c\u4e2d\uff0c\u9700\u8981\u591a\u4e2a\u5fae\u670d\u52a1\u7684\u6570\u636e\u7ec4\u88c5\u8d77\u6765\uff0c\u624d\u662f\u6211\u4eec\u4e00\u6b21\u8bf7\u6c42\u60f3\u8981\u7684\u6570\u636e\u3002<\/li><li>\u5fae\u670d\u52a1 ip \u548c port \u6539\u53d8\uff0c\u5ba2\u6237\u7aef\u65e0\u6cd5\u611f\u77e5\u3002<\/li><li>\u4e0d\u540c\u7684\u7ec8\u7aef\u9700\u8981\u4e0d\u540c\u7684\u6570\u636e\uff0c\u79fb\u52a8\u7aef\u53ef\u80fd\u4ec5\u4ec5 json \u6570\u636e\u5c31\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u7f51\u9875\u7aef\u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u6570\u636e\u5c55\u793a\u3002<\/li><li>\u5173\u4e8e\u9274\u6743\uff0c\u4f17\u591a\u5fae\u670d\u52a1\uff0c\u96be\u9053\u6bcf\u4e2a\u5fae\u670d\u52a1\u90fd\u72ec\u7acb\u62e5\u6709\u4e00\u5957\u9274\u6743\u7cfb\u7edf\u5417\uff1f<\/li><\/ul>\n\n\n\n<p><strong>\u89e3\u51b3\u65b9\u6848 &#8212; API gateway\uff08\u5982\u56fe\uff09<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f7f\u7528 API gateway\uff0c\u90a3\u4e48\u4f17\u591a\u95ee\u9898\u90fd\u5f97\u5230\u89e3\u51b3\uff1a<\/p>\n\n\n\n<ul><li>\u5404\u4e2a\u5fae\u670d\u52a1\u5148\u4e0e API gateway \u4ea4\u4e92\uff0c\u8f6c\u6362\u6210\u5ba2\u6237\u7aef\u53cb\u597d\u7684 REST API\u3002<\/li><li>\u5728 API gateway \u4e2d\u7ec4\u88c5\u597d\u6570\u636e\u518d\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/li><li>\u5728 API gateway \u4e2d\u4fee\u6539 ip \u4e0e port \u5ba2\u6237\u7aef\u65e0\u611f\u77e5\uff0c\u6b63\u5e38\u4f7f\u7528\u3002<\/li><li>\u91c7\u7528\u591a\u4e2a API gateway \uff0c\u4e0d\u540c API gateway \u54cd\u5e94\u4e0d\u540c\u7684\u6570\u636e\u7ed9\u4e0d\u540c\u7ec8\u7aef\u3002<\/li><li>\u5728 API gateway \u4e2d\u7edf\u4e00\u9274\u6743\uff0c\u7701\u53bb\u591a\u4f59\u4ee3\u7801\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/03\/image-136-1024x695.png\" alt=\"\" class=\"wp-image-9973\" width=\"432\" height=\"293\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-1024x695.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-300x204.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-768x522.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-830x564.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-230x156.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-350x238.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136-480x326.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-136.png 1384w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/03\/image-137-1024x786.png\" alt=\"\" class=\"wp-image-9974\" width=\"409\" height=\"313\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-1024x786.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-300x230.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-768x589.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-830x637.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-230x177.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-350x269.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137-480x368.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/03\/image-137.png 1290w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/figure><\/div>\n\n\n\n<p>\u771f\u6b63\u7684\u5fae\u670d\u52a1\u67b6\u6784\u8fd8\u8fdc\u4e0d\u6b62\u8fd9\u4e9b\u4e1c\u897f\uff0c\u8fd8\u6709\u670d\u52a1\u6ce8\u518c\u3001\u670d\u52a1\u53d1\u73b0\u7b49\u7b49\u3002\u8fd9\u91cc\u53ea\u662f\u5e26\u9886\u4f60\u5165\u4e2a\u95e8\uff0c\u540e\u9762\u4f1a\u5faa\u5e8f\u6e10\u8fdb\uff0c\u9010\u6b65\u8d70\u5411\u5b8c\u6574\u3002\u5f88\u9ad8\u5174\u4f60\u80fd\u770b\u5230\u8fd9\u91cc\uff0c\u53c8\u8fdb\u4e00\u6b65\u5b66\u4e60\u4e86\u5fae\u670d\u52a1\u3002<br><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u4e00\u5f00\u59cb\u5427\uff0c\u611f\u89c9\u6211\u4e5f\u63cf\u8ff0\u4e0d\u597d\u4ec0\u4e48\u662f API gateway\uff0c\u5728\u770b\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff08https:\/\/microse [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9972"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9972"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9972\/revisions"}],"predecessor-version":[{"id":9975,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/9972\/revisions\/9975"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}