{"id":59475,"date":"2024-10-12T22:18:14","date_gmt":"2024-10-12T14:18:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/59475\/"},"modified":"2024-10-12T22:18:15","modified_gmt":"2024-10-12T14:18:15","slug":"baas%e6%87%89%e7%94%a8%e4%b8%ad%e9%81%b8%e6%93%87%e4%bd%95%e7%a8%ae%e6%95%b8%e6%93%9a%e5%ba%ab%e6%9b%b4%e9%81%a9%e5%90%88%e4%bd%8e%e5%b1%a4%e7%b5%90%e6%a7%8b%ef%bc%9f-baas%e4%bd%8e%e5%b1%a4%e7%94%a8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/59475\/","title":{"rendered":"BaaS\u61c9\u7528\u4e2d\u9078\u64c7\u4f55\u7a2e\u6578\u64da\u5eab\u66f4\u9069\u5408\u4f4e\u5c64\u7d50\u69cb\uff1f (baas\u4f4e\u5c64\u7528\u4ec0\u9ebc\u6578\u64da\u5eab)"},"content":{"rendered":"<h1 id=\"baas%e6%87%89%e7%94%a8%e4%b8%ad%e9%81%b8%e6%93%87%e4%bd%95%e7%a8%ae%e6%95%b8%e6%93%9a%e5%ba%ab%e6%9b%b4%e9%81%a9%e5%90%88%e4%bd%8e%e5%b1%a4%e7%b5%90%e6%a7%8b%ef%bc%9f-QDKSNhXVAQ\">BaaS\u61c9\u7528\u4e2d\u9078\u64c7\u4f55\u7a2e\u6578\u64da\u5eab\u66f4\u9069\u5408\u4f4e\u5c64\u7d50\u69cb\uff1f<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u96f2\u8a08\u7b97\u6642\u4ee3\uff0cBackend as a Service\uff08BaaS\uff09\u5df2\u6210\u70ba\u958b\u767c\u8005\u5feb\u901f\u69cb\u5efa\u61c9\u7528\u7a0b\u5e8f\u7684\u91cd\u8981\u5de5\u5177\u3002BaaS\u63d0\u4f9b\u4e86\u4e00\u500b\u5f8c\u7aef\u89e3\u6c7a\u65b9\u6848\uff0c\u8b93\u958b\u767c\u8005\u80fd\u5920\u5c08\u6ce8\u65bc\u524d\u7aef\u958b\u767c\uff0c\u800c\u4e0d\u5fc5\u64d4\u5fc3\u5f8c\u7aef\u7684\u57fa\u790e\u8a2d\u65bd\u3002\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u5c0d\u65bcBaaS\u61c9\u7528\u7684\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u81f3\u95dc\u91cd\u8981\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5728BaaS\u61c9\u7528\u4e2d\uff0c\u4f55\u7a2e\u6578\u64da\u5eab\u66f4\u9069\u5408\u4f4e\u5c64\u7d50\u69cb\u3002<\/p>\n<h2 id=\"%e6%95%b8%e6%93%9a%e5%ba%ab%e9%a1%9e%e5%9e%8b%e6%a6%82%e8%bf%b0-QDKSNhXVAQ\">\u6578\u64da\u5eab\u985e\u578b\u6982\u8ff0<\/h2>\n<p>\u5728\u9078\u64c7\u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u901a\u5e38\u9762\u81e8\u5169\u7a2e\u4e3b\u8981\u985e\u578b\u7684\u6578\u64da\u5eab\uff1a\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08RDBMS\uff09\u548c\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff08NoSQL\uff09\u3002<\/p>\n<ul>\n<li><strong>\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff1a<\/strong>\u5982MySQL\u3001PostgreSQL\u7b49\uff0c\u9019\u4e9b\u6578\u64da\u5eab\u4f7f\u7528\u8868\u683c\u4f86\u5b58\u5132\u6578\u64da\uff0c\u4e26\u4e14\u652f\u6301SQL\u67e5\u8a62\u8a9e\u8a00\u3002\u5b83\u5011\u9069\u5408\u9700\u8981\u5f37\u4e00\u81f4\u6027\u548c\u8907\u96dc\u67e5\u8a62\u7684\u61c9\u7528\u3002<\/li>\n<li><strong>\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff1a<\/strong>\u5982MongoDB\u3001Cassandra\u7b49\uff0c\u9019\u4e9b\u6578\u64da\u5eab\u4f7f\u7528\u6587\u6a94\u3001\u9375\u503c\u5c0d\u6216\u5217\u65cf\u4f86\u5b58\u5132\u6578\u64da\uff0c\u9069\u5408\u9700\u8981\u9ad8\u53ef\u64f4\u5c55\u6027\u548c\u9748\u6d3b\u6578\u64da\u6a21\u578b\u7684\u61c9\u7528\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bd%8e%e5%b1%a4%e7%b5%90%e6%a7%8b%e7%9a%84%e9%9c%80%e6%b1%82-QDKSNhXVAQ\">\u4f4e\u5c64\u7d50\u69cb\u7684\u9700\u6c42<\/h2>\n<p>\u5728BaaS\u61c9\u7528\u4e2d\uff0c\u4f4e\u5c64\u7d50\u69cb\u901a\u5e38\u6307\u7684\u662f\u5f8c\u7aef\u670d\u52d9\u7684\u57fa\u790e\u8a2d\u65bd\uff0c\u5305\u62ec\u6578\u64da\u5b58\u5132\u3001\u7528\u6236\u8a8d\u8b49\u548cAPI\u7ba1\u7406\u7b49\u3002\u9019\u4e9b\u9700\u6c42\u5c0d\u6578\u64da\u5eab\u7684\u9078\u64c7\u6709\u8457\u76f4\u63a5\u5f71\u97ff\u3002<\/p>\n<h3 id=\"1-%e6%95%b8%e6%93%9a%e4%b8%80%e8%87%b4%e6%80%a7-QDKSNhXVAQ\">1. \u6578\u64da\u4e00\u81f4\u6027<\/h3>\n<p>\u5c0d\u65bc\u9700\u8981\u5f37\u4e00\u81f4\u6027\u7684\u61c9\u7528\uff0c\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u662f\u66f4\u597d\u7684\u9078\u64c7\u3002\u9019\u4e9b\u6578\u64da\u5eab\u63d0\u4f9bACID\uff08\u539f\u5b50\u6027\u3001\u4e00\u81f4\u6027\u3001\u9694\u96e2\u6027\u3001\u6301\u4e45\u6027\uff09\u7279\u6027\uff0c\u78ba\u4fdd\u6578\u64da\u5728\u591a\u7528\u6236\u74b0\u5883\u4e2d\u7684\u4e00\u81f4\u6027\u3002\u4f8b\u5982\uff0c\u91d1\u878d\u61c9\u7528\u901a\u5e38\u9700\u8981\u4f7f\u7528MySQL\u4f86\u78ba\u4fdd\u4ea4\u6613\u7684\u6e96\u78ba\u6027\u3002<\/p>\n<h3 id=\"2-%e5%8f%af%e6%93%b4%e5%b1%95%e6%80%a7-QDKSNhXVAQ\">2. \u53ef\u64f4\u5c55\u6027<\/h3>\n<p>\u5982\u679c\u61c9\u7528\u9700\u8981\u8655\u7406\u5927\u91cf\u7684\u6578\u64da\u548c\u9ad8\u4e26\u767c\u7684\u8acb\u6c42\uff0c\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5247\u66f4\u5177\u512a\u52e2\u3002\u4ee5MongoDB\u70ba\u4f8b\uff0c\u5b83\u7684\u6587\u6a94\u5c0e\u5411\u6a21\u578b\u4f7f\u5f97\u6578\u64da\u7684\u8b80\u5beb\u64cd\u4f5c\u66f4\u52a0\u9748\u6d3b\uff0c\u4e26\u4e14\u53ef\u4ee5\u8f15\u9b06\u5730\u9032\u884c\u6c34\u5e73\u64f4\u5c55\uff0c\u9069\u5408\u793e\u4ea4\u5a92\u9ad4\u6216\u96fb\u5b50\u5546\u52d9\u5e73\u53f0\u7b49\u61c9\u7528\u3002<\/p>\n<h3 id=\"3-%e9%96%8b%e7%99%bc%e9%80%9f%e5%ba%a6-QDKSNhXVAQ\">3. \u958b\u767c\u901f\u5ea6<\/h3>\n<p>\u5728\u5feb\u901f\u958b\u767c\u7684\u74b0\u5883\u4e2d\uff0c\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7684\u9748\u6d3b\u6027\u4f7f\u5f97\u958b\u767c\u8005\u80fd\u5920\u66f4\u5feb\u5730\u8fed\u4ee3\u548c\u90e8\u7f72\u61c9\u7528\u3002\u4f7f\u7528Firebase\u4f5c\u70baBaaS\u89e3\u6c7a\u65b9\u6848\u7684\u958b\u767c\u8005\uff0c\u53ef\u4ee5\u5229\u7528\u5176\u5167\u5efa\u7684NoSQL\u6578\u64da\u5eab\uff0c\u5feb\u901f\u69cb\u5efa\u548c\u66f4\u65b0\u61c9\u7528\u3002<\/p>\n<h2 id=\"%e9%81%b8%e6%93%87%e5%bb%ba%e8%ad%b0-QDKSNhXVAQ\">\u9078\u64c7\u5efa\u8b70<\/h2>\n<p>\u5728\u9078\u64c7\u6578\u64da\u5eab\u6642\uff0c\u958b\u767c\u8005\u61c9\u6839\u64da\u5177\u9ad4\u7684\u61c9\u7528\u9700\u6c42\u4f86\u505a\u51fa\u6c7a\u7b56\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5efa\u8b70\uff1a<\/p>\n<ul>\n<li>\u5982\u679c\u61c9\u7528\u9700\u8981\u8907\u96dc\u7684\u67e5\u8a62\u548c\u4e8b\u52d9\u8655\u7406\uff0c\u9078\u64c7\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff0c\u5982PostgreSQL\u3002<\/li>\n<li>\u5982\u679c\u61c9\u7528\u9700\u8981\u9ad8\u53ef\u64f4\u5c55\u6027\u548c\u9748\u6d3b\u7684\u6578\u64da\u6a21\u578b\uff0c\u8003\u616e\u4f7f\u7528MongoDB\u6216Cassandra\u3002<\/li>\n<li>\u5c0d\u65bc\u5feb\u901f\u958b\u767c\u548c\u539f\u578b\u8a2d\u8a08\uff0cFirebase\u6216AWS DynamoDB\u662f\u4e0d\u932f\u7684\u9078\u64c7\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-QDKSNhXVAQ\">\u7d50\u8ad6<\/h2>\n<p>\u5728BaaS\u61c9\u7528\u4e2d\uff0c\u9078\u64c7\u5408\u9069\u7684\u6578\u64da\u5eab\u5c0d\u65bc\u6eff\u8db3\u4f4e\u5c64\u7d50\u69cb\u7684\u9700\u6c42\u81f3\u95dc\u91cd\u8981\u3002\u958b\u767c\u8005\u61c9\u6839\u64da\u61c9\u7528\u7684\u7279\u6027\u3001\u6578\u64da\u4e00\u81f4\u6027\u9700\u6c42\u548c\u53ef\u64f4\u5c55\u6027\u8003\u91cf\u4f86\u9078\u64c7\u6700\u5408\u9069\u7684\u6578\u64da\u5eab\u3002\u7121\u8ad6\u662f\u9078\u64c7\u95dc\u4fc2\u578b\u9084\u662f\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff0c\u4e86\u89e3\u5176\u512a\u7f3a\u9ede\u5c07\u6709\u52a9\u65bc\u69cb\u5efa\u9ad8\u6548\u3001\u7a69\u5b9a\u7684\u61c9\u7528\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u6709\u95dc<code><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/code>\u548c<code><a href=\"https:\/\/server.hk\">\u4e91\u670d\u52a1\u5668<\/a><\/code>\u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22BaaS\u61c9\u7528\u4e2d\u9069\u5408\u4f4e\u5c64\u7d50\u69cb\u7684\u6578\u64da\u5eab\u9078\u64c7\uff0c\u52a9\u60a8\u63d0\u5347\u6027\u80fd\u8207\u64f4\u5c55\u6027\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-59475","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59475","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"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=59475"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59475\/revisions"}],"predecessor-version":[{"id":59476,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59475\/revisions\/59476"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=59475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=59475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=59475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}