{"id":5705,"date":"2018-07-08T23:44:58","date_gmt":"2018-07-08T15:44:58","guid":{"rendered":"http:\/\/www.orczhou.com\/?p=5705"},"modified":"2025-12-08T12:13:49","modified_gmt":"2025-12-08T04:13:49","slug":"about-dynamodb-2","status":"publish","type":"post","link":"https:\/\/www.orczhou.com\/index.php\/2018\/07\/about-dynamodb-2\/","title":{"rendered":"\u5173\u4e8eDynamoDB"},"content":{"rendered":"\n<p>\u5728<a href=\"https:\/\/aws.amazon.com\/\" target=\"_blank\" rel=\"noopener\">AWS<\/a>\u53bb\u5e74\u768411\u6708\u4efd\u7684<a href=\"https:\/\/www.youtube.com\/watch?v=1IxDLeFQKPk\" target=\"_blank\" rel=\"noopener\">re:Invent<\/a>\u4e0a\uff0cAWS\u53d1\u5e03\u4e86<a href=\"https:\/\/aws.amazon.com\/dynamodb\/global-tables\/\" target=\"_blank\" rel=\"noopener\">DynamoDB Global Table<\/a>\uff0c\u5e76\u4e14<a href=\"https:\/\/www.businesswire.com\/news\/home\/20171129006077\/en\/AWS-Announces-New-Capabilities-Amazon-Aurora-Amazon\" target=\"_blank\" rel=\"noopener\">\u5ba3\u79f0<\/a>\u662f\u201cfirst fully-managed multi-master multi-region database in the world\u201d\u3002Global Table\u53ef\u4ee5\u5b9e\u73b0\u8de8\u591a\u4e2a\u5730\u533a\uff08Region\uff09\u6570\u636e\u591a\u70b9\u5199\u5165\uff0c\u591a\u4e2a\u5730\u533a\u95f4\u6570\u636e\u4f1a\u51c6\u5b9e\u65f6\u7684\u540c\u6b65\uff0c\u7528\u6237\u53ef\u4ee5\u5229\u7528\u8fd9\u4e2a\u80fd\u529b\uff0c\u8f83\u4e3a\u7b80\u5355\u7684\u5b9e\u73b0\u5168\u7403\u4e1a\u52a1\u90e8\u7f72\u548c\u6570\u636e\u8bbf\u95ee\u3002\u4e00\u76f4\u4ee5\u6765\uff0cDynamo\u90fd\u662fAmazon\u5728<a href=\"https:\/\/www.allthingsdistributed.com\/files\/amazon-dynamo-sosp2007.pdf\" target=\"_blank\" rel=\"noopener\">\u5206\u5e03\u5f0f\u3001\u6570\u636e\u5e93\u9886\u57df\u7684\u91cd\u5927\u521b\u65b0<\/a>\uff0c\u5b83\u66fe\u548cGoogle\u7684BigTable\u4e00\u8d77\u5f00\u542f\u4e86\u4e00\u4e2a\u5f71\u54cd\u6df1\u8fdc\u7684NoSQL\u65f6\u4ee3\u3002\u5728AWS\u4e0a\uff0cDynamo\u5728\u548cSimpleDB\u2018\u5408\u4f53\u2019\uff08\u6211\u4e5f\u4e0d\u77e5\u9053\u7528\u4ec0\u4e48\u8bcd\u6bd4\u8f83\u5408\u9002\uff09\u540e\uff0c\u4ee5<a href=\"https:\/\/amazonaws-china.com\/dynamodb\/\" target=\"_blank\" rel=\"noopener\">\u4ea7\u54c1DynamoDB<\/a>\u5728\u4e91\u7aef\u63d0\u4f9b\u670d\u52a1\u3002\u672c\u6587\u5c06\u6982\u8ff0AWS\u4e0aDynamoDB\u5b9e\u4f8b\u7684\u521b\u5efa\u3001\u4f7f\u7528\u3001\u4ee5\u53ca\u4e00\u81f4\u6027\u95ee\u9898\uff0c\u5177\u4f53\u5305\u62ecDynamoDB Table\u3001Local\/Global Secondary Index\u3001Global Table\u7b49\u3002<\/p>\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">\u4f53\u9a8cDynamoDB<\/h3>\n\n\n\n<p>DynamoDB\u4ee5Table\u7684\u65b9\u5f0f\u63d0\u4f9b\u670d\u52a1\uff0c\u7528\u6237\u5728\u63a7\u5236\u53f0\u65b0\u5efa\u4e00\u4e2a\u8868\uff0c\u7136\u5c31\u53ef\u4ee5\u4f7f\u7528\u76f8\u5e94\u8bed\u8a00\u7684API\u8bbf\u95ee\u5b83\u6240\u63d0\u4f9b\u7684\u6570\u636e\u8bfb\u5199\u670d\u52a1\u4e86\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b0\u5efa\u8868<\/h4>\n\n\n\n<p>\u8fd9\u91cc\u65b0\u5efa\u4e86\u4e00\u4e2a\u540d\u5b57\u4e3a\u201czhou\u201d\u7684\u8868\uff0c\u5305\u542b\u5206\u533a\u5b57\u6bb5uid\u548c\u5206\u533a\u5185\u6392\u5e8f\u5b57\u6bb5itemid\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"508\" src=\"http:\/\/www.orczhou.com\/wp-content\/uploads\/2018\/06\/Snip20180626_179.png\" alt=\"Snip20180626_179\" class=\"wp-image-5712\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u65b0\u5efa\u7528\u6237\/\u7ec4<\/h4>\n\n\n\n<p>\u5728<a href=\"http:\/\/\u5728IAM\u4e2d\uff0c\" target=\"_blank\" rel=\"noopener\">IAM\u4e2d<\/a>\uff0c\u65b0\u5efa\u4e86\u4e00\u4e2a\u5177\u6709DynamoDB\u76f8\u5173\u6240\u6709\u6743\u9650\u7684Group\uff0c\u5e76\u5728\u8be5Group\u4e2d\u65b0\u5efa\u4e86\u7528\u6237zhou\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"521\" src=\"http:\/\/www.orczhou.com\/wp-content\/uploads\/2018\/06\/Snip20180626_183.png\" alt=\"Snip20180626_183\" class=\"wp-image-5715\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbf\u95eeDynamoDB\u6570\u636e\u8868<\/h4>\n\n\n\n<p>\u8fd9\u91cc\u4f7f\u7528AWS\u7684Python SDK \u201cboto\u201d\u6765\u8bbf\u95ee\u6570\u636e\u8868\u3002\u5148\u5b89\u88c5boto3\uff0c\u7136\u540e\u914d\u7f6eAWS\u76f8\u5173\u7684\u9009\u9879\uff0c\u5305\u62ecACCESS KEY\u3001SECRET KEY\u3001Region\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">pip install boto3\n\ncat ~\/.aws\/credentials\n[default] \naws_access_key_id = YOUR_ACCESS_KEY \naws_secret_access_key = YOUR_SECRET_KEY\n\ncat ~\/.aws\/config\n[default]\nregion=ap-northeast-1<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u67e5\u8be2\u5355\u6761\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># cat dynamodbt.py\nimport boto3\ndynamodb = boto3.resource('dynamodb')\ntable = dynamodb.Table('zhou')\n\nresponse = table.get_item(\n    Key={\n        'uid': 82787,\n       'itemid': 746\n    }\n)\nitem = response['Item']\nprint(item)\n\n# python dynamodbt.py\n{u'itemid': Decimal('746'), u'num': Decimal('3'), u'uid': Decimal('82787')}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u67e5\u8be2\u5e76\u904d\u5386\u591a\u6761\u6570\u636e<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># cat dynamodbt.py\nimport boto3\nimport json\nimport decimal\nfrom boto3.dynamodb.conditions import Key, Attr\n\ndynamodb = boto3.resource('dynamodb')\n\ntable = dynamodb.Table('zhou')\n\nresponse = table.query(\n    KeyConditionExpression=Key('uid').eq(82787)\n)\n\nfor i in response['Items']:\n    print(i['uid'], \":\", i['itemid'],\":\",i['num'])<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Local\/Global Secondary Index<\/h3>\n\n\n\n<p>Global Secondary Index\u53ef\u4ee5\u5728\u521b\u5efa\u8868\u4e4b\u540e\u6dfb\u52a0\uff1bLocal Secondary Index\u5219<a href=\"https:\/\/amazonaws-china.com\/blogs\/aws\/local-secondary-indexes-for-amazon-dynamodb\/\" target=\"_blank\" rel=\"noopener\">\u53ea\u80fd\u5728\u521b\u5efa\u8868\u7684\u65f6\u5019\u6dfb\u52a0<\/a>\u3002<\/p>\n\n\n\n<p>DynamoDB\u7d22\u5f15\u662f\u4ee5\u201c\u6700\u7ec8\u4e00\u81f4\u201d\u7684\u65b9\u5f0f\u5b9e\u73b0\u7684\u4e8c\u7ea7\u7d22\u5f15\u3002\u57fa\u4e8eLSI\u7684\u67e5\u8be2\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u8981\u6c42\u5fc5\u987b\u8fd4\u56de\u5f3a\u4e00\u81f4\u7684\u6570\u636e\uff0c\u4f46\u57fa\u4e8eGSI\u7684\u67e5\u8be2\u53ea\u80fd\u652f\u6301\u201c\u6700\u7ec8\u4e00\u81f4\u6027\u201d\uff08<a href=\"https:\/\/docs.aws.amazon.com\/amazondynamodb\/latest\/developerguide\/SQLtoNoSQL.Indexes.html\" target=\"_blank\" rel=\"noopener\">\u53c2\u8003<\/a>\uff09\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8eGSI\uff0c\u7d22\u5f15\u662f\u7531DynamoDB\u81ea\u52a8\u7ef4\u62a4\uff0c\u4f7f\u7528\u4e86\u6700\u7ec8\u4e00\u81f4\u6027\u6a21\u578b\u7684\u5f02\u6b65\u7684\u5b9e\u73b0\u3002\u5f53\u6570\u636e\u5199\u5165\u6216\u8005\u5220\u9664\u65f6\uff0c\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u7d22\u5f15\u5c06\u4f1a\u5728\u767e\u6beb\u79d2\uff08<a href=\"https:\/\/docs.aws.amazon.com\/amazondynamodb\/latest\/developerguide\/GSI.html\" target=\"_blank\" rel=\"noopener\">fraction of a second<\/a>\uff09\u7684\u65f6\u95f4\u5185\u540c\u6b65\u5230GSI\u3002\u4f46\u5982\u679c\u53d1\u751f\u5f02\u5e38\uff0c\u8fd9\u4e2a\u65f6\u95f4\u53ef\u80fd\u4f1a\u66f4\u957f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efaGSI<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"618\" height=\"651\" src=\"http:\/\/www.orczhou.com\/wp-content\/uploads\/2018\/06\/Snip20180627_191.png\" alt=\"Snip20180627_191\" class=\"wp-image-5735\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528GSI\u8fdb\u884c\u67e5\u8be2<\/h4>\n\n\n\n<p>\u4f7f\u7528\u7d22\u5f15timestamp_c-itemid-index\uff0c\u67e5\u8be2timestamp_c=1528917390 \u4e14 itemid &gt;= 6\u7684\u8bb0\u5f55\uff08<a href=\"https:\/\/www.programcreek.com\/python\/example\/103723\/boto3.dynamodb.conditions.Key\" target=\"_blank\" rel=\"noopener\">\u66f4\u591a\u793a\u4f8b\u53c2\u8003<\/a>\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># cat dynamodbt.py\nimport boto3\nimport json\nimport decimal\nfrom boto3.dynamodb.conditions import Key, Attr\n\ndynamodb = boto3.resource('dynamodb')\ntable = dynamodb.Table('zhou')\n\nresponse = table.query(\n     IndexName=\"timestamp_c-itemid-index\",\n     KeyConditionExpression=Key('timestamp_c').eq(1528917390) &amp; Key('itemid').gte(6)\n)\n\nfor i in response['Items']:\n    print(i['uid'], \":\", i['itemid'],\":\",i['num'])\n\n# python dynamodbt.py\n(Decimal('82787'), ':', Decimal('9214'), ':', Decimal('70'))<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efaLSI<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">\u4f7f\u7528LSI\u8fdb\u884c\u67e5\u8be2<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># python dynamodbt.py\n(Decimal('297'), ':', Decimal('7369'), ':', Decimal('392'))\n# cat dynamodbt.py\nimport boto3\nimport json\nimport decimal\nfrom boto3.dynamodb.conditions import Key, Attr\n\ndynamodb = boto3.resource('dynamodb')\ntable = dynamodb.Table('zhou')\n\nresponse = table.query(\n     IndexName=\"uid-timestamp_c-index-copy\",\n     ConsistentRead=True,\n     KeyConditionExpression=Key('uid').eq(297) &amp; Key('timestamp_c').gte(1530017390)\n)\n\nfor i in response['Items']:\n    print(i['uid'], \":\", i['itemid'],\":\",i['num'])<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f<\/h4>\n\n\n\n<p>LSI\u53ea\u80fd\u5728\u521b\u5efa\u8868\u7684\u65f6\u5019\u540c\u65f6\u521b\u5efa\uff0c\u4e4b\u540e\u5c31\u4e0d\u80fd\u591f\u518d\u521b\u5efa\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Global Table<\/h3>\n\n\n\n<p>Global Table\u662f\u4e00\u7ec4\u8de8\u5730\u533a\uff08region\uff09\u76f8\u4e92\u540c\u6b65\u7684\u4e00\u7ec4\u8868\uff0c\u5e94\u7528\u53ef\u5728\u4efb\u4f55\u5730\u533a\u8bfb\u5199\u8be5\u8868\u3002\u5728DynamoDB\u5e95\u5c42\uff0c\u662f\u540c\u4e00\u4e2aAWS\u8d26\u53f7\u4e0b\u4e00\u7ec4\u4e92\u76f8\u590d\u5236\u7684\u8868\u3002\u5bf9\u5176\u4e2d\u4efb\u610f\u4e00\u4e2a\u8868\u8fdb\u884c\u4fee\u6539\uff0c\u53d8\u5316\u90fd\u4f1a\u540c\u6b65\u5230\u5176\u4ed6\u8868\u3002\u4e00\u4e2a\u65b0\u5199\u5165\u7684\u6570\u636e\uff0c\u4e00\u822c\u9700\u8981\u51e0\u79d2\uff08within seconds\uff0c\u6211\u5e76\u6ca1\u6709\u9a8c\u8bc1\u5ef6\u8fdf\u60c5\u51b5\uff09\u65f6\u95f4\u4f20\u9012\u5230\u5176\u4ed6\u8282\u70b9\u3002\u5982\u679c\u5e94\u7528\u9700\u8981\u5f3a\u4e00\u81f4\u8bfb\uff0c\u90a3\u4e48\u5fc5\u987b\u5728\u540c\u4e00\u4e2a\u5730\u533a\u8fdb\u884c\u5f3a\u4e00\u81f4\u8bfb\u548c\u5199\u3002\u5982\u679c\uff0c\u5199\u5165\u7684\u6570\u636e\u5728\u4e00\u4e2a\u5730\u533a\uff0c\u90a3\u4e48\u8fd9\u6761\u6570\u636e\u5728\u53e6\u4e00\u4e2a\u5730\u533a\u5e76\u4e0d\u80fd\u5f3a\u4e00\u81f4\u7684\u8bfb\u53d6\u3002\u5bf9\u4e8e\u4e0d\u540c\u5730\u533a\uff0c\u5199\u5165\u7684\u51b2\u7a81\u6570\u636e\uff0c\u4f7f\u7528\u201clast writer wins\u201d\u673a\u5236\u53bb\u89e3\u51b3\uff08\u8bf4\u660e\uff1a\u6587\u6863\u4e2d\u8bf4DynamoDB\u4f1amakes a best effort to determine the last writer\uff0c\u4f46\u662f\uff0c\u5e76\u6ca1\u6709\u4ecb\u7ecd\u5177\u4f53\u7684\u673a\u5236\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efa\u4e00\u4e2aGlobal Table<\/h4>\n\n\n\n<p>\u66f4\u8be6\u7ec6\u7684\u521b\u5efa\u6d41\u7a0b\u53ef\u4ee5\u53c2\u8003AWS\u7684\u6587\u6863\uff1a<a href=\"https:\/\/docs.aws.amazon.com\/amazondynamodb\/latest\/developerguide\/globaltables.tutorial.html\" target=\"_blank\" rel=\"noopener\">Creating a Global Table<\/a>\u3002\u76ee\u524d\u53ea\u6709\u6bd4\u8f83\u5c11\u7684\u5730\u533a\u652f\u6301Global Table\uff0c\u5305\u62ecUS East (N. Virginia), US East (Ohio), US West (Oregon), EU (Frankfurt), EU (Ireland), and Asia Pacific (Singapore)\u3002\u8fd9\u91cc\u7684\u793a\u4f8b\u5728Singapore\u3001Virginia\u521b\u5efa\u4e86\u4e00\u4e2aGlobal Table\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u5c06\u63a7\u5236\u53f0\u5207\u6362\u5230Singapore\u5730\u533a\uff0c\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u7684DynamoDB\u7684Table\u3002\u7136\u540e\u5728Table\u754c\u9762\uff0c\u9009\u62e9\u201cGlobal Tables\u201d\u9009\u9879\u5361\uff0c\u5148\u6253\u5f00Old\/new images Stream\uff0c\u518d\u6dfb\u52a0\u9700\u8981\u540c\u6b65\u7684\u5176\u4ed6\u7684\u5730\u533a\uff0c\u53c2\u8003\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"799\" src=\"http:\/\/www.orczhou.com\/wp-content\/uploads\/2018\/06\/Snip20180627_198.png\" alt=\"Snip20180627_198\" class=\"wp-image-5744\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5b8c\u6210\u521b\u5efa\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u591a\u4e2aregion\u5199\u5165\u6570\u636e\u4e86\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u591a\u4e2a\u5730\u533a\u8bfb\u5199Global Table<\/h4>\n\n\n\n<p>\u5728\u4efb\u4f55\u5730\u533a\u5199\u5165\u7684\u6570\u636e\uff0c\u90fd\u4f1a\u5f88\u5feb\u4f20\u9012\u5230\u5176\u4ed6\u5730\u533a\u3002\u53e6\u5916\uff0c\u5728Global Table\u5206\u5e03\u7684\u5730\u533a\u4e5f\u90fd\u53ef\u4ee5\u8bfb\u53d6\u5230\u5168\u90e8\u7684\u6570\u636e\uff0c\u5bf9\u4e8e\u5168\u7403\u5206\u5e03\u7684\u4e1a\u52a1\u6765\u8bf4\uff0c\u786e\u5b9e\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u80fd\u529b\u3002\u8bfb\u5199\u7684\u4ee3\u7801\u548c\u524d\u9762\u8bfb\u5199\u666e\u901a\u8868\u65f6\u76f8\u540c\u7684\uff0c\u8fd9\u91cc\u53ea\u662f\u7b80\u5355\u9a8c\u8bc1\u4e00\u4e0b\u591a\u4e2a\u5730\u533a\u53ef\u4ee5\u8bfb\u5199\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># cat getitem_dy.py\nimport boto3\n\nmy_session = boto3.session.Session()\nmy_region = my_session.region_name\nprint \"Read data from region:\",my_region\n\ndynamodb = boto3.resource('dynamodb')\ntable = dynamodb.Table('zhou')\n\nresponse = table.get_item(\n    Key={\n        'uid': 827\n    }\n)\nitem = response['Item']\nprint(item)\n# vi ~\/.aws\/config\n# cat ~\/.aws\/config\n[default]\nregion=us-east-1\n# python getitem_dy.py\nRead data from region: us-east-1\n{u'aws:rep:updatetime': Decimal('1530084809.398001'), u'aws:rep:updateregion': u'us-east-1', u'attr': u'ksiiakthisniskksuam', u'aws:rep:deleting': False, u'uid': Decimal('827')}\n# vi ~\/.aws\/config\n# cat ~\/.aws\/config\n[default]\nregion=ap-southeast-1\n# python getitem_dy.py\nRead data from region: ap-southeast-1\n{u'aws:rep:updatetime': Decimal('1530084809.398001'), u'aws:rep:updateregion': u'us-east-1', u'attr': u'ksiiakthisniskksuam', u'aws:rep:deleting': False, u'uid': Decimal('827')}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Dynamo\u7684\u4e00\u4e9b\u6280\u672f<\/h3>\n\n\n\n<p>DynamoDB\u662fAmazon\u5185\u90e8Dynamo\u7684\u5728AWS\u4e0a\u8f93\u51fa\u3002\u5341\u5e74\u524d\uff0cDynamo\u8bba\u6587\u300a<a href=\"https:\/\/www.allthingsdistributed.com\/files\/amazon-dynamo-sosp2007.pdf\" target=\"_blank\" rel=\"noopener\">Dynamo: Amazon\u2019s Highly Available Key-value Store<\/a>\u300b\u4e2d\u8f83\u4e3a\u8be6\u7ec6\u7684\u4ecb\u7ecd\u80cc\u540e\u7684\u4e00\u4e9b\u6280\u672f\u3002\u5305\u62ecConsistent Hashing\u5b9e\u73b0\u6570\u636e\u5206\u533a\u4ece\u800c\u5177\u5907\u826f\u597d\u7684\u6269\u5c55\u6027\u3001\u4f7f\u7528Quorum\u5b9e\u73b0\u6570\u636e\u591a\u526f\u672c\u4e0b\u7684\u5f3a\u4e00\u81f4\u8bfb\u5199\u3001Vector Clock\u8f85\u52a9\u5224\u65ad\u51b2\u7a81\u65f6\u6570\u636e\u5199\u5165\u987a\u5e8f\u7684\u903b\u8f91\u5173\u7cfb\u3001Merkle Tree\u6765\u51cf\u5c11\u6570\u636e\u4e0d\u4e00\u81f4\u65f6\u5feb\u901f\u5b9a\u4f4d\u4e0d\u4e00\u81f4\u7684KEY\u3001Gossip protocal\u6765\u5b9e\u73b0\u589e\u51cf\u8282\u70b9\u65f6\u8ba9\u6bcf\u4e2a\u8282\u70b9\u90fd\u5feb\u901f\u88ab\u901a\u77e5\u5230\u6570\u636e\u7269\u7406\u5206\u5e03\u60c5\u51b5\uff08membership\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728AWS\u53bb\u5e74\u768411\u6708\u4efd\u7684re:Invent\u4e0a\uff0cAWS\u53d1\u5e03\u4e86DynamoDB Global Table\uff0c\u5e76\u4e14\u5ba3\u79f0\u662f\u201cfirst fully-managed multi-master multi-region database in the world\u201d\u3002Global Table\u53ef\u4ee5\u5b9e\u73b0\u8de8&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"wp-custom-template-a-1440-px-width-template","format":"standard","meta":{"_eb_attr":"","inline_featured_image":false,"_tocer_settings":[],"footnotes":""},"categories":[126,125],"tags":[],"class_list":["post-5705","post","type-post","status-publish","format-standard","hentry","category-database","category-125"],"_links":{"self":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/5705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=5705"}],"version-history":[{"count":55,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/5705\/revisions"}],"predecessor-version":[{"id":21206,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/5705\/revisions\/21206"}],"wp:attachment":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=5705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=5705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=5705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}