{"id":188558,"date":"2024-11-11T23:47:28","date_gmt":"2024-11-11T15:47:28","guid":{"rendered":"https:\/\/server.hk\/cnblog\/188558\/"},"modified":"2024-11-11T23:47:29","modified_gmt":"2024-11-11T15:47:29","slug":"%e6%8e%a2%e7%b4%a2apache-apollo%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%84%aa%e5%8b%a2%e8%88%87%e6%87%89%e7%94%a8-apache-apollo-%e6%95%b8%e6%93%9a%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/188558\/","title":{"rendered":"\u63a2\u7d22Apache Apollo\u6578\u64da\u5eab\u7684\u512a\u52e2\u8207\u61c9\u7528 (apache apollo \u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"%e6%8e%a2%e7%b4%a2apache-apollo%e6%95%b8%e6%93%9a%e5%ba%ab%e7%9a%84%e5%84%aa%e5%8b%a2%e8%88%87%e6%87%89%e7%94%a8-xJWPFfhDgJ\">\u63a2\u7d22Apache Apollo\u6578\u64da\u5eab\u7684\u512a\u52e2\u8207\u61c9\u7528<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u7cfb\u7d71\u5c0d\u65bc\u4f01\u696d\u7684\u6210\u529f\u81f3\u95dc\u91cd\u8981\u3002Apache Apollo\u4f5c\u70ba\u4e00\u500b\u9ad8\u6548\u7684\u6d88\u606f\u4ee3\u7406\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u591a\u7a2e\u512a\u52e2\u548c\u61c9\u7528\u5834\u666f\uff0c\u7279\u5225\u662f\u5728\u9700\u8981\u9ad8\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u7684\u74b0\u5883\u4e2d\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eApache Apollo\u7684\u7279\u9ede\u3001\u512a\u52e2\u4ee5\u53ca\u5176\u5728\u4e0d\u540c\u9818\u57df\u7684\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afapache-apollo%ef%bc%9f-xJWPFfhDgJ\">\u4ec0\u9ebc\u662fApache Apollo\uff1f<\/h2>\n<p>Apache Apollo\u662f\u4e00\u500b\u958b\u6e90\u7684\u6d88\u606f\u4ee3\u7406\u7cfb\u7d71\uff0c\u65e8\u5728\u63d0\u4f9b\u9ad8\u6548\u7684\u6d88\u606f\u50b3\u905e\u548c\u8655\u7406\u80fd\u529b\u3002\u5b83\u662fApache ActiveMQ\u7684\u4e00\u500b\u5206\u652f\uff0c\u5c08\u6ce8\u65bc\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u3002Apollo\u652f\u6301\u591a\u7a2e\u6d88\u606f\u50b3\u905e\u5354\u8b70\uff0c\u5305\u62ecAMQP\u3001STOMP\u548cMQTT\uff0c\u4f7f\u5176\u80fd\u5920\u8207\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u548c\u670d\u52d9\u9032\u884c\u7121\u7e2b\u96c6\u6210\u3002<\/p>\n<h2 id=\"apache-apollo%e7%9a%84%e4%b8%bb%e8%a6%81%e5%84%aa%e5%8b%a2-xJWPFfhDgJ\">Apache Apollo\u7684\u4e3b\u8981\u512a\u52e2<\/h2>\n<h3 id=\"1-%e9%ab%98%e6%80%a7%e8%83%bd-xJWPFfhDgJ\">1. \u9ad8\u6027\u80fd<\/h3>\n<p>Apache Apollo\u7684\u8a2d\u8a08\u76ee\u7684\u662f\u70ba\u4e86\u5be6\u73fe\u9ad8\u541e\u5410\u91cf\u548c\u4f4e\u5ef6\u9072\u3002\u5176\u5167\u90e8\u67b6\u69cb\u512a\u5316\u4e86\u6d88\u606f\u7684\u8655\u7406\u6d41\u7a0b\uff0c\u80fd\u5920\u5728\u9ad8\u8ca0\u8f09\u60c5\u6cc1\u4e0b\u4fdd\u6301\u7a69\u5b9a\u7684\u6027\u80fd\u3002\u6839\u64da\u6e2c\u8a66\uff0cApollo\u80fd\u5920\u8655\u7406\u6bcf\u79d2\u6578\u5341\u842c\u689d\u6d88\u606f\uff0c\u9019\u4f7f\u5176\u6210\u70ba\u9700\u8981\u5feb\u901f\u6578\u64da\u8655\u7406\u7684\u61c9\u7528\u7684\u7406\u60f3\u9078\u64c7\u3002<\/p>\n<h3 id=\"2-%e5%8f%af%e6%93%b4%e5%b1%95%e6%80%a7-xJWPFfhDgJ\">2. \u53ef\u64f4\u5c55\u6027<\/h3>\n<p>\u96a8\u8457\u696d\u52d9\u7684\u589e\u9577\uff0c\u6578\u64da\u91cf\u548c\u7528\u6236\u6578\u91cf\u4e5f\u6703\u96a8\u4e4b\u589e\u52a0\u3002Apache Apollo\u652f\u6301\u6c34\u5e73\u64f4\u5c55\uff0c\u5141\u8a31\u7528\u6236\u6839\u64da\u9700\u6c42\u6dfb\u52a0\u66f4\u591a\u7684\u7bc0\u9ede\uff0c\u5f9e\u800c\u63d0\u9ad8\u7cfb\u7d71\u7684\u6574\u9ad4\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002\u9019\u7a2e\u53ef\u64f4\u5c55\u6027\u4f7f\u5f97Apollo\u80fd\u5920\u9069\u61c9\u4e0d\u65b7\u8b8a\u5316\u7684\u696d\u52d9\u9700\u6c42\u3002<\/p>\n<h3 id=\"3-%e5%a4%9a%e5%8d%94%e8%ad%b0%e6%94%af%e6%8c%81-xJWPFfhDgJ\">3. \u591a\u5354\u8b70\u652f\u6301<\/h3>\n<p>Apache Apollo\u652f\u6301\u591a\u7a2e\u6d88\u606f\u50b3\u905e\u5354\u8b70\uff0c\u9019\u4f7f\u5f97\u5b83\u80fd\u5920\u8207\u4e0d\u540c\u7684\u61c9\u7528\u7a0b\u5e8f\u548c\u670d\u52d9\u9032\u884c\u96c6\u6210\u3002\u7121\u8ad6\u662f\u4f7f\u7528AMQP\u9032\u884c\u4f01\u696d\u7d1a\u61c9\u7528\uff0c\u9084\u662f\u4f7f\u7528MQTT\u9032\u884c\u7269\u806f\u7db2\u8a2d\u5099\u7684\u901a\u4fe1\uff0cApollo\u90fd\u80fd\u5920\u63d0\u4f9b\u9748\u6d3b\u7684\u89e3\u6c7a\u65b9\u6848\u3002<\/p>\n<h3 id=\"4-%e6%98%93%e6%96%bc%e7%ae%a1%e7%90%86-xJWPFfhDgJ\">4. \u6613\u65bc\u7ba1\u7406<\/h3>\n<p>Apache Apollo\u63d0\u4f9b\u4e86\u76f4\u89c0\u7684\u7ba1\u7406\u754c\u9762\uff0c\u4f7f\u7528\u6236\u80fd\u5920\u8f15\u9b06\u76e3\u63a7\u548c\u7ba1\u7406\u6d88\u606f\u7cfb\u7d71\u3002\u7528\u6236\u53ef\u4ee5\u901a\u904eWeb\u754c\u9762\u67e5\u770b\u7cfb\u7d71\u7684\u6027\u80fd\u6307\u6a19\u3001\u6d88\u606f\u968a\u5217\u7684\u72c0\u614b\u4ee5\u53ca\u5176\u4ed6\u91cd\u8981\u4fe1\u606f\uff0c\u9019\u5c0d\u65bc\u904b\u7dad\u4eba\u54e1\u4f86\u8aaa\u662f\u975e\u5e38\u65b9\u4fbf\u7684\u3002<\/p>\n<h2 id=\"apache-apollo%e7%9a%84%e6%87%89%e7%94%a8%e5%a0%b4%e6%99%af-xJWPFfhDgJ\">Apache Apollo\u7684\u61c9\u7528\u5834\u666f<\/h2>\n<h3 id=\"1-%e5%af%a6%e6%99%82%e6%95%b8%e6%93%9a%e8%99%95%e7%90%86-xJWPFfhDgJ\">1. \u5be6\u6642\u6578\u64da\u8655\u7406<\/h3>\n<p>\u5728\u91d1\u878d\u670d\u52d9\u3001\u96fb\u5b50\u5546\u52d9\u7b49\u884c\u696d\uff0c\u5be6\u6642\u6578\u64da\u8655\u7406\u81f3\u95dc\u91cd\u8981\u3002Apache Apollo\u80fd\u5920\u5feb\u901f\u8655\u7406\u5927\u91cf\u7684\u4ea4\u6613\u6578\u64da\uff0c\u4e26\u5373\u6642\u5c07\u7d50\u679c\u53cd\u994b\u7d66\u7528\u6236\uff0c\u5f9e\u800c\u63d0\u9ad8\u7528\u6236\u9ad4\u9a57\u3002<\/p>\n<h3 id=\"2-%e7%89%a9%e8%81%af%e7%b6%b2%ef%bc%88iot%ef%bc%89-xJWPFfhDgJ\">2. \u7269\u806f\u7db2\uff08IoT\uff09<\/h3>\n<p>\u96a8\u8457\u7269\u806f\u7db2\u6280\u8853\u7684\u767c\u5c55\uff0c\u8a2d\u5099\u4e4b\u9593\u7684\u901a\u4fe1\u9700\u6c42\u65e5\u76ca\u589e\u52a0\u3002Apache Apollo\u7684MQTT\u5354\u8b70\u652f\u6301\u4f7f\u5176\u6210\u70ba\u7269\u806f\u7db2\u61c9\u7528\u7684\u7406\u60f3\u9078\u64c7\uff0c\u80fd\u5920\u9ad8\u6548\u5730\u8655\u7406\u4f86\u81ea\u5404\u7a2e\u8a2d\u5099\u7684\u6d88\u606f\u3002<\/p>\n<h3 id=\"3-%e5%be%ae%e6%9c%8d%e5%8b%99%e6%9e%b6%e6%a7%8b-xJWPFfhDgJ\">3. \u5fae\u670d\u52d9\u67b6\u69cb<\/h3>\n<p>\u5728\u5fae\u670d\u52d9\u67b6\u69cb\u4e2d\uff0c\u5404\u500b\u670d\u52d9\u4e4b\u9593\u9700\u8981\u9032\u884c\u9ad8\u6548\u7684\u901a\u4fe1\u3002Apache Apollo\u80fd\u5920\u4f5c\u70ba\u6d88\u606f\u4e2d\u4ecb\uff0c\u5e6b\u52a9\u4e0d\u540c\u670d\u52d9\u4e4b\u9593\u9032\u884c\u89e3\u8026\uff0c\u5f9e\u800c\u63d0\u9ad8\u7cfb\u7d71\u7684\u9748\u6d3b\u6027\u548c\u53ef\u7dad\u8b77\u6027\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-xJWPFfhDgJ\">\u7e3d\u7d50<\/h2>\n<p>Apache Apollo\u4f5c\u70ba\u4e00\u500b\u9ad8\u6548\u7684\u6d88\u606f\u4ee3\u7406\u7cfb\u7d71\uff0c\u6191\u85c9\u5176\u9ad8\u6027\u80fd\u3001\u53ef\u64f4\u5c55\u6027\u548c\u591a\u5354\u8b70\u652f\u6301\uff0c\u5df2\u7d93\u5728\u591a\u500b\u884c\u696d\u4e2d\u5f97\u5230\u4e86\u5ee3\u6cdb\u61c9\u7528\u3002\u7121\u8ad6\u662f\u5be6\u6642\u6578\u64da\u8655\u7406\u3001\u7269\u806f\u7db2\u9084\u662f\u5fae\u670d\u52d9\u67b6\u69cb\uff0cApollo\u90fd\u80fd\u5920\u63d0\u4f9b\u9748\u6d3b\u4e14\u9ad8\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u90e8\u7f72Apache Apollo\uff0cServer.HK\u63d0\u4f9b\u4e86\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22Apache Apollo\u6578\u64da\u5eab\u7684\u512a\u52e2\u8207\u61c9\u7528\uff0c\u4e86\u89e3\u5176\u9ad8\u6548\u6027\u80fd\u3001\u9748\u6d3b\u6027\u53ca\u5728\u73fe\u4ee3\u61c9\u7528\u4e2d\u7684\u91cd\u8981\u89d2\u8272\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-188558","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=188558"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188558\/revisions"}],"predecessor-version":[{"id":188559,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/188558\/revisions\/188559"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=188558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=188558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=188558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}