{"id":50641,"date":"2024-01-05T17:59:48","date_gmt":"2024-03-05T09:34:35","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/"},"modified":"2024-05-04T17:02:27","modified_gmt":"2024-05-04T09:02:27","slug":"%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/","title":{"rendered":"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL"},"content":{"rendered":"<p>\u6211\u4e4b\u524d\u53ea\u662f\u7a0d\u5fae\u63a5\u89e6\u8fc7DynamoDB\uff0c\u4f46\u770b\u5230\u4e00\u7bc7\u8bf4DynamoDB\u6570\u636e\u4e0d\u4e00\u81f4\u6027\u7684\u6587\u7ae0\u540e\uff0c\u4e00\u76f4\u6000\u7591DynamoDB\u5230\u5e95\u6709\u4ec0\u4e48\u597d\u7684\u5730\u65b9\u3002\u8fd9\u662f\u6211\u8bd5\u56fe\u89e3\u5f00\u8fd9\u4e2a\u7591\u95ee\u65f6\u7684\u603b\u7ed3\u3002<\/p>\n<h1>\u8bf7\u7528\u4e2d\u6587\u6982\u62ec<\/h1>\n<p>\u672c\u6295\u7a3f\u65e8\u5728\u52a0\u6df1\u5bf9NoSQL\u7684\u7406\u89e3\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">NoSQL\u3068\u306f<\/ul>\n<\/li>\n<\/ul>\n<p>Non-Relational\u306a\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<br \/>\nRDBMS\u306eSharding\u306e\u4f55\u304c\u554f\u984c\u3060\u3063\u305f\u306e\u304b<\/p>\n<p>\u5206\u6563\u30b7\u30b9\u30c6\u30e0<\/p>\n<p>CAP Theorem<br \/>\nScalabiilty (Replication \/ Sharding)<\/p>\n<p>DynamoDB<\/p>\n<h1>\u984d\u5916\u8ac7\u53ca\uff1a\u300a\u8a2d\u8a08\u6578\u64da\u5bc6\u96c6\u578b\u61c9\u7528\u300b\u662f\u4e00\u672c\u7d93\u5178\u4e4b\u4f5c\u3002<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/5-0.jpeg\" alt=\"51gP9mXEqWL._SX379_BO1,204,203,200_.jpg\" \/><\/div>\n<p>\u300a\u540d\u8457 \u540d\u8457\u300b\u5df2\u6210\u4e3a\u6240\u6709\u5e94\u7528\u5de5\u7a0b\u5e08\u5fc5\u8bfb\u7684\u7ea7\u522b\u4e86\u3002\u5982\u679c\u60f3\u8981\u6df1\u5165\u7406\u89e3\u6570\u636e\u5e93\uff0c\u6211\u8ba4\u4e3a\u7edd\u5bf9\u5e94\u8be5\u9605\u8bfb\u5b83\u3002\u636e\u8bf4\u8fd8\u6709\u65e5\u8bed\u7ffb\u8bd1\u7248\u672c\uff0c\u975e\u5e38\u63a8\u8350\u9605\u8bfb\u3002<\/p>\n<h1>NoSQL\u7684\u5174\u8d77<\/h1>\n<p>\u9996\u5148, \u6211\u4eec\u5c06\u6765\u770b\u4e00\u4e0bNoSQL\u662f\u6307\u4ec0\u4e48\uff0c\u5b83\u4e3a\u4ec0\u4e48\u8bde\u751f\u3002<\/p>\n<h2>NoSQL\u662f\u4ec0\u4e48\uff1f<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/10-0.jpeg\" alt=\"NoSQL-&amp;-NewSQL.jpg\" \/><\/div>\n<p>NoSQL\u6307\u7684\u662f\u201cNot Only SQL\u201d\u7684\u7f29\u5199\uff0c\u5b83\u662f\u6307\u91c7\u7528\u975e\u5173\u7cfb\u578b\u6570\u636e\u6a21\u578b\u7684\u6570\u636e\u5e93\uff0c\u4ee5\u6446\u8131SQL\u7684\u9650\u5236\u3002\u867d\u7136\u6211\u4eec\u7edf\u79f0\u4e3aNoSQL\uff0c\u4f46\u5b83\u4eec\u5177\u6709\u591a\u79cd\u4e0d\u540c\u7684\u6570\u636e\u6a21\u578b\u548c\u91c7\u7528\u7684\u6280\u672f\u4e5f\u5404\u6709\u4e0d\u540c\u3002\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4e3b\u8981\u8ba8\u8bbaDynamoDB\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u51fa\u73b0\u4e86NoSQL\uff1f<\/h2>\n<p>NoSQL\u7684\u8d77\u6e90\u662fAmazon\u7684&#8221;Dynamo&#8221;\u548cGoogle\u7684&#8221;BigTable&#8221;\u7684\u8bba\u6587\u3002\u968f\u540e\u5728\u65e7\u91d1\u5c71\u4e3e\u884c\u4e86\u4e00\u7cfb\u5217\u7684NoSQL\u805a\u4f1a\u3002<\/p>\n<p>\u901a\u8fc7\u5173\u6ce8Dynamo\u548cNoSQL\u805a\u4f1a\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5728\u6570\u636e\u5e93\u7684\u4e3b\u6d41\u4e2d\uff0cRDBMS\u6709\u4f55\u4e0d\u8db3\u4e4b\u5904\u3002<\/p>\n<h3>\u9b54\u672f\u5e08<\/h3>\n<p>Dynamo\u7684\u52a8\u673a\u5728AWS\u9996\u5e2d\u6280\u672f\u5b98\u7684\u535a\u5ba2\u4e2d\u8bb0\u5f55\u7740\u3002<\/p>\n<blockquote><p>\u901a\u8fc7\u5bf9\u6211\u4eec\u73b0\u6709\u6570\u636e\u5e93\u7684\u6df1\u5165\u6316\u6398\uff0c\u6211\u4eec\u53d1\u73b0\u5b83\u4eec\u7ecf\u5e38\u4e0d\u4f1a\u7528\u4e8e\u5176\u5173\u7cfb\u80fd\u529b\u3002\u5927\u7ea670%\u7684\u64cd\u4f5c\u662f\u952e\u503c\u64cd\u4f5c\uff0c\u53ea\u4f7f\u7528\u4e86\u4e3b\u952e\u5e76\u8fd4\u56de\u5355\u884c\u6570\u636e\u3002\u7ea620%\u7684\u64cd\u4f5c\u4e5f\u4f1a\u8fd4\u56de\u4e00\u7ec4\u884c\u6570\u636e\uff0c\u4f46\u4ecd\u53ea\u5728\u5355\u4e2a\u8868\u4e0a\u64cd\u4f5c\u3002<br \/>\n\u3010\u5f15\u7528\u3011\u300aDynamo\u5341\u5e74\u4e4b\u56de\u987e\uff1a\u63a8\u52a8\u4e0b\u4e00\u6ce2\u9ad8\u6027\u80fd\u3001\u4e92\u8054\u7f51\u89c4\u6a21\u7684\u5e94\u7528\u300b<\/p><\/blockquote>\n<p>\u8bb8\u591a\u60c5\u51b5\u4e0b\u5e76\u4e0d\u9700\u8981\u4f7f\u7528\u5173\u7cfb\u578b\u6570\u636e\u5e93\u6765\u7ba1\u7406\u6570\u636e\uff0cDynamo\u7684\u52a8\u673a\u662f\u56e0\u4e3a\u5176\u4e2d\u5927\u90e8\u5206\u662f\u7b80\u5355\u7684\u64cd\u4f5c\u3002<\/p>\n<h3>\u4e09\u85e9\u5e02\u65e0SQL\u805a\u4f1a<\/h3>\n<p>\u8fd9\u662f\u57282009\u5e74\u5728\u65e7\u91d1\u5c71\u4e3e\u529e\u7684 meetup\u3002\u5728\u8fd9\u6b21 meetup \u4e2d\u8bde\u751f\u4e86 NoSQL \u8fd9\u4e2a\u672f\u8bed\u3002\u5728 meetup \u7684\u4ecb\u7ecd\u8d44\u6599\u4e2d\uff0c\u6709\u4e00\u4e2a\u5e7b\u706f\u7247\u4ecb\u7ecd\u4e86 NoSQL \u7684\u524d\u63d0\u548c\u65f6\u4ee3\u80cc\u666f\uff0c\u5176\u4e2d\u63d0\u5230\u4e86 &#8220;\u6570\u636e\u89c4\u6a21&#8221;\u3001&#8221;\u53ef\u9760\u6027&#8221; \u548c &#8220;\u6027\u80fd&#8221; \u8fd9\u4e09\u4e2a\u65b9\u9762\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">data size\uff1a\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u304c\u5897\u5927\u3057\u3001\u4e00\u3064\u306enode\u306bDB\u304c\u53ce\u307e\u308a\u304d\u3089\u306a\u304f\u306a\u3063\u305f\u3053\u3068\u304b\u3089Partition\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">reliability\uff1a\u53ef\u7528\u6027\u306e\u305f\u3081\u306bReplication\u304c\u53ef\u80fd\u3001\u304b\u3064fault-tolerant\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">performance\uff1a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u306e\u305f\u3081\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u3002<\/ul>\n<p>\u5e7b\u706f\u7247\u4e2d\u63d0\u5230\uff0c\u5728\u90a3\u4e2a\u65f6\u4ee3\u7684\u4e3b\u6d41\u6570\u636e\u5e93\u2014\u2014\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08RDBMS\uff09\u4e2d\uff0c\u6ee1\u8db3\u8fd9\u4e9b\u8981\u6c42\u662f\u56f0\u96be\u7684\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/23-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-28 18.57.50.png\" \/><\/div>\n<h3>\u6362\u53e5\u8bdd\u8bf4<\/h3>\n<p>RDBMS+Sharding\u88ab\u8ba4\u4e3a\u662f\u539f\u7f6a\uff0c\u4e5f\u662f\u7531\u4e8e\u6709\u4e86\u4e00\u4e9b\u65e0\u9700\u5173\u7cfb\u7ba1\u7406\u7684\u7528\u4f8b\u800c\u8bde\u751f\u4e86NoSQL\u3002\u56e0\u6b64\uff0c\u8981\u66f4\u6df1\u5165\u5730\u4e86\u89e3NoSQL\uff0c\u9700\u8981\u5bf9\u4ee5\u4e0b\u4e09\u4e2a\u65b9\u9762\u6709\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">RDBMS+Sharding\u306e\u554f\u984c\u70b9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">relational\u306a\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u306b\u5909\u308f\u308b\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u5206\u6563\u30b7\u30b9\u30c6\u30e0<\/ul>\n<p>\u56e0\u6b64\uff0c\u6211\u60f3\u9010\u4e00\u8ba8\u8bba\u4e0a\u8ff0\u4e09\u4e2a\u70b9\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u201cSharding\u201d\u8fd9\u4e2a\u672f\u8bed\uff0c\u5b83\u4f3c\u4e4e\u4e0e\u201cPartitioning\u201d\u610f\u601d\u76f8\u540c\u3002<\/p>\n<blockquote><p>\u6211\u4eec\u5728\u8fd9\u91cc\u6240\u79f0\u4e4b\u4e3a\u5206\u533a\uff0c\u5728 MongoDB\u3001Elasticsearch \u548c SolrCloud \u4e2d\u88ab\u79f0\u4e3a\u5206\u7247\uff1b\u5728 HBase \u4e2d\u88ab\u79f0\u4e3a\u533a\u57df\uff0c\u5728 Bigtable \u4e2d\u88ab\u79f0\u4e3a\u8868\u683c\uff0c\u5728 Cassandra \u548c Riak \u4e2d\u88ab\u79f0\u4e3a\u865a\u62df\u8282\u70b9\uff0c\u5728 Couchbase \u4e2d\u88ab\u79f0\u4e3a\u865a\u62df\u5206\u533a\u3002\u7136\u800c\uff0c\u5206\u533a\u662f\u6700\u5e38\u7528\u7684\u672f\u8bed\uff0c\u6240\u4ee5\u6211\u4eec\u5c06\u575a\u6301\u4f7f\u7528\u5b83\u3002<\/p><\/blockquote>\n<h1>\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08RDBMS\uff09+ \u5206\u7247\uff08\u5206\u533a\uff09<\/h1>\n<h2>\u5206\u7247\uff08Sharding\uff09\u662f\u6307&#8230;<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/32-0.png\" alt=\"dn589795.a60dc6b05d547b9b397aa04c37f3c644(en-us,pandp.10).png\" \/><\/div>\n<p>\u5206\u5e93\u5206\u7247\u662f\u6307\u5c06\u6570\u636e\u5e93\u5206\u5272\u6210\u591a\u4e2a\u90e8\u5206\uff0c\u5e76\u5c06\u5206\u5272\u540e\u7684\u6570\u636e\u5e93\u5206\u914d\u5230\u4e0d\u540c\u7684\u8282\u70b9\u4e0a\u3002\uff08Shared-nothing\uff09<br \/>\n\u7531\u4e8e\u6570\u636e\u5927\u5c0f\u548c\u5199\u5165\u8bf7\u6c42\u7684\u589e\u52a0\uff0c\u9700\u8981\u8fdb\u884c\u5206\u5e93\u5206\u7247\u3002\u901a\u8fc7\u5229\u7528\u5206\u5e93\u5206\u7247\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406\u6570\u636e\u5927\u5c0f\uff0c\u5e76\u4e14\u5b9e\u73b0\u8bfb\u5199\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<h2>\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf+\u5206\u7247\u7684\u95ee\u9898\u70b9<\/h2>\n<p>\u4f7f\u7528Sharding\u5f15\u5165RDBMS\u4f5c\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u662f\u53ef\u884c\u7684\uff0c\u4f46\u8fd9\u6837\u505a\u4f1a\u5b8c\u5168\u524a\u5f31RDB\u7684\u4f18\u52bf\u3002\u539f\u672cRDBMS\u662f\u4ee5\u5355\u4e2a\u8282\u70b9\u4fdd\u6301\u5355\u4e00\u6570\u636e\u5e93\u7684\u6574\u4f53\u5f62\u5f0f\u5b58\u5728\u7684\uff0c\u4e0d\u8003\u8651\u5c06\u6570\u636e\u5e93\u5206\u6563\u5230\u591a\u4e2a\u8282\u70b9\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/36-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-26 9.41.02.png\" \/><\/div>\n<p>\u7531\u4e8e\u5728\u300aNoSQL Distilled\u300b\u4e2d\u5bf9RDBMS+Sharding\u8fdb\u884c\u4e86\u7b80\u6d01\u7684\u603b\u7ed3\uff0c\u56e0\u6b64\u6211\u4eec\u5f15\u7528\u5982\u4e0b\uff1a<\/p>\n<blockquote><p>\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u4e0d\u540c\u6570\u636e\u96c6\u7684\u72ec\u7acb\u670d\u52a1\u5668\u8fd0\u884c\uff0c\u4ece\u800c\u6709\u6548\u5730\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u5206\u7247\uff08\u201c\u5206\u7247\u201d\uff0c\u7b2c38\u9875\uff09\u3002\u867d\u7136\u8fd9\u6837\u53ef\u4ee5\u5206\u6563\u8d1f\u8f7d\uff0c\u4f46\u6240\u6709\u7684\u5206\u7247\u90fd\u5fc5\u987b\u7531\u5e94\u7528\u7a0b\u5e8f\u63a7\u5236\uff0c\u5e94\u7528\u7a0b\u5e8f\u5fc5\u987b\u8ffd\u8e2a\u6bcf\u4e2a\u6570\u636e\u7247\u6bb5\u9700\u8981\u4e0e\u54ea\u4e2a\u6570\u636e\u5e93\u670d\u52a1\u5668\u901a\u4fe1\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u4f1a\u5931\u53bb\u8de8\u5206\u7247\u7684\u67e5\u8be2\u3001\u5f15\u7528\u5b8c\u6574\u6027\u3001\u4e8b\u52a1\u6216\u4e00\u81f4\u6027\u63a7\u5236\u3002\u6211\u4eec\u7ecf\u5e38\u542c\u5230\u505a\u8fc7\u8fd9\u6837\u64cd\u4f5c\u7684\u4eba\u5728\u8fd9\u4e2a\u8bed\u5883\u4e2d\u8bf4\u7684\u4e00\u53e5\u8bdd\u662f\u201c\u4e0d\u81ea\u7136\u7684\u884c\u4e3a\u3002\u201d<\/p><\/blockquote>\n<p>\u5728\u4e0a\u8ff0\u63cf\u8ff0\u4e2d\u5217\u51fa\u4e86RDBMS+Sharding\u7684\u4ee5\u4e0b4\u4e2a\u95ee\u9898\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30a8\u30ea\u306e\u4e00\u90e8\u3092\u5931\u3046\uff08\u672c\u6295\u7a3f\u3067\u306fJOIN\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u53c2\u7167\u6574\u5408\u6027\u3092\u5931\u3046<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Transaction\u3092\u5931\u3046<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u306e\u30ed\u30b8\u30c3\u30af\u306e\u8907\u96d1\u5316<\/ul>\n<p>\u6211\u5011\u6309\u7167\u9806\u5e8f\u4f86\u770b\u3002<\/p>\n<h3>\u5931\u53bb\u52a0\u5165<\/h3>\n<p>\u5728\u5173\u7cfb\u6570\u636e\u5e93\u4e2d\uff0c\u5f15\u5165\u4e86\u6570\u636e\u7684\u89c4\u8303\u5316\u5904\u7406\u3002\u901a\u8fc7\u8fd9\u79cd\u89c4\u8303\u5316\u5904\u7406\uff0c\u6570\u636e\u88ab\u5206\u6563\u7ba1\u7406\u5728\u591a\u4e2a\u8868\u4e2d\u3002\u4e3a\u4e86\u5c06\u8fd9\u4e9b\u591a\u4e2a\u8868\u7684\u6570\u636e\u8fdb\u884c\u5408\u5e76\uff0c\u63d0\u4f9b\u4e86JOIN\u529f\u80fd\u3002<\/p>\n<p>\u7531\u65bcJOIN\u64cd\u4f5c\u5728\u55ae\u500b\u7bc0\u9ede\u4e0a\u904b\u884cRDBMS\uff0c\u56e0\u6b64\u80fd\u5920\u4fdd\u6301\u6027\u80fd\u4e26\u57f7\u884c\u6210\u529f\u3002\u5982\u679c\u5c0dRDBMS\u9032\u884c\u5206\u5340\uff0c\u8868\u5c07\u8de8\u8d8a\u591a\u500b\u7bc0\u9ede\uff0c\u9020\u6210\u8868\u7684\u9023\u63a5\u901a\u904e\u7db2\u7d61\u9032\u884c\uff0c\u5f9e\u800c\u5c0e\u81f4\u6027\u80fd\u5927\u5e45\u4e0b\u964d\u3002\uff08\u6709\u95dc\u4e8b\u52d9\u554f\u984c\u5c07\u5728\u7a0d\u5f8c\u89e3\u91cb\u3002\uff09<\/p>\n<p>RDBMS+Sharding\u7684\u95ee\u9898\u7ecf\u5e38\u88ab\u6307\u51fa\uff0c\u7136\u800c\uff0c\u8fd9\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u53ef\u4ee5\u901a\u8fc7\u8bbe\u8ba1\u6ce8\u610f\u800c\u907f\u514d\u7684\u95ee\u9898\u3002<\/p>\n<blockquote><p>\u9009\u62e9\u5206\u533a\u952e\u65f6\uff0c\u5c3d\u91cf\u9009\u62e9\u53ef\u4ee5\u5c3d\u91cf\u907f\u514d\u8de8\u5206\u7247\u67e5\u8be2\u7684\u5185\u5bb9\uff0c\u4f46\u540c\u65f6\u8981\u786e\u4fdd\u5206\u7247\u8db3\u591f\u5c0f\uff0c\u4ee5\u514d\u51fa\u73b0\u6570\u636e\u4e0d\u5747\u8861\u7684\u95ee\u9898\u3002\u5e0c\u671b\u5206\u7247\u5c3d\u91cf\u5747\u5300\u5c0f\uff0c\u5982\u679c\u4e0d\u884c\uff0c\u81f3\u5c11\u8981\u786e\u4fdd\u5206\u7247\u8db3\u591f\u5c0f\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u901a\u8fc7\u5c06\u4e0d\u540c\u6570\u91cf\u7684\u5206\u7247\u8fdb\u884c\u5206\u7ec4\u6765\u5e73\u8861\u3002<\/p><\/blockquote>\n<p>\u5982\u679c\u4f60\u80fd\u591f\u4ed4\u7ec6\u8bbe\u8ba1partition\uff0c\u5e76\u786e\u4fdd\u76f8\u5173\u7684\u8868\u80fd\u591f\u6536\u7eb3\u5728\u5355\u4e2a\u8282\u70b9\u4e0a\uff0c\u5c31\u4e0d\u9700\u8981\u6267\u884c\u8de8shard\u7684\u67e5\u8be2\u4e86\u3002\u56e0\u4e3a\u5728aws\u7684\u6587\u6863\u4e2d\u6709\u4e00\u4e2a\u5f88\u660e\u663e\u7684\u56fe\u89e3\u8bf4\u660e\u4e86\u8fd9\u4e00\u70b9\uff0c\u6240\u4ee5\u6211\u5728\u8fd9\u91cc\u9644\u4e0a\u5b83\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/48-0.gif\" alt=\"sharding-amazon-rds-3-2-2.gif\" \/><\/div>\n<h3>\u4e27\u5931\u4ea4\u6613<\/h3>\n<p>\u300c\u7ecf\u5e38\u53ef\u4ee5\u770b\u5230\u5173\u4e8e\u6267\u884c\u5206\u533a\u64cd\u4f5c\u4f1a\u5bfc\u81f4\u4e8b\u52a1\u65e0\u6cd5\u8fdb\u884c\u7684\u8bf4\u6cd5\uff0c\u4f46\u8fd9\u662f\u4e0d\u51c6\u786e\u7684\u3002\u5728\u300a\u8bbe\u8ba1\u6570\u636e\u5bc6\u96c6\u578b\u5e94\u7528\u300b\u4e00\u4e66\u4e2d\u4e5f\u6709\u63d0\u5230\u8fd9\u4e00\u70b9\u3002\u300d<\/p>\n<blockquote><p>\u8bb8\u591a\u5206\u5e03\u5f0f\u6570\u636e\u5b58\u50a8\u7cfb\u7edf\u653e\u5f03\u4e86\u591a\u5bf9\u8c61\u4e8b\u52a1\uff0c\u56e0\u4e3a\u5728\u4e0d\u540c\u5206\u533a\u4e0a\u5b9e\u73b0\u5b83\u4eec\u5f88\u56f0\u96be\uff0c\u5e76\u4e14\u5728\u67d0\u4e9b\u9700\u8981\u975e\u5e38\u9ad8\u7684\u53ef\u7528\u6027\u6216\u6027\u80fd\u7684\u573a\u666f\u4e2d\u53ef\u80fd\u4f1a\u59a8\u788d\u64cd\u4f5c\u3002\u7136\u800c\uff0c\u5e76\u6ca1\u6709\u4efb\u4f55\u6839\u672c\u4e0a\u963b\u6b62\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u4e2d\u7684\u4e8b\u52a1\uff0c\u6211\u4eec\u5c06\u5728\u7b2c9\u7ae0\u4e2d\u8ba8\u8bba\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p><\/blockquote>\n<p>\u5728MySQL\u4e2d\uff0c\u5b9e\u9645\u4e0a\u53ef\u4ee5\u4f7f\u7528XA Transaction\u4f5c\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\u7248\u672c\u7684\u4e8b\u52a1\u3002XA Transaction\u5141\u8bb8\u5728\u5b58\u50a8\u5f15\u64ce\u4e4b\u95f4\u901a\u8fc7\u7f51\u7edc\u6765\u4f7f\u7528\u4e8b\u52a1\uff0c\u800c\u4e0d\u4ec5\u4ec5\u5728\u5b58\u50a8\u5f15\u64ce\u5185\u90e8\u4f7f\u7528\u3002<\/p>\n<p>\u6b63\u5982MySQL\u6587\u6863\u4e2d\u6240\u8ff0\uff0c\u8be5XA\u4e8b\u52a1\u4f7f\u7528\u4e86\u4e24\u9636\u6bb5\u63d0\u4ea4\u3002<\/p>\n<blockquote><p>\u5168\u5c40\u4e8b\u52a1\u7684\u6267\u884c\u8fc7\u7a0b\u4f7f\u7528\u4e86\u4e24\u9636\u6bb5\u63d0\u4ea4\uff082PC\uff09\u673a\u5236\u3002\u6b64\u673a\u5236\u5728\u5168\u5c40\u4e8b\u52a1\u7684\u5206\u652f\u6267\u884c\u5b8c\u6bd5\u540e\u8fdb\u884c\u3002\u3010\u5f15\u7528\u301113.3.8 XA\u4e8b\u52a1<\/p><\/blockquote>\n<p>\u5728\u5206\u6563\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u4e8b\u52a1\u65f6\uff0c\u6bcf\u4e2a\u5b58\u50a8\u5f15\u64ce\u9700\u8981\u540c\u65f6\u6267\u884c\u4e8b\u52a1\uff0c\u800c\u7528\u4e8e\u6b64\u7684\u673a\u5236\u5c31\u662f\u4e24\u9636\u6bb5\u63d0\u4ea4\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/56-0.png\" alt=\"null.png\" \/><\/div>\n<p>\u5728\u6bcf\u4e2a\u8282\u70b9\u4e0a\u6267\u884c\u6216\u653e\u5f03\u4e8b\u52a1\u7b49\u51b3\u7b56\u5e76\u8fdb\u884c\u7ba1\u7406\u7684\u4e8b\u52a1\u7ba1\u7406\u5668\u662f\u5fc5\u9700\u7684\u3002\u7136\u800c\uff0c\u5728 MySQL \u4e2d\uff0c\u8fd9\u4e2a\u4e8b\u52a1\u7ba1\u7406\u5668\u7684\u89d2\u8272\u662f\u7531\u5e94\u7528\u7a0b\u5e8f\u8d1f\u8d23\u7684\u3002<\/p>\n<blockquote><p>\u5bf9\u4e8e\u201c\u5916\u90e8XA\u201d\uff0cMySQL\u670d\u52a1\u5668\u5145\u5f53\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5145\u5f53\u4e8b\u52a1\u7ba1\u7406\u5668\u3002\u3010\u5f15\u7528\u301113.3.8.3\u5173\u4e8eXA\u4e8b\u52a1\u7684\u9650\u5236\u3002<\/p><\/blockquote>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/59-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-26 9.41.10.png\" \/><\/div>\n<p>\u770b\u4e0a\u9762\u7684\u56fe\u5c31\u5f88\u5bb9\u6613\u7406\u89e3\uff0c\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08RDBMS\uff09\u63d0\u4f9b\u4e86\u4e0b\u65b9\u7684\u5757\uff0c\u5e76\u4e0d\u63d0\u4f9b\u5bf9\u5176\u8fdb\u884c\u7ba1\u7406\u7684\u8981\u7d20\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u867d\u7136MySQL\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u5b58\u50a8\u5f15\u64ce\u5185\u4fdd\u8bc1\u4e8b\u52a1\uff0c\u4f46\u8de8\u591a\u4e2a\u8282\u70b9\u7684\u4e8b\u52a1\u4fdd\u8bc1\u6210\u4e3a\u5e94\u7528\u7a0b\u5e8f\u7684\u8d23\u4efb\uff0c\u8fd9\u4e00\u70b9\u9700\u8981\u6ce8\u610f\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u7531\u4e8e\u6b64\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u6027\u80fd\u975e\u5e38\u5dee\uff0c\u57fa\u672c\u4e0a\u6700\u597d\u4e0d\u8981\u4f7f\u7528\u3002<\/p>\n<blockquote><p>\u6709\u4e9b\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u5b9e\u73b0\u4f1a\u5e26\u6765\u5f88\u5927\u7684\u6027\u80fd\u635f\u5931\uff0c\u4f8b\u5982\uff0c\u5728MySQL\u4e2d\u7684\u5206\u5e03\u5f0f\u4e8b\u52a1\u88ab\u62a5\u9053\u6bd4\u5355\u8282\u70b9\u4e8b\u52a1\u616210\u500d\u4ee5\u4e0a[87]\uff0c\u6240\u4ee5\u5f53\u4eba\u4eec\u5efa\u8bae\u4e0d\u8981\u4f7f\u7528\u5b83\u4eec\u65f6\u5e76\u4e0d\u4ee4\u4eba\u60ca\u8bb6\u3002\u4e24\u9636\u6bb5\u63d0\u4ea4\u6240\u56fa\u6709\u7684\u8bb8\u591a\u6027\u80fd\u6210\u672c\u662f\u7531\u4e8e\u5d29\u6e83\u6062\u590d\u6240\u9700\u7684\u989d\u5916\u78c1\u76d8\u5f3a\u5236\u5199\u5165(fsync)\uff0c\u4ee5\u53ca\u989d\u5916\u7684\u7f51\u7edc\u5f80\u8fd4\u6240\u5bfc\u81f4\u7684[88]\u3002<br \/>\n\u3010\u5f15\u7528\u3011\u300a\u6570\u636e\u5bc6\u96c6\u578b\u5e94\u7528\u7684\u8bbe\u8ba1\u300b<\/p><\/blockquote>\n<p>\u603b\u7ed3\u8d77\u6765\uff0c\u5982\u679c\u5c06MySQL\u7528\u4f5c\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u90a3\u4e48\u4e8b\u52a1\u5e76\u4e0d\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u4f46\u57fa\u672c\u4e0a\u9700\u8981\u907f\u514d\u4f7f\u7528\u5b83\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u8fd9\u610f\u5473\u7740\u4f1a\u5931\u53bbACID\u7279\u6027\u3002<\/p>\n<h3>\u5931\u53bb\u53c2\u7167\u5b8c\u6574\u6027<\/h3>\n<p>\u5728\u4f7f\u7528\u5206\u533a\u65f6\uff0cMySQL\u6587\u6863\u4e2d\u660e\u786e\u63d0\u5230\u5916\u90e8\u7ea6\u675f\u952e\u4e0d\u53d7\u652f\u6301\u3002\u5982\u679c\u65e0\u6cd5\u4f7f\u7528\u5916\u90e8\u7ea6\u675f\u952e\uff0c\u5219\u65e0\u6cd5\u4fdd\u8bc1\u5f15\u7528\u5b8c\u6574\u6027\u3002<\/p>\n<blockquote><p>\u4e0d\u652f\u6301\u5728\u5206\u533a\u7684InnoDB\u8868\u4e0a\u4f7f\u7528\u5916\u952e\u3010\u5f15\u7528\u301123.6 \u5206\u533a\u7684\u9650\u5236\u548c\u9650\u5236<\/p><\/blockquote>\n<p>\u7531\u4e8e\u5b58\u50a8\u5f15\u64ce\u5728\u540e\u53f0\u8d1f\u8d23\u786e\u4fdd\u5916\u90e8\u7ea6\u675f\u952e\u7684\u4e00\u81f4\u6027\uff0c\u56e0\u6b64\u5de5\u7a0b\u5e08\u5f88\u5c11\u9700\u8981\u5173\u6ce8\u3002\u5728\u540e\u53f0\uff0c\u9996\u5148\u9501\u5b9a\u8981\u66f4\u6539\u7684\u884c\uff0c\u7136\u540e\u9501\u5b9a\u88ab\u5916\u90e8\u7ea6\u675f\u952e\u5f15\u7528\u7684\u53e6\u4e00\u4e2a\u8868\u7684\u884c\uff0c\u7136\u540e\u5728\u5b8c\u6210\u4e8b\u52a1\u4e4b\u540e\u89e3\u9664\u9501\u5b9a\u4ee5\u66f4\u6539\u76ee\u6807\u884c\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u53c2\u7167\u5b8c\u6574\u6027\u662f\u7531\u8de8\u8d8a\u591a\u4e2a\u8868\u7684\u4e8b\u52a1\u6765\u5b9e\u73b0\u7684\u3002\u5e76\u4e14\u6211\u4eec\u4e4b\u524d\u5df2\u7ecf\u63d0\u5230\uff0c\u5f53\u4f7f\u7528\u5206\u533a\u65f6\uff0c\u5b9e\u73b0\u4e8b\u52a1\u53d8\u5f97\u56f0\u96be\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u5229\u7528\u5206\u533a\u662f\u65e0\u6cd5\u786e\u4fdd\u5f15\u7528\u4e00\u81f4\u6027\u7684\u3002\u7136\u800c\uff0c\u5e76\u4e0d\u662f\u8bf4\u5b83\u662f\u201c\u4e0d\u53ef\u80fd\u7684\u201d\u3002\u901a\u8fc7\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7f16\u5199\u4ee3\u7801\u6765\u786e\u4fdd\u5f15\u7528\u4e00\u81f4\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5f15\u7528\u4e00\u81f4\u6027\u7684\u4fdd\u6301\u3002<\/p>\n<blockquote><p>\u5728\u5206\u7247\u4e2d\u8fdb\u884c\u67e5\u8be2\u4e0d\u662f\u552f\u4e00\u7684\u56f0\u96be\u4e4b\u5904\u3002\u4fdd\u6301\u6570\u636e\u4e00\u81f4\u6027\u4e5f\u5f88\u56f0\u96be\u3002\u8de8\u5206\u7247\u4f7f\u7528\u5916\u952e\u5c06\u4e0d\u8d77\u4f5c\u7528\uff0c\u6240\u4ee5\u901a\u5e38\u7684\u89e3\u51b3\u65b9\u6848\u662f\u6839\u636e\u9700\u8981\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u68c0\u67e5\u53c2\u7167\u5b8c\u6574\u6027\uff0c\u6216\u8005\u5728\u5206\u7247\u5185\u4f7f\u7528\u5916\u952e\uff0c\u56e0\u4e3a\u5206\u7247\u5185\u7684\u5185\u90e8\u4e00\u81f4\u6027\u53ef\u80fd\u662f\u6700\u91cd\u8981\u7684\u3002\u867d\u7136\u53ef\u4ee5\u4f7f\u7528XA\u4e8b\u52a1\uff0c\u4f46\u7531\u4e8e\u5f00\u9500\u8f83\u5927\uff0c\u5b9e\u9645\u4e0a\u5e76\u4e0d\u5e38\u89c1\u3002<\/p><\/blockquote>\n<h3>\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u7684\u590d\u6742\u5316<\/h3>\n<p>\u867d\u7136\u5230\u8fd9\u4e00\u6b65\u5c31\u53ef\u4ee5\u7406\u89e3\u4e86\uff0c\u4f46\u662f\u5982\u679c\u4f7f\u7528\u5355\u8282\u70b9\u8fd0\u884c\u7684MySQL\u6765\u4f7f\u7528\u5206\u533a\uff0c\u4f1a\u4f7f\u5e94\u7528\u7a0b\u5e8f\u7684\u4ee3\u7801\u53d8\u5f97\u590d\u6742\u3002<\/p>\n<p>MySQL\u4ec5\u8d1f\u8d23\u7ba1\u7406\u7531\u5176\u81ea\u8eab\u7684\u5b58\u50a8\u5f15\u64ce\u5904\u7406\u7684\u6570\u636e\u5e93\uff0c\u4e0d\u63d0\u4f9b\u7ba1\u7406\u591a\u4e2a\u5b58\u50a8\u5f15\u64ce\u7684\u529f\u80fd\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u4f7f\u7528\u5206\u533a\u529f\u80fd\uff0c\u5c31\u9700\u8981\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0\u7ba1\u7406\u5206\u533a\u7684\u529f\u80fd\u3002<\/p>\n<p>\u9996\u5148\uff0c\u9700\u8981\u5b9e\u65bd\u54ea\u79cd\u67e5\u8be2\u5e94\u8be5\u53d1\u9001\u5230\u54ea\u4e2a\u5206\u533a\u7684\u8def\u7531\u903b\u8f91\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u8fdb\u884c\u5206\u533a\u672c\u8eab\u7684\u7ba1\u7406\u3002\u5982\u679c\u51fa\u73b0\u4e86\u8bbf\u95ee\u7279\u5b9a\u8282\u70b9\u8fc7\u591a\u7684\u70ed\u70b9\u73b0\u8c61\uff0c\u5219\u9700\u8981\u6539\u53d8\u5206\u533a\u65b9\u5f0f\u3002\u53ef\u80fd\u8fd8\u9700\u8981\u6dfb\u52a0\u65b0\u8282\u70b9\u3002\u5982\u679c\u8981\u6dfb\u52a0\/\u5220\u9664\u5206\u533a\uff0c\u8fd8\u9700\u8981\u6267\u884c\u6570\u636e\u8fc1\u79fb\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5e94\u7528\u7a0b\u5e8f\u8fd8\u9700\u8981\u5b9e\u73b0\u7ba1\u7406\u4e8b\u52a1\u7684\u529f\u80fd\u3002\u5982\u679c\u8981\u4f7f\u7528XA\u4e8b\u52a1\uff0c\u4f3c\u4e4e\u9700\u8981\u4f7f\u7528\u4e24\u9636\u6bb5\u63d0\u4ea4\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u5728\u4e0d\u5177\u5907\u5bb9\u9519\u6027\u8bbe\u8ba1\u7684\u60c5\u51b5\u4e0b\uff0c\u540c\u6b65\u5904\u7406\u65e0\u6cd5\u5b8c\u6210\u5e76\u5bfc\u81f4\u505c\u673a\u7684\u60c5\u51b5\u53d1\u751f\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u6765\u786e\u4fdd\u83b7\u5f97\u53c2\u8003\u4e00\u81f4\u6027\u3002\u6b64\u5916\uff0cMySQL\u672c\u6765\u5c31\u662f\u9ed8\u8ba4\u7684\u5355\u8282\u70b9\u7ba1\u7406\uff0c\u5c06\u7ba1\u7406\u4ee3\u7801\u8f6c\u79fb\u5230\u5206\u5e03\u5f0f\u7cfb\u7edf\u5c06\u9700\u8981\u975e\u5e38\u5927\u7684\u5de5\u4f5c\u91cf\u3002<\/p>\n<h1>\u975e\u5173\u7cfb\u578b\u6570\u636e\u6a21\u578b<\/h1>\n<p>\u9274\u4e8e\u8bb8\u591a\u60c5\u51b5\u4e0b\u53ef\u4ee5\u4e0d\u4fdd\u5b58\u5173\u7cfb\u6570\u636e\uff0c\u975e\u5173\u7cfb\u6570\u636e\u6a21\u578b\u88ab\u5f15\u5165\u3002\u5728\u8fd9\u91cc\u6211\u4eec\u5c06\u770b\u4e00\u4e0b\u975e\u5173\u7cfb\u6570\u636e\u6a21\u578b\u7684\u7279\u70b9\u3002<\/p>\n<h2>\u6c47\u603b<\/h2>\n<p>\u5bf9\u4e8eRDB\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u89c4\u8303\u5316\u6765\u7ba1\u7406\u5173\u7cfb\u578b\u6570\u636e\u3002\u800cNoSQL\uff08DynamoDB\uff09\u91c7\u7528\u4e86\u4e00\u79cd\u6570\u636e\u6a21\u578b\uff0c\u53ef\u4ee5\u5c06\u76f8\u5173\u6570\u636e\u7ec4\u5408\u5728\u4e00\u8d77\u8fdb\u884c\u5b58\u50a8\u3002<\/p>\n<p>\u5728\u300aNoSQL\u7cbe\u7cb9\u300b\u4e00\u4e66\u4e2d\uff0c\u5b83\u88ab\u79f0\u4e3a\u672c\u5730\u5316\uff08\u7c7b\u4f3c\u4e8e\u65e5\u8bed\u4e2d\u7684\u201c\u53c2\u7167\u5c40\u90e8\u6027\u201d\uff09\u3002<\/p>\n<blockquote><p>\u572820\u5e74\u524d\u7684\u8def\u7531\u8868\u4f18\u5316\u7814\u7a76\u4e2d\u53d1\u73b0\uff0c\u5c06\u76f8\u5173\u6570\u636e\u96c6\u4e2d\u5b58\u653e\u5728\u4e00\u4e2a\u5730\u65b9\u4ee5\u5b9e\u73b0&#8221;\u5f15\u7528\u5c40\u90e8\u6027&#8221;\u662f\u7f29\u77ed\u54cd\u5e94\u65f6\u95f4\u6700\u91cd\u8981\u7684\u56e0\u7d20\u3002\u8fd9\u4e2a\u7406\u8bba\u540c\u6837\u9002\u7528\u4e8e\u4eca\u5929\u7684NoSQL\u7cfb\u7edf\u3002\u5c06\u76f8\u5173\u6570\u636e\u653e\u7f6e\u5728\u9644\u8fd1\u5bf9\u6210\u672c\u548c\u6027\u80fd\u6709\u7740\u91cd\u5927\u5f71\u54cd\u3002\u800c\u4e0d\u662f\u5c06\u76f8\u5173\u6570\u636e\u9879\u5206\u6563\u5728\u591a\u4e2a\u8868\u4e2d\uff0c\u9700\u8981\u5c06NoSQL\u7cfb\u7edf\u5185\u7684\u76f8\u5173\u9879\u5c3d\u53ef\u80fd\u5730\u653e\u7f6e\u5728\u9644\u8fd1\u3002\u3010\u5f15\u7528\u3011\u4e0eDynamoDB\u76f8\u9002\u5e94\u7684NoSQL\u8bbe\u8ba1\u3002<\/p><\/blockquote>\n<p>\u4e0d\u9700\u8981\u8fde\u63a5\u591a\u4e2a\u8868\uff0c\u53ef\u4ee5\u4e00\u6b21\u6027\u83b7\u53d6\u76f8\u5173\u6570\u636e\u3002\uff08\u5f53\u7136\uff0c\u5982\u679cAggregate\u88ab\u62c6\u5206\uff0c\u5c31\u9700\u8981\u7c7b\u4f3cJOIN\u7684\u5904\u7406\u3002\u56e0\u6b64\uff0cNoSQL\u7684\u8bbe\u8ba1\uff08\u6570\u636e\u5efa\u6a21\uff09\u53d8\u5f97\u975e\u5e38\u91cd\u8981\u3002\uff09<\/p>\n<h2>\u4e0d\u9700\u8981\u65b9\u6848<\/h2>\n<p>\u5728\u5173\u7cfb\u6570\u636e\u5e93\uff08RDB\uff09\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u4e8b\u5148\u5b9a\u4e49\u6570\u636e\u6a21\u578b\u7684\u7ed3\u6784\uff0c\u4f46\u5728NoSQL\u4e2d\uff0c\u6570\u636e\u6a21\u578b\u662f\u65e0\u6a21\u5f0f\uff08schema-less\uff09\u7684\uff0c\u4e0d\u9700\u8981\u4e8b\u5148\u5b9a\u4e49\u6a21\u5f0f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/86-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-27 9.18.44.png\" \/><\/div>\n<p>\u5728DynamoDB\u4e2d\uff0c\u53ea\u9700\u6307\u5b9a\u8868\u540d\u548c\u4e3b\u952e\/\u6392\u5e8f\u952e\u5c31\u53ef\u4ee5\u521b\u5efa\u8868\u3002\u65e0\u9700\u8003\u8651\u540e\u7eed\u9879\u7684\u6a21\u5f0f\u5b9a\u4e49\uff0c\u53ef\u4ee5\u968f\u65f6\u8fdb\u884c\u5927\u91cf\u6570\u636e\u7684\u63d2\u5165\u3002<\/p>\n<p>\u8fd9\u4e2a\u7279\u70b9&#8221;schemaless&#8221;\u7ed9\u4eba\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u5370\u8c61\u3002\u4f46\u5b9e\u9645\u4e0a\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u5e94\u7528\u7a0b\u5e8f\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u5fc5\u987b\u6307\u5b9a\u6570\u636e\u7ed3\u6784\uff0c\u8fd9\u5c31\u662f\u6240\u8c13\u7684&#8221;scheme-on-read&#8221;\u3002<\/p>\n<p>\u5728\u4f20\u7edf\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\uff0c\u6a21\u5f0f\u5b9a\u4e49\u662f\u6570\u636e\u5e93\u7aef\u7684\u8d23\u4efb\uff0c\u5e76\u4e14\u6839\u636e\u9884\u5148\u5b9a\u4e49\u7684\u6a21\u5f0f\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u903b\u8f91\u3002\u7136\u800c\uff0c\u5728\u65e0\u6a21\u5f0f\u7684\u6570\u636e\u6a21\u578b\u4e2d\uff0c\u6a21\u5f0f\u5b9a\u4e49\u6210\u4e86\u5e94\u7528\u7a0b\u5e8f\u7aef\u7684\u8d23\u4efb\u3002<\/p>\n<p>\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u6784\u5efa\u903b\u8f91\u662f\u53ef\u884c\u7684\uff0c\u4f46\u5728\u6b64\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u4e0d\u4e8b\u5148\u4e86\u89e3\u9879\u540d\u79f0\u548c\u6a21\u5f0f\uff0c\u5c31\u65e0\u6cd5\u6784\u5efa\u903b\u8f91\u3002\u800c\u9ebb\u70e6\u7684\u662f\uff0c\u201c\u5047\u8bbe\u7684\u6a21\u5f0f\u201d\u5728\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u4e2d\u968f\u5904\u53ef\u89c1\u3002\u5173\u4e8e\u8fd9\u4e00\u70b9\uff0c\u9a6c\u4e01\u5c06\u65e0\u6a21\u5f0f\u6570\u636e\u7ed3\u6784\u79f0\u4e3a\u201c\u9690\u85cf\u65b9\u6848\u201d\uff0c\u5e76\u6307\u51fa\u8fd9\u5bfc\u81f4\u4e86\u5f00\u53d1\u7684\u56f0\u96be\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5728MongoDB\u7684\u6587\u6863\u4e2d\uff0c\u5bf9\u4e8e\u8fd9\u4e00\u70b9\u6709\u4ee5\u4e0b\u7684\u9648\u8ff0\u3002<\/p>\n<blockquote><p>MongoDB\u662f\u4e00\u79cd\u5173\u6ce8\u5f00\u53d1\u8005\u9700\u6c42\u7684\u6587\u6863\u6570\u636e\u5e93\uff08\u8fd8\u6709\u76f8\u540c\u7684\u4e3b\u9898\u5417\uff1f\uff09\u3002\u7ef4\u62a4MongoDB\u96c6\u7fa4\u4e0d\u9700\u8981\u4e00\u652f\u7531\u6570\u636e\u5e93\u7ba1\u7406\u5458\u7ec4\u6210\u7684\u519b\u961f\uff0c\u800c\u4e14\u6570\u636e\u5e93\u7684\u7075\u6d3b\u6027\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u81ea\u884c\u5b9a\u4e49\u548c\u64cd\u4f5c\u6a21\u5f0f\uff0c\u800c\u4e0d\u4f9d\u8d56\u4e8e\u4e13\u95e8\u7684\u5de5\u7a0b\u56e2\u961f\u3002\u3010\u5f15\u7528\u3011Ruby\u3001Rails\u3001MongoDB\u548c\u5bf9\u8c61\u5173\u7cfb\u4e0d\u5339\u914d<\/p><\/blockquote>\n<p>\u5728\u4e2d\u56fd\u7684\u4e00\u4e2a\u9009\u9879\u4e2d\u76f4\u63a5\u89e3\u91ca\u5982\u4e0b\uff1a\u901a\u8fc7\u65e0\u6a21\u5f0f\uff0c\u5e94\u7528\u7a0b\u5e8f\u56e2\u961f\u53ef\u4ee5\u81ea\u7531\u5730\u66f4\u6539\u6a21\u5f0f\uff0c\u800c\u65e0\u9700\u4e0e\u6570\u636e\u5e93\u56e2\u961f\u5408\u4f5c\uff0c\u5e76\u4e14\u8fd9\u88ab\u8ba4\u4e3a\u662f\u4e00\u4e2a\u4f18\u70b9\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/94-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-24 0.02.26.png\" \/><\/div>\n<p>\u5982\u679c\u53ea\u8003\u8651\u65e0\u6a21\u5f0f\u5316\uff0c\u5982\u679c\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u6bb5\u6216\u8005\u53ea\u7ba1\u7406\u975e\u4e00\u81f4\u6027\u6570\u636e\u7684\u8868\u683c\uff0c\u90a3\u4e48\u65e0\u6a21\u5f0f\u5316\u5177\u6709\u4f18\u70b9\uff0c\u4f46\u5982\u679c\u4e0d\u662f\u8fd9\u79cd\u60c5\u51b5\uff0c\u6211\u4eec\u5e94\u8be5\u8003\u8651\u5230\u7f3a\u70b9\uff0c\u5e76\u91c7\u7528\u975e\u5173\u7cfb\u578b\u6570\u636e\u6a21\u578b\u3002<\/p>\n<p>\u5c3d\u7ba1\u65e0\u6a21\u5f0f\uff08Schemaless\uff09\u7684\u8bbe\u8ba1\u9700\u8981\u6839\u636e\u8bbf\u95ee\u6a21\u5f0f\u8fdb\u884c\u7cbe\u5fc3\u8bbe\u8ba1\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5373\u4f7f\u5728\u6700\u521d\u770b\u4f3c\u9002\u5408\u975e\u5173\u7cfb\u578b\u6570\u636e\u6a21\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u968f\u7740\u65f6\u95f4\u63a8\u79fb\u53ef\u80fd\u4f1a\u51fa\u73b0\u9700\u8981\u91c7\u7528\u5173\u7cfb\u578b\u7ba1\u7406\u7684\u60c5\u51b5\u3002<\/p>\n<h1>\u8bbe\u8ba1\u5206\u6563\u7cfb\u7edf<\/h1>\n<p>\u70ba\u4e86\u7406\u89e3NoSQL\uff0c\u6211\u8a8d\u70ba\u9700\u8981\u6df1\u5165\u4e86\u89e3\u5206\u6563\u7cfb\u7d71\u7684\u8a2d\u8a08\u3002\u5728\u9019\u88e1\uff0c\u6211\u5011\u5c07\u4f9d\u6b21\u8a0e\u8ad6\u300cCAP\u539f\u7406\u300d\u548c\u300c\u53ef\u64f4\u5c55\u6027\u300d\u3002<\/p>\n<h2>CAP \u5b9a\u7406<\/h2>\n<p>CAP\u5b9a\u7406\u662f\u5173\u4e8e\u5728\u8bbe\u8ba1\u5206\u5e03\u5f0f\u7cfb\u7edf\u65f6\u9700\u8981\u8003\u8651\u5230\u7684\u4e09\u4e2a\u6027\u8d28\u4e4b\u95f4\u7684\u6743\u8861\u7684\u5b9a\u7406\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/101-0.png\" alt=\"cap-theorem.png\" \/><\/div>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u4f7f\u7528\u4e86\u4ee4\u4eba\u56f0\u60d1\u7684\u8868\u8fbe\u6216\u8005\u5ffd\u7565\u4e86\u8bb8\u591a\u8981\u70b9\u7b49\u539f\u56e0\uff0c\u8be5\u5b9a\u7406\u53d7\u5230\u4e86\u76f8\u5f53\u5927\u7684\u6279\u8bc4\u3002\u5c31\u8fde\u300a\u8bbe\u8ba1\u6570\u636e\u5bc6\u96c6\u578b\u5e94\u7528\u300b\u4e00\u4e66\u4e2d\u4e5f\u5bf9\u5176\u8fdb\u884c\u4e86\u4e25\u5389\u7684\u6279\u8bc4\u3002<\/p>\n<blockquote><p>\u4e00\u4e2a\u5728\u5b9e\u8df5\u4e2d\u6ca1\u6709\u5b9e\u7528\u4ef7\u503c\uff0c\u5e76\u4e14\u88ab\u5e7f\u6cdb\u8bef\u89e3\u7684\u7406\u8bba\u7ed3\u679c\u3002<\/p><\/blockquote>\n<p>\u5c3d\u7ba1\u53d7\u5230\u6279\u8bc4\uff0c\u4f46\u5728\u8003\u8651\u5206\u6563\u7cfb\u7edf\u8bbe\u8ba1\u65f6\uff0c\u6211\u8ba4\u4e3a\u7406\u89e3\u8fd9\u4e09\u4e2a\u7279\u6027\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u6211\u4eec\u5c06\u9010\u4e00\u7814\u7a76\u6bcf\u4e2a\u7279\u6027\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Consistency<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Availability<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Partition-tolerance<\/ul>\n<h3>\u4e00\u81f4\u6027<\/h3>\n<p>\u5728CAP\u5b9a\u7406\u4e2d\uff0c\u4e00\u81f4\u6027\u6307\u7684\u662f\u901a\u8fc7\u7ebf\u6027\u5316\u6765\u5b9e\u73b0\u5f3a\u4e00\u81f4\u6027\u3002<\/p>\n<blockquote><p>\u8fd9\u76f8\u5f53\u4e8e\u8981\u6c42\u5206\u5e03\u5f0f\u5171\u4eab\u5185\u5b58\u7684\u8bf7\u6c42\u50cf\u5728\u5355\u4e2a\u8282\u70b9\u4e0a\u6267\u884c\u4e00\u6837\uff0c\u6309\u7167\u987a\u5e8f\u54cd\u5e94\u64cd\u4f5c\u3002\u539f\u5b50\u8bfb\/\u5199\u5171\u4eab\u5185\u5b58\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\u662f\uff0c\u4efb\u4f55\u5728\u5199\u64cd\u4f5c\u5b8c\u6210\u540e\u5f00\u59cb\u7684\u8bfb\u64cd\u4f5c\u5fc5\u987b\u8fd4\u56de\u8be5\u503c\u6216\u4e4b\u540e\u5199\u64cd\u4f5c\u7684\u7ed3\u679c\u3002<\/p><\/blockquote>\n<p>\u4ece\u5f3a\u4e00\u81f4\u6027\u89d2\u5ea6\u6765\u770b\uff0c\u5728\u67d0\u4e2awrite\u64cd\u4f5c\u4e4b\u540e\u7684read\u64cd\u4f5c\u5c06\u59cb\u7ec8\u83b7\u53d6\u5230\u8be5write\u64cd\u4f5c\u5199\u5165\u7684\u6700\u65b0\u6570\u636e\u3002<\/p>\n<h3>\u4f9b\u5e94\u60c5\u51b5<\/h3>\n<blockquote><p>\u8981\u4f7f\u5206\u5e03\u5f0f\u7cfb\u7edf\u6301\u7eed\u53ef\u7528\uff0c\u7cfb\u7edf\u4e2d\u6bcf\u4e2a\u6ca1\u6709\u53d1\u751f\u6545\u969c\u7684\u8282\u70b9\u5728\u63a5\u6536\u5230\u7684\u6bcf\u4e2a\u8bf7\u6c42\u540e\u5fc5\u987b\u4ea7\u751f\u4e00\u4e2a\u54cd\u5e94\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u670d\u52a1\u4f7f\u7528\u7684\u4efb\u4f55\u7b97\u6cd5\u90fd\u5fc5\u987b\u6700\u7ec8\u7ec8\u6b62\u3002<\/p><\/blockquote>\n<p>\u65e0\u8bba\u4f55\u65f6\u4f55\u5730\uff0c\u53ea\u8981\u6709\u8bf7\u6c42\u53d1\u9001\u5230\u6d3b\u52a8\u8282\u70b9\uff0c\u5c31\u4f1a\u7acb\u5373\u8fd4\u56de\u54cd\u5e94\uff0c\u8fd9\u5c31\u662f\u6240\u8bf4\u7684\u610f\u601d\u3002<\/p>\n<h3>\u5206\u533a\u5bb9\u9519<\/h3>\n<blockquote><p>\u5373\u4f7f\u7f51\u7edc\u4e2d\u7684\u5176\u4ed6\u8282\u70b9\u5168\u90e8\u5931\u8d25\uff08\u5373\u8282\u70b9\u5904\u4e8e\u5176\u81ea\u5df1\u72ec\u7279\u5206\u533a\u7684\u7ec4\u4ef6\u4e2d\uff09\uff0c\u7cfb\u7edf\u5fc5\u987b\u751f\u6210\u4e00\u4e2a\u6709\u6548\uff08\u539f\u5b50\uff09\u7684\u54cd\u5e94\u3002\u4e0d\u5141\u8bb8\u4efb\u4f55\u5c0f\u4e8e\u5b8c\u5168\u7f51\u7edc\u6545\u969c\u7684\u6545\u969c\u96c6\u5bfc\u81f4\u7cfb\u7edf\u9519\u8bef\u5730\u54cd\u5e94\u30025<\/p><\/blockquote>\n<p>\u5373\u4f7f\u9664\u4e86\u8be5\u8282\u70b9\u4e4b\u5916\u7684\u6240\u6709\u8282\u70b9\u90fd\u5931\u8d25\uff0c\u4e5f\u8981\u786e\u4fdd\u670d\u52a1\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e0d\u80fd\u6709\u5355\u4e00\u6545\u969c\u70b9\u3002<\/p>\n<h3>CAP\u5b9a\u7406\u662f\u5173\u4e8e\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u7406\u8bba\u3002<\/h3>\n<p>\u770b\u8d77\u6765\u5728\u539f\u8bba\u6587\u4e2d\uff0c\u5173\u4e8e\u5206\u5e03\u7cfb\u7edf\u53ea\u80fd\u83b7\u5f97\u8fd9\u4e09\u4e2a\u5c5e\u6027\u4e2d\u7684\u4e24\u4e2a\uff0c\u8fd9\u6837\u7684\u8bf4\u6cd5\uff0c\u4f46\u5b9e\u9645\u4e0a\u5e76\u975e\u5982\u6b64\u3002<\/p>\n<p>\u5728\u5206\u6563\u7cfb\u7edf\u4e2d\uff0c\u7f51\u7edc\u5206\u5272\u662f\u8fdf\u65e9\u4f1a\u53d1\u751f\u7684\uff0c\u5e76\u56e0\u6b64\u5fc5\u987b\u653e\u5f03\u5206\u533a\u5bb9\u5fcd\u6027\u3002\u6362\u53e5\u8bdd\u8bf4\uff0cCAP\u7406\u8bba\u5e76\u4e0d\u662f\u8981\u4ece\u4e09\u4e2a\u4e2d\u9009\u62e9\u4e24\u4e2a\uff0c\u800c\u662f\u8981\u8003\u8651\u5728\u7f51\u7edc\u5206\u5272\u53d1\u751f\u65f6\u662f\u4f18\u5148\u4fdd\u6301\u4e00\u81f4\u6027\u8fd8\u662f\u4f18\u5148\u4fdd\u6301\u53ef\u7528\u6027\u3002<\/p>\n<p>\u540c\u6837\uff0c\u4e00\u5b9a\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e00\u81f4\u6027\u548c\u53ef\u7528\u6027\u8fd9\u4e24\u4e2a\u7279\u6027\u5e76\u4e0d\u662f\u53ea\u80fd\u53d6\u5f97\u5176\u4e2d\u4e4b\u4e00\uff0c\u800c\u662f\u8c03\u6574\u5b83\u4eec\u7684\u5e73\u8861\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u5206\u6563\u7cfb\u7edf\u4e2d\u53ef\u80fd\u53d1\u751f\u7684\u6545\u969c\u4e0d\u4ec5\u9650\u4e8e\u7f51\u7edc\u5206\u5272\uff0c\u5e76\u4e14\u5728\u4f7f\u7cfb\u7edf\u5177\u6709\u5bb9\u9519\u6027\u800c\u4e0d\u662f\u4e3a\u4e86\u83b7\u5f97\u6027\u80fd\u800c\u653e\u5bbd\u4e86\u4e00\u81f4\u6027\uff08\u7ebf\u6027\u4e00\u81f4\u6027\uff09\u7684\u60c5\u51b5\u4e5f\u5f88\u5e38\u89c1\u3002<\/p>\n<h1>\u53ef\u6269\u5c55\u6027<\/h1>\n<p>\u5728\u8003\u8651\u5206\u6563\u7cfb\u7edf\u65f6\uff0c\u4e86\u89e3\u6269\u5c55\u65b9\u6cd5\u975e\u5e38\u91cd\u8981\u3002\u57fa\u672c\u4e0a\uff0c\u6269\u5c55\u65b9\u6cd5\u6709\u4e24\u79cd\uff1a\u590d\u5236\u548c\u5206\u533a\uff0c\u73b0\u5728\u6211\u4eec\u6765\u770b\u770b\u5b83\u4eec\u3002<\/p>\n<h2>\u590d\u5236<\/h2>\n<p>\u5c06\u76f8\u540c\u7684\u6570\u636e\u590d\u5236\u5e76\u5b58\u50a8\u5728\u591a\u4e2a\u8282\u70b9\u4e2d\u3002\u4e0e\u5728\u5355\u4e2a\u8282\u70b9\u4e0a\u6301\u6709\u5355\u4e2a\u526f\u672c\u7684\u60c5\u51b5\u4e0d\u540c\uff0c\u53ef\u4ee5\u63d0\u4f9b\u5197\u4f59\u6027\uff0c\u5e76\u4e14\u53ef\u4ee5\u83b7\u5f97\u8bfb\u53d6\u7684\u53ef\u6269\u5c55\u6027\u3002\u6b64\u5916\uff0c\u901a\u8fc7\u5728\u5730\u7406\u4e0a\u5206\u6563\u8282\u70b9\uff0c\u8fd8\u53ef\u4ee5\u83b7\u5f97\u5730\u7406\u4e0a\u7684\u4f18\u52bf\u3002<\/p>\n<p>\u5728\u7ef4\u62a4\u7684\u6570\u636e\u5e93\u4e2d\uff0c\u901a\u8fc7\u5199\u5165\u8bf7\u6c42\u5bf9\u5176\u8fdb\u884c\u66f4\u6539\u3002\u4f46\u662f\uff0c\u6839\u636e\u5411\u54ea\u4e2a\u8282\u70b9\u53d1\u9001\u5199\u5165\u8bf7\u6c42\uff0c\u590d\u5236\u673a\u5236\u5c06\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p>\u6211\u8ba4\u4e3a\u53ef\u4ee5\u5927\u81f4\u5c06\u5176\u5206\u4e3a\u4e09\u7c7b\uff1a\u62e5\u6709\u5355\u4e2a\u6267\u884cwrite\u64cd\u4f5c\u7684\u8282\u70b9\u7684Single Leader\uff08Master-Slave\uff09\uff0c\u5141\u8bb8\u591a\u4e2a\u8282\u70b9\u6267\u884cwrite\u64cd\u4f5c\u7684Multi Leader\uff0c\u4ee5\u53ca\u6ca1\u6709Leader\u7684Leader Less\u3002<\/p>\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8MySQL\u548cDynamoDB\u4e2d\u4f7f\u7528\u7684\u5355\u4e00\u4e3b\u8282\u70b9\u6a21\u5f0f\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0cMulti Leader \u53ef\u4ee5\u589e\u52a0 Leader \u7684\u5197\u4f59\u6027\uff0c\u4f46\u540c\u65f6\u4e5f\u4f1a\u5bfc\u81f4\u5177\u6709\u5199\u5165\u529f\u80fd\u7684\u8282\u70b9\u589e\u52a0\uff0c\u4ece\u800c\u5f15\u53d1\u5e76\u53d1\u95ee\u9898\uff0c\u56e0\u6b64\u8fd9\u79cd\u7f3a\u70b9\u66f4\u5927\uff0c\u6240\u4ee5\u5f88\u5c11\u88ab\u4f7f\u7528\u3002<\/p>\n<h3>\u5355\u4e00\u9886\u5bfc\u8005<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/130-0.png\" alt=\"dn589787.52ba8389da4cf346753f0cadc5980212(en-us,pandp.10).png\" \/><\/div>\n<p>\u56e0\u4e3a\u6709\u4e00\u4e2aLeader\uff0c\u6240\u4ee5\u6ca1\u6709\u5197\u4f59\u6027\uff0c\u53ef\u80fd\u6210\u4e3a\u5355\u70b9\u6545\u969c\u3002\u6709\u540c\u6b65\u590d\u5236\u548c\u5f02\u6b65\u590d\u5236\u4e24\u79cd\u65b9\u6cd5\u6765\u4f20\u64ad\u4eceLeader\u5230Replica\u7684\u5199\u5165\u64cd\u4f5c\u3002<\/p>\n<p>\u5728\u540c\u6b65\u590d\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u6709\u4e00\u4e2a\u4f18\u70b9\u662f\u53ef\u4ee5\u83b7\u5f97\u5bf9\u5199\u64cd\u4f5c\u7684\u5197\u4f59\u6027\uff0c\u4f46\u540c\u65f6\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u6bd4\u5982\u5bf9\u65b9\u8282\u70b9\u53d1\u751f\u6545\u969c\u6216\u7f51\u7edc\u5206\u5272\u7b49\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u65e0\u6cd5\u6267\u884c\u548c\u5b8c\u6210\u5bf9Leader\u7684\u5199\u64cd\u4f5c\u5904\u7406\u3002<\/p>\n<p>\u5728\u5f02\u6b65\u590d\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u5c3d\u7ba1\u4e0d\u53d7\u5176\u4ed6\u8282\u70b9\u6216\u7f51\u7edc\u7684\u5f71\u54cd\uff0c\u53ef\u4ee5\u6267\u884c\u548c\u5b8c\u6210\u6570\u636e\u66f4\u65b0\u3002\u4f46\u662f\uff0c\u5982\u679c\u5728\u5411\u5176\u4ed6\u8282\u70b9\u5171\u4eab\u65e5\u5fd7\u4e4b\u524d\uff0c\u9886\u5bfc\u8005\u5728\u5b8c\u6210\u5199\u64cd\u4f5c\u540e\u53d1\u751f\u6545\u969c\uff0c\u5c06\u5bfc\u81f4\u66f4\u65b0\u7684\u6570\u636e\u4e22\u5931\uff0c\u8fd9\u662f\u4e00\u4e2a\u7f3a\u70b9\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u91c7\u7528\u4e86\u534a\u540c\u6b65\u7684\u526f\u672c\u590d\u5236\u65b9\u6cd5\uff0c\u5373\u53ea\u5c06\u6570\u636e\u590d\u5236\u5230\u4e00\u4e2aFollower\u8282\u70b9\u4e0a\u8fdb\u884c\u540c\u6b65\u590d\u5236\uff0c\u800c\u5bf9\u4e8e\u5176\u4ed6\u8282\u70b9\u5219\u91c7\u7528\u5f02\u6b65\u590d\u5236\u3002\u540e\u9762\u6211\u4eec\u5c06\u770b\u5230\uff0cDynamoDB\u4e5f\u91c7\u7528\u4e86\u8fd9\u79cd\u65b9\u6cd5\u3002<\/p>\n<p>\u5f53\u6d89\u53ca\u5230\u5f02\u6b65\u590d\u5236\u65f6\uff0c\u5c31\u9700\u8981\u8003\u8651\u4e00\u81f4\u6027\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a\u5728\u5f02\u6b65\u590d\u5236\u4e2d\uff0c\u5b58\u5728\u590d\u5236\u6ede\u540e\uff0c\u6211\u4eec\u65e0\u6cd5\u786e\u5b9a\u8ddf\u968f\u8005\u4f55\u65f6\u4f1a\u66f4\u65b0\u5230\u6700\u65b0\u7684\u6570\u636e\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5c06\u5f02\u6b65\u590d\u5236\u4e2d\u7684\u4e00\u81f4\u6027\u79f0\u4e3a\u201c\u6700\u7ec8\u4e00\u81f4\u6027\uff08Eventual Consistency\uff09\u201d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/136-0.png\" alt=\"eventual-consistency.png\" \/><\/div>\n<p>\u5728\u540c\u6b65\u590d\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u76f4\u5230\u5199\u64cd\u4f5c\u5b8c\u6210\u590d\u5236\u5230Follower\u8282\u70b9\u4e4b\u524d\uff0c\u5199\u64cd\u4f5c\u5c06\u4e0d\u4f1a\u5b8c\u6210\uff0c\u800c\u5b8c\u6210\u6307\u7684\u662f\u590d\u5236\u64cd\u4f5c\u5b8c\u6210\u3002\u901a\u8fc7\u963b\u585e\u5bf9Replica\u7684\u8bfb\u64cd\u4f5c\uff0c\u6240\u6709\u8282\u70b9\u90fd\u5c06\u4fdd\u6301\u6700\u65b0\u7684\u6570\u636e\u5e93\uff0c\u8fd9\u4e00\u70b9\u88ab\u79f0\u4e3a&#8221;\u5f3a\u4e00\u81f4\u6027\uff08Strong Consistency\uff09&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/138-0.png\" alt=\"strong-consistency.png\" \/><\/div>\n<p>\u6839\u636eMongoDB\u7684\u6587\u6863\uff0cMongoDB\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u662f\u5f3a\u4e00\u81f4\u6027\uff08strong consistency\uff09\u3002MongoDB\u4e5f\u662f\u5355\u9886\u5bfc\u8005\uff08Single Leader\uff09\u7684\uff0c\u4f46\u8bfb\u53d6\u8bf7\u6c42\u4e0d\u662f\u53d1\u9001\u5230\u526f\u672c\uff08Replica\uff09\uff0c\u800c\u662f\u53d1\u9001\u7ed9\u9886\u5bfc\u8005\uff08Leader\uff09\uff0c\u8fd9\u6837\u65e0\u8bba\u590d\u5236\u5ef6\u8fdf\uff08Replication Lag\uff09\u5982\u4f55\uff0c\u90fd\u53ef\u4ee5\u968f\u65f6\u83b7\u53d6\u6700\u65b0\u7684\u72b6\u6001\u3002\u526f\u672c\u4f5c\u4e3a\u9886\u5bfc\u8005\u53d1\u751f\u6545\u969c\u65f6\u7684\u5907\u4efd\u8d77\u5230\u4e86\u4f5c\u7528\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6ca1\u6709\u4f7f\u7528\u540c\u6b65\u590d\u5236\u4ee5\u83b7\u5f97\u5f3a\u4e00\u81f4\u6027\u3002\u6b63\u5982\u524d\u9762\u6240\u8ff0\uff0c\u4f7f\u7528\u540c\u6b65\u590d\u5236\u4f1a\u5bfc\u81f4\u53ea\u8981\u6709\u4e00\u4e2a\u8282\u70b9\u53d1\u751f\u6545\u969c\uff0c\u5199\u5165\u5c31\u53d8\u5f97\u56f0\u96be\uff0c\u53ef\u7528\u6027\u5c31\u4f1a\u4e27\u5931\uff0c\u6216\u8005\u7531\u4e8e\u7f51\u7edc\u5ef6\u8fdf\u5bfc\u81f4\u5199\u5165\u6027\u80fd\u4e0b\u964d\u3002\u56e0\u6b64\uff0c\u5b83\u6ca1\u6709\u88ab\u4f7f\u7528\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306a\u4e00\u8cab\u6027\u3068\u306f\u3001\u8a71\u3092\u623b\u3057\u307e\u3057\u3087\u3046\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9045\u5ef6\u306b\u3088\u308a\u3001\u5f37\u529b\u306a\u6574\u5408\u6027\u3067\u306f\u306a\u304f\u7d50\u679c\u7684\u306a\u6574\u5408\u6027\u304c\u751f\u3058\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u901a\u5e38\u306f\u554f\u984c\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9045\u5ef6\u306f\u975e\u5e38\u306b\u308f\u305a\u304b\u306a\u3082\u306e\u3067\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<blockquote><p>\u5728\u4f7f\u7528\u53ea\u63d0\u4f9b\u5f31\u4fdd\u969c\u7684\u6570\u636e\u5e93\u65f6\uff0c\u4f60\u9700\u8981\u4e0d\u65ad\u610f\u8bc6\u5230\u5b83\u7684\u9650\u5236\uff0c\u5e76\u4e14\u4e0d\u8981\u610f\u5916\u5730\u5047\u8bbe\u592a\u591a\u3002\u7531\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5927\u90e8\u5206\u65f6\u95f4\u90fd\u80fd\u826f\u597d\u8fd0\u884c\uff0c\u6240\u4ee5\u9519\u8bef\u5f80\u5f80\u9690\u5fae\u4e14\u96be\u4ee5\u901a\u8fc7\u6d4b\u8bd5\u627e\u51fa\u3002\u53ea\u6709\u5f53\u7cfb\u7edf\u53d1\u751f\u6545\u969c\uff08\u5982\u7f51\u7edc\u4e2d\u65ad\uff09\u6216\u662f\u9ad8\u5e76\u53d1\u65f6\uff0c\u624d\u4f1a\u66b4\u9732\u51fa\u6700\u7ec8\u4e00\u81f4\u6027\u7684\u8fb9\u754c\u60c5\u51b5\u3002<\/p><\/blockquote>\n<p>\u7136\u800c\uff0c\u5982\u679c\u51fa\u73b0\u7f51\u7edc\u5206\u5272\u3001\u5ef6\u8fdf\u7b49\u60c5\u51b5\uff0c\u5c06\u4f1a\u51fa\u73b0\u7ed3\u679c\u4e00\u81f4\u6027\u7684\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a\u590d\u5236\u5ef6\u8fdf\u53d8\u5927\u3002\u9886\u5bfc\u8005\u65e0\u6cd5\u5c06\u6700\u65b0\u6570\u636e\u53cd\u6620\u5230\u526f\u672c\u4e2d\uff0c\u6216\u8005\u53cd\u6620\u7684\u5ef6\u8fdf\u5bfc\u81f4\u5411\u8be5\u526f\u672c\u53d1\u9001\u7684 read \u8bf7\u6c42\u53ef\u80fd\u8bfb\u53d6\u5230\u65e7\u503c\u3002\uff08\u5982\u679c\u5bf9\u540c\u4e00\u6570\u636e\u5b58\u5728\u591a\u4e2a\u5e76\u53d1\u8bbf\u95ee\u7684\u60c5\u51b5\uff0c\u540c\u6837\u4f1a\u5f15\u53d1\u95ee\u9898\u3002\uff09<\/p>\n<p>\u8fd9\u91cc\u6240\u8bf4\u7684\u5c31\u662f\u5148\u524d\u63d0\u5230\u7684CAP\u5b9a\u7406\u7684\u610f\u601d\u3002\u201c\u5982\u679c\u53d1\u751f\u7f51\u7edc\u5206\u533a\uff0c\u4ece\u526f\u672c\u4e2d\u8bfb\u53d6\u53ef\u80fd\u4f1a\u8fd4\u56de\u65e7\u503c\uff0c\u4f46\u4f60\u4ecd\u7136\u53ef\u4ee5\u8fdb\u884c\u8bfb\u53d6\u3002\u201d\u8fd9\u662f\u4f18\u5148\u8003\u8651\u53ef\u7528\u6027\u5417\uff1f\u8fd8\u662f\u201c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7981\u6b62\u4ece\u526f\u672c\u8bfb\u53d6\u3002\u201d \u8fd9\u662f\u4f18\u5148\u8003\u8651\u4e00\u81f4\u6027\uff08\u7ebf\u6027\u5316\uff1a\u59cb\u7ec8\u8fd4\u56de\u6700\u65b0\u503c\uff09\u5417\uff1f\u8fd9\u662f\u4e00\u4e2a\u6743\u8861\u3002<\/p>\n<p>\u53ea\u8981\u8bfb\u53d6\u65e7\u7684\u503c\u6ca1\u6709\u95ee\u9898\uff0c\u5c31\u91c7\u7528\u7ed3\u679c\u4e00\u81f4\u6027\u7cfb\u7edf\u3002\u4f46\u662f\uff0c\u5982\u679c\u4e0d\u662f\u8fd9\u6837\u7684\u60c5\u51b5\uff0c\u5373\u5728\u9700\u8981\u59cb\u7ec8\u8fd4\u56de\u6700\u65b0\u503c\u5e76\u8981\u6c42\u4e00\u81f4\u6027\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u7ed3\u679c\u4e00\u81f4\u6027\u7cfb\u7edf\uff0c\u5219\u9700\u8981\u8003\u8651\u590d\u5236\u6ede\u540e\u5e76\u6ce8\u610f\u6570\u636e\u8bbf\u95ee\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5df2\u7ecf\u770b\u5230\u4e86\u7ed3\u679c\u4e00\u81f4\u6027\u548c\u5f3a\u4e00\u81f4\u6027\uff0c\u91cd\u8981\u7684\u662f\u6ce8\u610f\u5230\u4f7f\u7528\u54ea\u4e2a\u5e76\u4e0d\u662f\u8bf4\u54ea\u4e2a\u66f4\u597d\uff0c\u800c\u662f\u5728\u4f7f\u7528\u65f6\u8981\u7075\u6d3b\u9009\u62e9\u3002\u5982\u679c\u4f7f\u7528\u573a\u666f\u9700\u8981\u5f3a\u4e00\u81f4\u6027\uff0c\u90a3\u5c31\u4f7f\u7528\u5f3a\u4e00\u81f4\u6027\uff1b\u5982\u679c\u4e0d\u9700\u8981\u5f3a\u4e00\u81f4\u6027\uff0c\u4e3a\u4e86\u53ef\u6269\u5c55\u6027\u548c\u6027\u80fd\uff0c\u5c3d\u91cf\u4f7f\u7528\u7ed3\u679c\u4e00\u81f4\u6027\u3002<\/p>\n<h1>\u5206\u7247\/\u5206\u533a<\/h1>\n<h2>Sharding\u7684\u65b9\u6cd5<\/h2>\n<p>\u5728\u8bbe\u8ba1\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u91cd\u8981\u7684\u4e00\u70b9\u662f\u8981\u8003\u8651\u5982\u4f55\u5c06\u6570\u636e\u5206\u7247\u5e76\u786e\u5b9a\u5b58\u50a8\u8282\u70b9\u3002\u867d\u7136\u6709\u5404\u79cd\u5206\u7247\u7b56\u7565\uff0c\u4f46\u53ea\u8981\u7406\u89e3\u4e86\u54c8\u5e0c\u7b56\u7565\u548c\u8303\u56f4\u7b56\u7565\uff0c\u5728\u8fd9\u65b9\u9762\u5e94\u8be5\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/150-0.png\" alt=\"123table@3x.png\" \/><\/div>\n<p>\u770b\u8d77\u6765DynamoDB\u548cCassandra\u9ed8\u8ba4\u4f7f\u7528Consistent Hash Sharding\uff0c\u800cGoogle Spanner\u548cApache HBase\u9ed8\u8ba4\u4f7f\u7528Range Sharding\u3002<\/p>\n<p>Range Sharding\u4f7f\u7528\u5206\u533a\u952e\u7684\u503c\u8303\u56f4\u6765\u786e\u5b9aShard\u3002\u7136\u800c\uff0cConsistent Hash Sharding\u5c06\u5206\u533a\u952e\u7684\u503c\u54c8\u5e0c\u5316\uff0c\u5e76\u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u5c06\u6570\u636e\u5b58\u50a8\u5728\u76f8\u5e94\u7684Shard\u4e2d\u3002\u901a\u8fc7\u4e00\u81f4\u6027\u54c8\u5e0c\uff0c\u53ef\u4ee5\u5b9e\u73b0\u589e\u91cf\u53ef\u6269\u5c55\u6027\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/153-0.png\" alt=\"toptal-blog-image-1551794781664-ce4274caf801db26b828400a8cfde967.png\" \/><\/div>\n<p>\u5173\u4e8e\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\uff0c\u4e0a\u9762\u7684\u535a\u5ba2\u5bf9\u5176\u8fdb\u884c\u4e86\u975e\u5e38\u8be6\u7ec6\u7684\u89e3\u91ca\u3002\u867d\u7136\u6211\u7b80\u5355\u7c97\u7565\u5730\u5c1d\u8bd5\u89e3\u91ca\u4e00\u4e0b\uff0c\u4f46\u5982\u679c\u4f60\u60f3\u8981\u8be6\u7ec6\u4e86\u89e3\uff0c\u8bf7\u53c2\u8003\u4e0a\u9762\u7684\u535a\u5ba2\u3002<\/p>\n<p>\u901a\u8fc7\u5c06\u54c8\u5e0c\u7684\u4e0a\u9650\u503c\u548c\u4e0b\u9650\u503c\u8fde\u63a5\u6210\u4e00\u4e2a\u73af\uff0c\u5e76\u4e14\u5bf9\u6570\u636e\u548c\u8282\u70b9\u8fdb\u884c\u968f\u673a\u54c8\u5e0c\u5316\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u5b9a\u6bcf\u4e2a\u6570\u636e\u5c5e\u4e8e\u54ea\u4e2a\u8282\u70b9\u3002\u8fd9\u6837\uff0c\u5373\u4f7f\u79fb\u9664\u4e00\u4e2a\u8282\u70b9\uff0c\u53ea\u9700\u5c06\u8be5\u8282\u70b9\u4e2d\u7684\u6570\u636e\u5206\u914d\u7ed9\u76f8\u90bb\u8282\u70b9\u5373\u53ef\uff0c\u65e0\u9700\u91cd\u65b0\u5206\u914d\u5176\u4ed6\u8282\u70b9\u548c\u6570\u636e\u3002\u5f53\u6dfb\u52a0\u6216\u5220\u9664\u8282\u70b9\u65f6\uff0c\u4f1a\u5f71\u54cd\u5230\u76f8\u90bb\u8282\u70b9\u548c\u6570\u636e\uff0c\u4f46\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u8282\u70b9\u3002\u6211\u4eec\u5e0c\u671b\u5728\u6dfb\u52a0\u6216\u5220\u9664\u8282\u70b9\u65f6\u4e0d\u505c\u6b62\u670d\u52a1\uff0c\u4e3a\u6b64\u9700\u8981\u5c3d\u91cf\u51cf\u5c11\u8282\u70b9\u4e4b\u95f4\u6570\u636e\u7684\u8fc1\u79fb\u91cf\uff0c\u800c\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u53ef\u4ee5\u901a\u8fc7\u6700\u5c0f\u5316\u6570\u636e\u8fc1\u79fb\u6765\u5b9e\u73b0\u91cd\u65b0\u5206\u7247\u3002<\/p>\n<p>\u9009\u62e9Range Sharding\u548cConsistent Hashing Sharding\u4e2d\u7684\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u60c5\u51b5\u3002\u5982\u679c\u9700\u8981\u6839\u636e\u5206\u533a\u952e\u8fdb\u884c\u8303\u56f4\u641c\u7d22\uff0c\u90a3\u4e48\u9009\u62e9Range Sharding\u53ef\u4ee5\u4fdd\u6301\u6027\u80fd\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u9700\u8981\u8003\u8651\u5230\u5206\u533a\u952e\u53ef\u80fd\u5bfc\u81f4\u70ed\u70b9\u95ee\u9898\u3002<\/p>\n<p>\u5728\u4e00\u81f4\u6027\u54c8\u5e0c\u5206\u7247\u7684\u60c5\u51b5\u4e0b\uff0c\u6839\u636e\u54c8\u5e0c\u503c\u786e\u5b9a\u5206\u7247\uff0c\u56e0\u6b64\u70ed\u70b9\u51fa\u73b0\u7684\u53ef\u80fd\u6027\u8f83\u4f4e\uff0c\u4f46\u4f1a\u589e\u52a0\u54c8\u5e0c\u51fd\u6570\u7684\u5f00\u9500\u3002\u5728Dynamo\u7684\u767d\u76ae\u4e66\u4e2d\uff0c\u63d0\u5230\u5c06MD5\u7528\u4f5c\u5206\u533a\u7684\u54c8\u5e0c\u51fd\u6570\u3002\u8fd9\u4e0d\u662f\u57fa\u4e8e\u8282\u70b9\u6570\u91cf\u7684\u54c8\u5e0c\u51fd\u6570\uff0c\u6240\u4ee5\u53ef\u4ee5\u8f7b\u677e\u5730\u6dfb\u52a0\u6216\u5220\u9664\u8282\u70b9\u3002<\/p>\n<blockquote><p>Dynamo\u5c06\u8c03\u7528\u8005\u63d0\u4f9b\u7684\u952e\u548c\u5bf9\u8c61\u90fd\u89c6\u4e3a\u4e00\u4e2a\u4e0d\u900f\u660e\u7684\u5b57\u8282\u6570\u7ec4\u3002\u5b83\u5bf9\u952e\u5e94\u7528MD5\u54c8\u5e0c\u751f\u6210128\u4f4d\u6807\u8bc6\u7b26\uff0c\u7528\u4e8e\u786e\u5b9a\u8d1f\u8d23\u5b58\u50a8\u8be5\u952e\u7684\u5b58\u50a8\u8282\u70b9\u3002<\/p><\/blockquote>\n<h1>DynamoDB\uff1a\u4e9a\u9a6c\u900a\u516c\u53f8\u7684\u4e00\u79cd\u5168\u6258\u7ba1\u7684NoSQL\u6570\u636e\u5e93\u670d\u52a1\u3002<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/160-0.png\" alt=\"DynamoDB.png\" \/><\/div>\n<h2>DynamoDB \u662f\u4ec0\u4e48\uff1f<\/h2>\n<blockquote><p>Amazon DynamoDB\u662f\u4e00\u79cd\u5168\u6258\u7ba1\u7684NoSQL\u6570\u636e\u5e93\u670d\u52a1\uff0c\u5177\u6709\u5feb\u901f\u53ef\u9884\u6d4b\u7684\u6027\u80fd\u548c\u65e0\u7f1d\u53ef\u4f38\u7f29\u6027\u3002\u901a\u8fc7\u4f7f\u7528DynamoDB\uff0c\u53ef\u4ee5\u5c06\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u7684\u8fd0\u8425\u548c\u6269\u5c55\u7684\u7ba1\u7406\u5de5\u4f5c\u4ea4\u7ed9\u5b83\u6765\u5904\u7406\uff0c\u7701\u53bb\u4e86\u786c\u4ef6\u914d\u7f6e\u548c\u90e8\u7f72\u3001\u8bbe\u7f6e\u548c\u914d\u7f6e\u3001\u590d\u5236\u3001\u8f6f\u4ef6\u8865\u4e01\u5e94\u7528\u3001\u96c6\u7fa4\u6269\u5c55\u7b49\u4efb\u52a1\u3002<\/p><\/blockquote>\n<p>\u6700\u521d\uff0c\u4eba\u4eec\u5e38\u5e38\u5c06NoSQL\u7684\u5148\u9a71Dynamo\u548cDynamoDB\u6df7\u6dc6\u5728\u4e00\u8d77\uff0c\u4f46\u5b9e\u9645\u4e0aDynamoDB\u548cDynamo\u7684\u673a\u5236\u662f\u4e0d\u540c\u7684\u3002<\/p>\n<p>DynamoDB\u662f\u4e9a\u9a6c\u900a\u7684\u4e00\u4e2a\u7ed3\u5408\u4e86SimpleDB\uff08Amazon\u7684NoSQL\u6570\u636e\u5e93\uff09\u548cDynamo\u7684\u670d\u52a1\u3002<\/p>\n<blockquote><p>\u6211\u4eec\u5f97\u51fa\u7ed3\u8bba\uff0c\u7406\u60f3\u7684\u89e3\u51b3\u65b9\u6848\u5e94\u8be5\u5c06\u539f\u59cbDynamo\u8bbe\u8ba1\u7684\u6700\u4f73\u90e8\u5206\uff08\u589e\u91cf\u53ef\u4f38\u7f29\u6027\uff0c\u53ef\u9884\u6d4b\u7684\u9ad8\u6027\u80fd\uff09\u4e0eSimpleDB\u7684\u6700\u4f73\u90e8\u5206\uff08\u6613\u4e8e\u7ba1\u7406\u4e91\u670d\u52a1\uff0c\u4e00\u81f4\u6027\u4ee5\u53ca\u57fa\u4e8e\u8868\u7684\u6570\u636e\u6a21\u578b\u6bd4\u7eaf\u952e\u503c\u5b58\u50a8\u66f4\u4e30\u5bcc\uff09\u76f8\u7ed3\u5408\u3002\u8fd9\u4e9b\u67b6\u6784\u8ba8\u8bba\u6700\u7ec8\u4ea7\u751f\u4e86\u4e9a\u9a6c\u900aDynamoDB\uff0c\u8fd9\u662f\u4e00\u79cd\u65b0\u7684NoSQL\u670d\u52a1\uff0c\u6211\u4eec\u4eca\u5929\u975e\u5e38\u5174\u594b\u5730\u53d1\u5e03\u3002<\/p><\/blockquote>\n<p>\u6211\u8ba4\u4e3aDynamoDB\u662f\u4e00\u79cdNoSQL\u6570\u636e\u5e93\uff0c\u5b83\u6240\u8ffd\u6c42\u7684\u662f&#8221;\u53ef\u6269\u5c55\u6027&#8221;\uff0c\u56e0\u6b64\u6211\u5e0c\u671b\u80fd\u5148\u6765\u770b\u770b\u8fd9\u4e00\u65b9\u9762\u3002\u9996\u5148\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba\u590d\u5236\u548c\u5206\u7247\uff0c\u7136\u540e\u518d\u6765\u770b\u81ea\u52a8\u6269\u5c55\u3002<\/p>\n<h2>\u590d\u5236\u548c\u5206\u7247<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/168-0.jpeg\" alt=\"amazon-dynamodb-deep-dive-advanced-design-patterns-for-dynamodb-dat401-aws-reinvent-2018pdf-12-638.jpg\" \/><\/div>\n<p>\u6bcf\u4e2aPartition\uff08Shard\uff09\u90fd\u4f1a\u81ea\u52a8\u5728\u4e09\u4e2a\u53ef\u7528\u533a\uff08AZ\uff09\u4e4b\u95f4\u8fdb\u884c\u590d\u5236\u3002\u7531\u4e8eDynamo\u4f7f\u7528\u7684\u662f\u65e0Leader\u526f\u672c\uff08quorum\uff09\uff0c\u53ef\u80fd\u4f1a\u8bef\u4ee5\u4e3aDynamoDB\u4e5f\u662f\u76f8\u540c\u7684\uff0c\u4f46\u5b9e\u9645\u4e0aDynamoDB\u4f7f\u7528\u7684\u662f\u5355Leader\u526f\u672c\u3002<\/p>\n<blockquote><p>\u9664\u4e86\u4e9a\u9a6c\u900a\u4e4b\u5916\uff0c\u7528\u6237\u65e0\u6cd5\u4f7f\u7528Dynamo\u3002\u4ee4\u4eba\u56f0\u60d1\u7684\u662f\uff0cAWS\u63d0\u4f9b\u4e86\u4e00\u79cd\u540d\u4e3aDynamoDB\u7684\u6258\u7ba1\u6570\u636e\u5e93\u4ea7\u54c1\uff0c\u5b83\u91c7\u7528\u4e86\u5b8c\u5168\u4e0d\u540c\u7684\u67b6\u6784\uff1a\u57fa\u4e8e\u5355leader\u590d\u5236\u3002<\/p><\/blockquote>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/171-0.jpeg\" alt=\"amazon-dynamodb-under-the-hood-how-we-built-a-hyperscale-database-dat321-aws-reinvent-2018-24-638.jpg\" \/><\/div>\n<p>\u4f4d\u4e8e\u8282\u70b9\u524d\u7aef\u7684\u8bf7\u6c42\u8def\u7531\u5668\uff08Request Router\uff09\u4f1a\u5411\u968f\u673a\u9009\u5b9a\u7684\u8282\u70b9\u53d1\u51fa\u8bfb\u8bf7\u6c42\u3002\u7531\u4e8e\u5df2\u77e5\u67093\u4e2a\u8282\u70b9\u4e2d\u76842\u4e2a\u8282\u70b9\u5b8c\u6210\u4e86\u5199\u64cd\u4f5c\uff0c\u56e0\u6b64\u67091\/3\u7684\u53ef\u80fd\u6027\u9009\u62e9\u90a3\u4e9b\u672a\u88ab\u66f4\u65b0\u7684\u8282\u70b9\u3002\u5982\u679c\u5728\u8be5\u8282\u70b9\u4e0a\u503c\u6ca1\u6709\u88ab\u66f4\u65b0\uff0c\u5219\u4f1a\u8bfb\u53d6\u65e7\u503c\u3002<\/p>\n<p>DynamoDB\u7684\u6587\u4ef6\u4e2d\u4e5f\u6709\u8bb0\u8f7d\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f7f\u7528Eventual Consistent Reads\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Consistent Read\u9009\u9879\u6765\u6539\u4e3aStrongly Consistent Reads\u3002\uff08\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6570\u636e\u4e0d\u662f\u968f\u673a\u9009\u62e9\u8282\u70b9\uff0c\u800c\u662f\u4eceLeader\u8bfb\u53d6\u3002\uff09<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/174-0.jpeg\" alt=\"amazon-dynamodb-under-the-hood-how-we-built-a-hyperscale-database-dat321-aws-reinvent-2018-29-638.jpg\" \/><\/div>\n<p>\u5206\u533a\u5143\u6570\u636e\u7ec4\u4ef6\u8d1f\u8d23\u7ba1\u7406\u54ea\u4e2a\u8282\u70b9\u662fLeader\u3002\u6b64\u5916\uff0c\u5982\u679cLeader\u8282\u70b9\u53d1\u751f\u6545\u969c\uff0c\u5c31\u5fc5\u987b\u4eceFollower\u8282\u70b9\u4e2d\u9009\u62e9\u65b0\u7684Leader\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u8fbe\u6210\u4e00\u81f4\uff0c\u5c31\u4f1a\u5bfc\u81f4\u8111\u88c2\u95ee\u9898\u3002\u5173\u4e8eLeader\u7684\u9009\u4e3e\u91c7\u7528\u4e86Paxos\u5171\u8bc6\u7b97\u6cd5\u3002\u4f3c\u4e4eAuto Admin\u8d1f\u8d23\u5904\u7406Leader\u7684\u9009\u4e3e\u548c\u8282\u70b9\u6545\u969c\u65f6\u7684\u5e94\u5bf9\u63aa\u65bd\u3002<\/p>\n<h2>\u5206\u7247<\/h2>\n<p>DynamoDB\u652f\u6301\u5206\u7247\uff0c\u56e0\u6b64\u8868\u7684\u5927\u5c0f\u6ca1\u6709\u9650\u5236\u3002<\/p>\n<blockquote><p>\u8868\u683c\u7684\u5927\u5c0f<br \/>\n\u8868\u683c\u7684\u5927\u5c0f\u6ca1\u6709\u5b9e\u9645\u9650\u5236\u3002\u8868\u683c\u5728\u9879\u6570\u548c\u5b57\u8282\u5927\u5c0f\u65b9\u9762\u6ca1\u6709\u9650\u5236\u3002<br \/>\n\u3010\u5f15\u7528\u3011Amazon DynamoDB\u7684\u670d\u52a1\u3001\u5e10\u6237\u548c\u8868\u683c\u9650\u5236<\/p><\/blockquote>\n<p>\u5728DynamoDB\u4e2d\uff0c\u5728\u521b\u5efa\u8868\u65f6\u9700\u8981\u6307\u5b9a\u5206\u533a\u952e\u548c\u6392\u5e8f\u952e\u3002\u901a\u8fc7\u5bf9\u5206\u533a\u952e\u7684\u503c\u8fdb\u884c\u54c8\u5e0c\u5904\u7406\uff0c\u786e\u5b9a\u5c06\u8be5\u805a\u5408\u5b58\u50a8\u5728\u54ea\u4e2a\u5206\u533a\u4e2d\u3002\u53e6\u5916\uff0c\u901a\u8fc7\u8bbe\u7f6e\u6392\u5e8f\u952e\uff0c\u53ef\u4ee5\u5728\u8be5\u5206\u533a\u5185\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/180-0.png\" alt=\"HowItWorksPartitionKeySortKey.png\" \/><\/div>\n<p>\u6b63\u5982\u4e4b\u524d\u6240\u63d0\u5230\u7684\uff0cDynamoDB\u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u6765\u8fdb\u884c\u5206\u7247\u3002\u4f7f\u7528\u54c8\u5e0c\u529f\u80fd\u8fdb\u884c\u5206\u7247\u53ef\u4ee5\u6709\u6548\u5730\u5206\u6563\u6570\u636e\u8bbf\u95ee\u91cf\uff0c\u4f46\u662f\u5728\u67d0\u4e9b\u6570\u636e\u4e0a\u5b58\u5728\u5927\u91cf\u8bbf\u95ee\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u51fa\u73b0\u70ed\u70b9\u95ee\u9898\u3002DynamoDB\u901a\u8fc7\u540e\u9762\u4ecb\u7ecd\u7684\u81ea\u9002\u5e94\u5bb9\u91cf(Adaptive Capacity)\uff0c\u53ef\u4ee5\u81ea\u52a8\u89e3\u51b3\u70ed\u70b9\u95ee\u9898\u3002<\/p>\n<h2>\u81ea\u52a8\u4f38\u7f29<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/183-0.png\" alt=\"auto-scaling.png\" \/><\/div>\n<p>\u5982\u679c\u63d0\u524d\u521b\u5efaApplication Auto Scaling\u7b56\u7565\uff0cCloudWatch\u4f1a\u76d1\u63a7\u5e76\u6839\u636e\u6d41\u91cf\u81ea\u52a8\u53d1\u9001\u67e5\u8be2\u6765\u64cd\u4f5c\u8868\u683c\u3002Application Auto Scaling\u7b56\u7565\u53ef\u4ee5\u5728\u521b\u5efa\u8868\u683c\u65f6\u6307\u5b9a\u3002\u60a8\u53ef\u4ee5\u6307\u5b9a\u9884\u671f\u7684\u8bfb\u53d6\/\u5199\u5165\u91cf\u4ee5\u53ca\u5141\u8bb8\u7684\u6269\u5c55\u7a0b\u5ea6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/185-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-06-27 5.37.37.png\" \/><\/div>\n<p>\u70ed\u5206\u533a\u95ee\u9898\u5f97\u5230\u4e86\u9002\u5e94\u80fd\u529b\u673a\u5236\u7684\u89e3\u51b3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/187-0.png\" alt=\"adaptive-capacity.png\" \/><\/div>\n<blockquote><p>\u81ea\u9002\u5e94\u80fd\u529b &#8211; DynamoDB\u4f1a\u667a\u80fd\u5730\u6839\u636e\u8868\u683c\u7684\u5b58\u50a8\u9700\u6c42\u8fdb\u884c\u81ea\u9002\u5e94\uff0c\u901a\u8fc7\u5c06\u8868\u683c\u6c34\u5e73\u5206\u533a\u5230\u591a\u53f0\u670d\u52a1\u5668\u4e0a\u6765\u6269\u5c55\u5b58\u50a8\u7a7a\u95f4\uff0c\u6216\u901a\u8fc7\u8fc7\u671f\u6807\u8bb0\u81ea\u52a8\u5220\u9664\u9879\u76ee\u7684Time To Live\uff08TTL\uff09\u529f\u80fd\u6765\u7f29\u5c0f\u5b58\u50a8\u7a7a\u95f4\u3002 DynamoDB\u63d0\u4f9b\u81ea\u52a8\u7f29\u653e\u529f\u80fd\uff0c\u6839\u636e\u5b9e\u9645\u6d41\u91cf\u81ea\u52a8\u8c03\u6574\u8868\u683c\u7684\u541e\u5410\u91cf\u4e0a\u5347\u6216\u4e0b\u964d\u3002\u6240\u6709\u65b0\u7684\u8868\u683c\u548c\u7d22\u5f15\u9ed8\u8ba4\u5f00\u542f\u81ea\u52a8\u7f29\u653e\u529f\u80fd\u3002<br \/>\n\u3010\u5f15\u7528\u3011\u300aDynamo\u5341\u5e74\uff1a\u4e3a\u4e0b\u4e00\u6ce2\u9ad8\u6027\u80fd\u3001\u4e92\u8054\u7f51\u89c4\u6a21\u7684\u5e94\u7528\u63d0\u4f9b\u52a8\u529b\u300b<\/p><\/blockquote>\n<p>\u6709\u4e86\u8fd9\u4e2a\u529f\u80fd\uff0c\u5c31\u4e0d\u9700\u8981\u4ee5\u6700\u5927\u6d41\u91cf\u6765\u9884\u914d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/190-0.jpeg\" alt=\"amazon-dynamodb-deep-dive-advanced-design-patterns-for-dynamodb-dat401-aws-reinvent-2018pdf-20-638.jpg\" \/><\/div>\n<h2>\u4ea4\u6613<\/h2>\n<p>\u5982\u300aDynamoDB \u4e8b\u52a1\u300b\u7684\u6587\u7ae0\u4e2d\u6240\u8ff0\uff0c\u5728DynamoDB\u4e2d\uff0c\u4e8b\u52a1\u88ab\u4f5c\u4e3a\u65b0\u529f\u80fd\u52a0\u5165\u3002\u901a\u8fc7\u4e8b\u52a1\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5728\u591a\u4e2a\u5206\u533a\u548c\u8868\u4e4b\u95f4\u8fdb\u884c\u4e8b\u52a1\u64cd\u4f5c\u3002<\/p>\n<p>\u6839\u636e\u4ee5\u4e0b\u5185\u5bb9\u663e\u793a\uff0c\u4f3c\u4e4e\u4f7f\u7528\u4e86\u4e24\u9636\u6bb5\u63d0\u4ea4\u6765\u5b9e\u73b0\u4e8b\u52a1\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u8bf7\u6c42\u6570\u91cf\u7684\u589e\u52a0\uff0c\u8d39\u7528\u4e5f\u4f1a\u589e\u52a0\u3002<\/p>\n<blockquote><p>\u5bf9\u4e8e\u8981\u6c42\u5728\u6bcf\u4e2a\u8bf7\u6c42\u4e2d\u59cb\u7ec8\u53ef\u7528\u7684\u6700\u540e\u5199\u5165\u7684\u4e8b\u52a1\u5e94\u7528\u7a0b\u5e8f\uff0c\u9ed8\u8ba4\u9009\u62e9\u4e8b\u52a1API\u662f\u6700\u597d\u7684\u9009\u62e9\u3002\u4e3a\u4e86\u652f\u6301\u4e8b\u52a1\u5e76\u7b80\u5316\u5f00\u53d1\u4eba\u5458\u4f53\u9a8c\u8fdb\u884c\u6574\u4f53\u6216\u65e0\u64cd\u4f5c\uff08All-or-Nothing\uff09\u7684\u8868\u66f4\u6539\uff0cDynamoDB\u5c06\u5bf9\u6240\u6709\u4e8b\u52a1\u9879\u6267\u884c\u4e24\u4e2a\u57fa\u672c\u7684\u8bfb\u53d6\u548c\u5199\u5165\u64cd\u4f5c\u3002\u5176\u4e2d\u4e00\u4e2a\u7528\u4e8e\u51c6\u5907\u4e8b\u52a1\uff0c\u53e6\u4e00\u4e2a\u7528\u4e8e\u63d0\u4ea4\u4e8b\u52a1\u3002\u6bcf\u4e2a\u8bfb\u53d6\u548c\u5199\u5165\u7684\u6210\u672c\u76f8\u540c\uff0c\u4f46\u7531\u4e8e\u4f1a\u589e\u52a0\u6bcf\u4e2a\u4e8b\u52a1\u66f4\u6539\u7684\u8bfb\u53d6\u548c\u5199\u5165\u603b\u6570\uff0c\u56e0\u6b64\u5b83\u5c06\u6210\u4e3a\u6700\u6602\u8d35\u7684\u8868\u66f4\u65b0\u9009\u9879\u548c\u8bfb\u53d6\u4e00\u81f4\u6027\u6a21\u578b\u3002<br \/>\n\u3010\u5f15\u7528\u3011\u5224\u65adAmazon DynamoDB\u662f\u5426\u7b26\u5408\u9700\u6c42\u5e76\u8ba1\u5212\u8fc1\u79fb\u7684\u65b9\u6cd5<\/p><\/blockquote>\n<h1>\u6700\u540e<\/h1>\n<p>\u5728\u8fd9\u4e2a\u8bdd\u9898\u4e0b\uff0c\u6211\u672c\u6765\u60f3\u8981\u4ecb\u7ecd\u5404\u79cdNewSQL\uff0c\u4f46\u662f\u6211\u73b0\u5728\u6709\u70b9\u7d2f\u4e86\uff0c\u5c31\u7559\u5230\u4e0b\u6b21\u518d\u8bf4\u5427\u3002\u6bd4\u5982\uff0cMySQL Cluster\u4f7f\u7528InnoDB\u4ee3\u66ffNDB\u6765\u5b9e\u73b0\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0cAWS Aurora\u901a\u8fc7\u91cd\u65b0\u5b9a\u4e49\u4f20\u7edf\u5173\u7cfb\u6570\u636e\u5e93\uff08RDB\uff09\u5e76\u5f15\u5165\u670d\u52a1\u5bfc\u5411\u67b6\u6784\uff08SOA\uff09\uff0c\u4ee5\u53ca\u4ee5redo Log\u4e3a\u6838\u5fc3\u6765\u63d0\u9ad8\u6027\u80fd\u7b49\u7b49\u3002\u6b64\u5916\uff0cGoogle Spanner\u7b49\u8fd8\u5f15\u5165\u4e86True Time\u7b49\u5404\u79cd\u53ef\u6269\u5c55\u7684\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08RDBMS\uff09\u3002\u6211\u8ba4\u4e3a\uff0c\u901a\u8fc7\u4e86\u89e3NewSQL\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u4e0d\u540c\u7684\u89d2\u5ea6\u6765\u770b\u5f85NoSQL\u3002<\/p>\n<p>\u5982\u679c\u672c\u6295\u7a3f\u6709\u4efb\u4f55\u9519\u8bef\u4e4b\u5904\uff0c\u8bf7\u6307\u51fa\uff0c\u6211\u4f1a\u975e\u5e38\u611f\u6fc0?\u200d\u2642\ufe0f<\/p>\n<h1>\u8bf7\u53c2\u8003<\/h1>\n<h2>\u4e66\u7c4d (sh\u016b j\u00ed)<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.amazon.co.jp\/dp\/B06XPJML5D\/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">High Performance MySQL: Optimization, Backups, and Replication<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.amazon.co.jp\/dp\/B007I8S1TY\/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.amazon.co.jp\/dp\/B0090J3SYW\/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1<\/ul>\n<h2>\u5206\u533a\/\u5206\u7247<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u7684\u3001\u5782\u76f4\u7684\u3001\u304a\u3088\u3073\u6a5f\u80fd\u7684\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5206\u5272<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/architecture\/best-practices\/data-partitioning<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">How Data Sharding Works in a Distributed SQL Database<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/blog.yugabyte.com\/how-data-sharding-works-in-a-distributed-sql-database<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">How Sharding Works<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/medium.com\/@jeeyoungk\/how-sharding-works-b4dec46b3f6<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon Relational Database Service \u3092\u4f7f\u7528\u3057\u305f\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/blogs\/news\/sharding-with-amazon-relational-database-service\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0 \u30d1\u30bf\u30fc\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/architecture\/patterns\/sharding<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Four Data Sharding Strategies We Analyzed in Building a Distributed SQL Database<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/blog.yugabyte.com\/four-data-sharding-strategies-we-analyzed-in-building-a-distributed-sql-database\/<\/ul>\n<h2>\u4e00\u81f4\u6027<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u306a\u305c\u300c\u5171\u6709\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u300d\u304c\u91cd\u8981\u306a\u306e\u304b\uff1f \u30b2\u30fc\u30e0\u306b\u304a\u3051\u308b\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u8a2d\u8a08\u306e\u3044\u308d\u306f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/logmi.jp\/tech\/articles\/321472<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Data Consistency Primer<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.microsoft.com\/ja-jp\/previous-versions\/msp-n-p\/dn589800(v=pandp.10)?redirectedfrom=MSDN<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Cloud Datastore \u3067\u306e\u5f37\u6574\u5408\u6027\u3068\u7d50\u679c\u6574\u5408\u6027\u306e\u30d0\u30e9\u30f3\u30b9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/cloud.google.com\/datastore\/docs\/articles\/balancing-strong-and-eventual-consistency-with-google-cloud-datastore?hl=ja<\/ul>\n<h2>CAP\u5b9a\u7406<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CAP \u5b9a\u7406<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/cloud.ibm.com\/docs\/Cloudant?topic=Cloudant-cap-theorem&amp;locale=ja<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CAP Theorem<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.ibm.com\/cloud\/learn\/cap-theorem<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Brewer\u2019s Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">http:\/\/lpd.epfl.ch\/sgilbert\/pubs\/BrewersConjecture-SigAct.pdf<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">12\u5e74\u5f8c\u306eCAP\u5b9a\u7406: &#8220;\u6cd5\u5247&#8221;\u306f\u3069\u306e\u3088\u3046\u306b\u5909\u308f\u3063\u305f\u304b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.infoq.com\/jp\/articles\/cap-twelve-years-later-how-the-rules-have-changed\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Cloud Spanner \u3068 CAP \u5b9a\u7406<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/cloud.google.com\/blog\/ja\/products\/gcp\/inside-cloud-spanner-and-the-cap-theorem<\/ul>\n<h2>\u65e0SQL\u666e\u904d<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Building Scalable Databases: Pros and Cons of Various Database Sharding Schemes<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">http:\/\/www.25hoursaday.com\/weblog\/2009\/01\/16\/BuildingScalableDatabasesProsAndConsOfVariousDatabaseShardingSchemes.aspx<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Schemaless Data Structures<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/martinfowler.com\/articles\/schemaless\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">After MongoDB support ACID, will we see the end of the era of RDBMS?<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.quora.com\/After-MongoDB-support-ACID-will-we-see-the-end-of-the-era-of-RDBMS<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf \u30bd\u30fc\u30b9\u3068NoSQL \u30c7\u30fc\u30bf<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.microsoft.com\/ja-jp\/dotnet\/architecture\/cloud-native\/relational-vs-nosql-data<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e16\u754c\u3092\u00a0 \u00a0 \u8aad\u307f\u89e3\u304f\u30ac\u30a4\u30c9\u30d6\u30c3\u30af<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.ibm.com\/downloads\/cas\/3BAWY9RW<\/ul>\n<h2>NoSQL\u805a\u4f1a<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Design Patterns for Distributed Non-Relational Databases<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">http:\/\/static.last.fm\/johan\/nosql-20090611\/intro_nosql.pdf<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">NOSQL debrief<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/blog.oskarsson.nu\/2009\/06\/nosql-debrief.html<\/ul>\n<h2>Dynamo \/ DynamoDB: \u52a8\u529b\u5b66 \/ \u52a8\u529b\u5b66\u6570\u636e\u5e93<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">A Decade of Dynamo: Powering the next wave of high-performance, internet-scale applications<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.allthingsdistributed.com\/2017\/10\/a-decade-of-dynamo.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) &#8211; AWS re:Invent 2018<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.slideshare.net\/AmazonWebServices\/amazon-dynamodb-under-the-hood-how-we-built-a-hyperscale-database-dat321-aws-reinvent-2018<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon&#8217;s Dynamo<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.allthingsdistributed.com\/2007\/10\/amazons_dynamo.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon DynamoDB \u2013 a Fast and Scalable NoSQL Database Service Designed for Internet Scale Applications<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.allthingsdistributed.com\/2012\/01\/amazon-dynamodb.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u30ad\u30fc\u3092\u52b9\u7387\u7684\u306b\u8a2d\u8a08\u3057\u3001\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.aws.amazon.com\/ja_jp\/amazondynamodb\/latest\/developerguide\/bp-partition-key-design.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">DynamoDB Auto Scaling \u306b\u3088\u308b\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u30ad\u30e3\u30d1\u30b7\u30c6\u30a3\u30fc\u306e\u81ea\u52d5\u7ba1\u7406<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.aws.amazon.com\/ja_jp\/amazondynamodb\/latest\/developerguide\/AutoScaling.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">New \u2013 Auto Scaling for Amazon DynamoDB<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/blogs\/aws\/new-auto-scaling-for-amazon-dynamodb\/<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4e4b\u524d\u53ea\u662f\u7a0d\u5fae\u63a5\u89e6\u8fc7DynamoDB\uff0c\u4f46\u770b\u5230\u4e00\u7bc7\u8bf4DynamoDB\u6570\u636e\u4e0d\u4e00\u81f4\u6027\u7684\u6587\u7ae0\u540e\uff0c\u4e00\u76f4\u6000\u7591DynamoD [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50641","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7dynamodb\u518d\u6b21\u5165\u95e8nosql\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL\" \/>\n<meta property=\"og:description\" content=\"\u6211\u4e4b\u524d\u53ea\u662f\u7a0d\u5fae\u63a5\u89e6\u8fc7DynamoDB\uff0c\u4f46\u770b\u5230\u4e00\u7bc7\u8bf4DynamoDB\u6570\u636e\u4e0d\u4e00\u81f4\u6027\u7684\u6587\u7ae0\u540e\uff0c\u4e00\u76f4\u6000\u7591DynamoD [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7dynamodb\u518d\u6b21\u5165\u95e8nosql\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-05T09:34:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T09:02:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/5-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/\",\"name\":\"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-03-05T09:34:35+00:00\",\"dateModified\":\"2024-05-04T09:02:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7dynamodb\u518d\u6b21\u5165\u95e8nosql\/","og_locale":"zh_CN","og_type":"article","og_title":"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL","og_description":"\u6211\u4e4b\u524d\u53ea\u662f\u7a0d\u5fae\u63a5\u89e6\u8fc7DynamoDB\uff0c\u4f46\u770b\u5230\u4e00\u7bc7\u8bf4DynamoDB\u6570\u636e\u4e0d\u4e00\u81f4\u6027\u7684\u6587\u7ae0\u540e\uff0c\u4e00\u76f4\u6000\u7591DynamoD [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u901a\u8fc7dynamodb\u518d\u6b21\u5165\u95e8nosql\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-05T09:34:35+00:00","article_modified_time":"2024-05-04T09:02:27+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b9913a08637a6e3c9d\/5-0.jpeg"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/","name":"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-03-05T09:34:35+00:00","dateModified":"2024-05-04T09:02:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u901a\u8fc7DynamoDB\u518d\u6b21\u5165\u95e8NoSQL"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e9%80%9a%e8%bf%87dynamodb%e5%86%8d%e6%ac%a1%e5%85%a5%e9%97%a8nosql\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=50641"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50641\/revisions"}],"predecessor-version":[{"id":99573,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50641\/revisions\/99573"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=50641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=50641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=50641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}