{"id":253229,"date":"2022-09-30T09:43:36","date_gmt":"2022-09-30T01:43:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=253229"},"modified":"2022-09-21T14:44:46","modified_gmt":"2022-09-21T06:44:46","slug":"we-talke-fusql","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/we-talke-fusql.html","title":{"rendered":"\u6211\u4eec\u4e00\u8d77\u804a\u804a\u5206\u5e03\u5f0f\u6570\u636e\u670d\u52a1"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMySQL\u672c\u8eab\u4e0d\u662f\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u5176\u652f\u6301\u7684\u6570\u636e\u590d\u5236\u6280\u672f\uff0c\u672c\u8d28\u4e0a\u662f\u4e3a\u4e86\u6570\u636e\u5bb9\u707e\u4f7f\u7528\uff0c\u4f46\u76ee\u524d\u57fa\u4e8e\u4e3b\u4ece\u590d\u5236\u8fdb\u884c\u8bfb\u5199\u5206\u79bb\uff0c\u51cf\u5c11\u5355\u673a\u7684\u8bfb\u538b\u529b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u76ee\u6807<\/strong><\/div>\n

\u6570\u636e\u5b58\u50a8\u8d44\u6e90\u662f\u7cfb\u7edf\u4e2d\u6700\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\uff0c\u6570\u636e\u5373\u4e00\u5207\uff0c\u5c24\u5176\u5206\u5e03\u5f0f\u9886\u57df\uff0c\u4e3b\u8981\u5173\u6ce8\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n

    \n
  1. \u9ad8\u53ef\u7528\u6027\uff0c\u5f53\u9047\u5230\u7f51\u7edc\u6216\u8005\u7cfb\u7edf\u6545\u969c\u65f6\uff0c\u7cfb\u7edf\u4ecd\u7136\u4fdd\u6301\u53ef\u7528<\/li>\n
  2. \u9ad8\u6269\u5c55\uff0c\u5f53\u6570\u636e\u89c4\u6a21\u53d8\u5927\u65f6\uff0c\u6570\u636e\u5b58\u50a8\u7cfb\u7edf\u80fd\u591f\u81ea\u52a8\u9002\u5e94\u8fd9\u79cd\u53d8\u5316<\/li>\n
  3. \u9ad8\u6027\u80fd\uff0c\u5f53\u6570\u636e\u89c4\u6a21\u548c\u8bbf\u95ee\u89c4\u6a21\u53d8\u5927\u65f6\uff0c\u6027\u80fd\u4e0d\u53d7\u5927\u7684\u5f71\u54cd<\/li>\n
  4. \u6210\u672c\uff0c\u901a\u8fc7\u6210\u672c\u53cd\u6620\u51fa\u7cfb\u7edf\u8bbe\u8ba1\u662f\u5408\u7406\u7684<\/li>\n
  5. \u5b89\u5168\uff0c\u9047\u5230\u5404\u79cd\u7cfb\u7edf\u548c\u4eba\u4e3a\u6545\u969c\u65f6\uff0c\u6570\u636e\u4e0d\u4e22\u5931<\/li>\n<\/ol>\n
    MySQL<\/strong><\/div>\n

    MySQL\u662fOLTP\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u652f\u6301ACID\u4e8b\u52a1\uff0c\u662f\u6700\u4e3b\u8981\u7684\u5b58\u50a8\u7cfb\u7edf\uff0c\u76ee\u524d\u4f7f\u7528\u7684\u7248\u672c\u662f5.7\u3002MySQL\u672c\u8eab\u4e0d\u662f\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u5176\u652f\u6301\u7684\u6570\u636e\u590d\u5236\u6280\u672f\uff0c\u672c\u8d28\u4e0a\u662f\u4e3a\u4e86\u6570\u636e\u5bb9\u707e\u4f7f\u7528\uff0c\u4f46\u76ee\u524d\u57fa\u4e8e\u4e3b\u4ece\u590d\u5236\u8fdb\u884c\u8bfb\u5199\u5206\u79bb\uff0c\u51cf\u5c11\u5355\u673a\u7684\u8bfb\u538b\u529b\u3002<\/p>\n

    MySQL\u670d\u52a1\u5982\u679c\u6258\u7ba1\u5728\u963f\u91cc\u4e91\uff0c\u53ef\u4ee5\u4f7f\u7528\u9ad8\u53ef\u7528\u7248\u672c\uff0c\u79d2\u7ea7\u7684\u4e3b\u4ece\u5207\u6362\uff0c\u57fa\u4e8e\u4e91\u76d8\u7684\u78c1\u76d8\u6269\u5bb9\u6280\u672f\uff0c\u80fd\u591f\u5feb\u901f\u590d\u5236\u4e00\u4e2a\u53ea\u8bfb\u8282\u70b9\uff0c\u51cf\u5c11\u4e86\u5f88\u591a\u81ea\u5efaMySQL\u9047\u5230\u7684\u5404\u79cd\u95ee\u9898\uff0c\u53e6\u5916\u5176\u8fd8\u63d0\u4f9b\u4e86\u5f88\u591a\u989d\u5916\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u7d22\u5f15\u5206\u6790\u3001SQL\u5ba1\u67e5\u3001\u6162\u67e5\u8be2\u5206\u6790\u3001\u52a8\u6001\u6269\u5bb9\u3002<\/p>\n

    \u867d\u7136\u4e91\u6258\u7ba1RDS\uff0c\u4f46\u672c\u8d28\u4e0a\u8fd8\u662fMySQL\uff0c\u4ecd\u7136\u4f1a\u9047\u5230\u5f88\u591a\u95ee\u9898\uff0c\u6bd4\u5982\uff1a<\/p>\n

      \n
    1. \u6570\u636e\u5b58\u50a8\u4e0d\u652f\u6301\u5206\u7247\uff0c\u53ea\u80fd\u901a\u8fc7\u5206\u5e93\u5206\u8868\u7684\u65b9\u5f0f\u8fdb\u884c\u6a2a\u5411\u6269\u5c55\uff0c\u76ee\u524d\u5e94\u7528\u5c42\u4e5f\u4e0d\u652f\u6301\u5206\u5e93\u5206\u8868\u7684\u8def\u7531\uff0c\u5373\u4f7f\u5206\u8868\uff0c\u62c6\u5206\u8868\u7684\u65f6\u5019\u8fd8\u662f\u4f1a\u9047\u5230\u5f88\u591a\u95ee\u9898<\/li>\n
    2. \u5982\u679c\u8868\u8bbe\u8ba1\u548c\u7d22\u5f15\u8bbe\u8ba1\u4e0d\u5408\u7406\uff0c\u5927\u91cf\u7684\u66f4\u65b0\uff0c\u4ecd\u7136\u4f1a\u9047\u5230\u4e3b\u4ece\u5ef6\u8fdf\u7684\u95ee\u9898\uff0c\u4ece\u5e94\u7528\u5c42\u9762\u662f\u5f88\u96be\u5f7b\u5e95\u89e3\u51b3\u7684<\/li>\n
    3. \u963f\u91cc\u4e91RDS\u53ea\u652f\u6301\u4e00\u4e2a\u8d1f\u8f7d\u5747\u8861\u4e3b\u4ece\u5206\u79bb\uff0c\u6240\u4ee5\u540e\u53f0\u3001\u961f\u5217\u5e94\u7528\u4f7f\u7528360 Atlas\u8bfb\u5199\u5206\u79bb\u670d\u52a1\uff0c\u76ee\u524d\u662f\u4e00\u4e2a\u5355\u70b9\uff0c\u4e14\u4e5f\u4f1a\u5f71\u54cd\u8bfb\u5199\u6027\u80fd\u3002<\/li>\n
    4. MySQL\u5e94\u7528\u89c4\u8303\u76ee\u524d\u8fd8\u6ca1\u6709\u5efa\u7acb\uff0c\u6bd4\u5982\u4ec0\u4e48\u6837\u7684\u5e94\u7528\u5e94\u8be5\u9009\u62e9MySQL\uff0c\u4f7f\u7528MySQL\u5f88\u5927\u7a0b\u5ea6\u662f\u4e3a\u4e86\u4e8b\u52a1\uff0c\u5982\u679c\u6ca1\u6709\u4e8b\u52a1\u7684\u573a\u666f\u662f\u5426\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u7684\u6570\u636e\u5e93\uff1f<\/li>\n
    5. \u963f\u91cc\u4e91\u5b98\u65b9\u63d0\u5230\uff0c\u5355\u8868\u8bb0\u5f55\u6570\u8d85\u8fc7500w\uff0c\u6027\u80fd\u4f1a\u6781\u5177\u4e0b\u964d<\/li>\n
    6. DDL\u64cd\u4f5c\uff0c\u5c24\u5176\u5bf9\u4e8e\u5927\u8868\u64cd\u4f5c\uff0c\u4f1a\u5f15\u8d77\u5f88\u5927\u7684\u540c\u6b65\u5ef6\u8fdf\u95ee\u9898<\/li>\n<\/ol>\n

      \u4e91\u6258\u7ba1\u7684RDS\u672c\u8d28\u4e0a\u8fd8\u662f\u57fa\u4e8eECS+\u4e91\u76d8\u642d\u5efa\u7684\uff0c\u6570\u636e\u7684\u589e\u957f\u3001\u5907\u4efd\u3001\u6027\u80fd\u3001\u8fc1\u79fb\u3001\u5347\u7ea7\u3001\u53ea\u8bfb\u5b9e\u4f8b\u3001\u78c1\u76d8\u5bb9\u91cf\u3001Binlog\u5ef6\u8fdf\u8fd8\u662f\u4f1a\u663e\u9732\u51fa\u6765\u3002<\/p>\n

      \u90a3\u672a\u6765\u5982\u4f55\uff1f\u5176\u5b9e\u4e91\u5382\u5546\u4e5f\u5728\u63a2\u7d22\uff0c\u63d0\u51fa\u4e86\u4e91\u539f\u751f\u6570\u636e\u5e93\u3001\u4e91\u539f\u751f\u5206\u5e03\u5f0f\u6570\u636e\u7684\u6982\u5ff5\uff0c\u6bd4\u5982\u963f\u91cc\u4e91\u7684PolarDB\u3001PolarDB-X\u3002\u4e91\u539f\u751f\u6570\u636e\u5e93\u5173\u6ce8\u6210\u672c\u3001\u6027\u80fd\u3001\u5728\u7ebf\u4e1a\u52a1\u6269\u5c55\u3001\u6570\u636e\u5b89\u5168\uff0c\u5b83\u7684\u6838\u5fc3\u6280\u672f\u5305\u62ec\u8ba1\u7b97\u548c\u5b58\u50a8\u5206\u79bb\uff0c\u7269\u7406\u590d\u5236Binlog\u884c\u590d\u5236\u6a21\u5f0f\uff0c\u5171\u4eab\u5b58\u50a8\u8bbe\u5907\uff0c\u5b58\u50a8\u4e4b\u95f4\u901a\u8fc7RDMA\u9ad8\u901f\u7f51\u7edc\u534f\u8bae\u4f20\u8f93\uff0c\u540c\u65f6PolarDB-X\u652f\u6301\u5206\u533a\u6a21\u5f0f\uff0c\u89e3\u51b3\u4e86\u5206\u5e93\u5206\u8868\u7684\u95ee\u9898\u3002<\/p>\n

      \u7ecf\u8fc7\u8fd9\u4e9b\u521b\u65b0\uff0c\u4f20\u7edfMySQL\u7684\u5f0a\u7aef\u88ab\u89e3\u51b3\u4e86\uff0c\u6bd4\u5982\u540c\u6b65\u5ef6\u8fdf\u3001\u5907\u4efd\u3001\u6210\u672c\u3001\u5206\u5e93\u5206\u8868\u3001\u6027\u80fd\u3002\u672a\u6765\uff0c\u53ef\u4ee5\u5c06\u6838\u5fc3\u6570\u636e\u5e93\u8fc1\u79fb\u81f3\u4e91\u539f\u751f\u6570\u636e\u5e93\uff0c\u4fdd\u969c\u6838\u5fc3\u4e1a\u52a1\u7684\u7a33\u5b9a\u6027\u548c\u6269\u5c55\u6027\uff0c\u800c\u5bf9\u4e8e\u975eOLTP\u4e1a\u52a1\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u6570\u636e\u5e93\uff0c\u4e14\u5236\u5b9aMySQL\u5e94\u7528\u89c4\u8303\uff0c\u660e\u786e\u54ea\u4e9b\u4e1a\u52a1\u6a21\u5f0f\u4f7f\u7528MySQL\uff0c\u7d22\u5f15\u6b63\u786e\u8bbe\u8ba1\u3001\u5bb9\u91cf\u89c4\u5212\u3001SQL\u8bed\u53e5\u4f7f\u7528\u89c4\u8303\u7b49\u7b49\u3002<\/p>\n

      Redis<\/strong><\/div>\n

      Redis\u662fK\/V\u6570\u636e\u5e93\uff0c\u5b83\u57fa\u4e8e\u5355\u7ebf\u7a0b\u3001\u5185\u5b58\u64cd\u4f5c\uff0c\u6240\u4ee5\u6027\u80fd\u975e\u5e38\u9ad8\u3002\u53e6\u5916\u652f\u6301\u4e30\u5bcc\u7684\u6570\u636e\u7ed3\u6784\uff0c\u6bd4\u5982\u5b57\u7b26\u4e32\u3001Hash\u3001List\u3001\u96c6\u5408\uff0c\u5e94\u7528\u573a\u666f\u975e\u5e38\u5e7f\u6cdb\u3002\u5b83\u901a\u8fc7AOF\u548cRDB\u4fdd\u969c\u6570\u636e\u6301\u4e45\u5316\uff0c\u901a\u8fc7\u590d\u5236\u6280\u672f\u8fdb\u884c\u6570\u636e\u5907\u4efd\uff0c\u4e5f\u652f\u6301\u901a\u8fc7\u54e8\u5175\u548c\u5206\u533a\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u548c\u5bb9\u91cf\u4f38\u7f29\uff0c\u901a\u8fc7LUA\u811a\u672c\u652f\u6301\u591a\u6761\u547d\u4ee4\u7684\u4e8b\u52a1\u64cd\u4f5c\u3002<\/p>\n

      Redis\u867d\u7136\u662f\u4e00\u4e2a\u5355\u673a\u7cfb\u7edf\uff0c\u4f46\u901a\u8fc7\u590d\u5236\u3001\u96c6\u7fa4\u6280\u672f\u4e5f\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u5b58\u50a8\u7cfb\u7edf\uff0c\u76ee\u524d\u897f\u4e94\u8857\u5728\u5927\u91cf\u4f7f\u7528\uff0c\u4e3b\u8981\u5206\u4e3a\u4e09\u7c7b\u5e94\u7528\uff1a<\/p>\n

        \n
      1. \u5b58\u50a8\uff0c\u6bd4\u5982\u7528\u6237\u79ef\u5206\u3001\u6587\u7ae0\u6570\u7b49\u6570\u636e\uff0c\u8fd9\u4e9b\u6570\u636e\u4e0d\u80fd\u4e22<\/li>\n
      2. \u7f13\u5b58\uff0c\u6bd4\u5982\u7528\u6237\u6587\u7ae0\u5217\u8868\u6570\u636e\uff0c\u9700\u8981\u8003\u8651\u7f13\u5b58\u7a7f\u900f\u548c\u96ea\u5d29\u7b49\u95ee\u9898<\/li>\n
      3. \u6d88\u606f\u961f\u5217\uff0c\u76ee\u524d\u9010\u6b65\u66ff\u6362\u4e3aKafka\u7b49\u7eaf\u6d88\u606f\u7cfb\u7edf<\/li>\n<\/ol>\n

        \u963f\u91cc\u4e91\u4e91\u6258\u7ba1Redis\u793e\u533a\u72485.0\u670d\u52a1\u96c6\u7fa4\u7248\u3002<\/p>\n

        \u5728\u5e94\u7528\u8bbe\u8ba1\u4e0a\u5b58\u5728\u4ee5\u4e0b\u51e0\u4e2a\u95ee\u9898\uff1a<\/p>\n

          \n
        1. \u5b58\u50a8\u548c\u7f13\u5b58\u6df7\u5408\u4f7f\u7528\uff0c\u65e0\u6cd5\u62c6\u5206\uff0c\u5bf9\u4e8e\u5bb9\u91cf\u4f30\u7b97\u4e0d\u900f\u660e<\/li>\n
        2. \u5e94\u7528\u6a21\u5f0f\u4e0a\uff0c\u6ca1\u6709\u5f88\u597d\u7684\u89c4\u8303\uff0c\u6bd4\u5982\u7f13\u5b58\u66f4\u65b0\u673a\u5236\u6807\u51c6\u3001\u7edf\u4e00Lib\u5e94\u7528\u5305<\/li>\n<\/ol>\n

          \u901a\u8fc7\u963f\u91cc\u4e91Redis\u63d0\u4f9b\u7684\u90e8\u7f72\u67b6\u6784\uff0c\u53ef\u4ee5\u5f88\u597d\u7684\u7406\u89e3\u5b83\u7684\u5e94\u7528\u573a\u666f\uff1a<\/p>\n

            \n
          1. \u6807\u51c6\u7248-\u53cc\u526f\u672c\uff1a\u670d\u52a1\u53ef\u9760\uff0c\u6570\u636e\u53ef\u9760\uff0c\u6bd4\u8f83\u6807\u51c6\u7684\u4f7f\u7528\u6a21\u5f0f\uff0c\u4e0d\u7ba1\u662f\u5b58\u50a8\u8fd8\u662f\u7f13\u5b58\u670d\u52a1\u90fd\u53ef\u7528<\/li>\n
          2. \u96c6\u7fa4\u7248\uff1a\u901a\u8fc7\u4ee3\u7406\u6a21\u5f0f\u548c\u5206\u7247\u53ef\u4ee5\u6784\u5efa\u51fa\u4e00\u4e2a\u53ef\u4f38\u7f29\u7684\u96c6\u7fa4\u6a21\u5f0f\uff0c\u89e3\u51b3Redis\u81ea\u8eab\u5355\u7ebf\u7a0b\u74f6\u9888\uff0c\u6ee1\u8db3\u5927\u5bb9\u91cf\u3001\u9ad8\u6027\u80fd\u7684\u4e1a\u52a1\u9700\u6c42\uff0c\u800c\u4e14\u526f\u672c\u96c6\u4e3b\u8981\u505a\u6062\u590d\u7528\uff0c\u5f88\u9002\u5408\u5b58\u50a8\u573a\u666f\uff0c\u4e0d\u5b58\u5728\u540c\u6b65\u5ef6\u8fdf\u7684\u95ee\u9898<\/li>\n
          3. \u8bfb\u5199\u5206\u79bb\u67b6\u6784\uff1a\u5bf9\u4e8e\u4e0d\u5173\u6ce8\u540c\u6b65\u5ef6\u65f6\u7684\u95ee\u9898\uff0c\u6bd4\u5982\u7f13\u5b58\u573a\u666f\uff0c\u53ef\u4ee5\u9009\u62e9\u8fd9\u79cd\u6a21\u5f0f\uff0c\u5f53\u5bb9\u91cf\u4e0d\u591f\u7684\u9002\u5408\uff0c\u901a\u8fc7\u5ba2\u6237\u7aef\u7684\u4e00\u81f4\u6027Hash\u6280\u672f\u6269\u5bb9\u591a\u4e2aRedis\u5b9e\u4f8b\u5c31\u53ef\u4ee5<\/li>\n<\/ol>\n

            \u540e\u7eed\u786e\u5b9aRedis\u4f7f\u7528\u89c4\u8303\uff0c\u62c6\u5206\u5b58\u50a8\u548c\u7f13\u5b58\u573a\u666f\uff0c\u57fa\u4e8e\u7edf\u4e00Lib\u5305\uff0c\u5c31\u80fd\u89e3\u51b3\u5927\u90e8\u5206\u95ee\u9898\u3002<\/p>\n

            Elasticseach<\/strong><\/div>\n

            Elasticseach\u662f\u4e00\u4e2a\u8fd1\u5b9e\u65f6\u7684\u5206\u5e03\u5f0f\u641c\u7d22\u5f15\u64ce\u548c\u5206\u6790\u5f15\u64ce\u3002\u4f5c\u4e3a\u4e00\u4e2a\u641c\u7d22\u5f15\u64ce\uff0c\u76ee\u524d\u5728\u5f00\u6e90\u9886\u57df\u5df2\u7ecf\u662f\u6392\u540d\u7b2c\u4e00\u7684\u6570\u636e\u5e93\u4e86\uff1b\u57fa\u4e8e\u5012\u6392\u7d22\u5f15\uff0c\u5177\u6709\u5f88\u5f3a\u7684\u68c0\u7d22\u80fd\u529b\uff0c\u6240\u4ee5\u4e0d\u7ba1\u662f\u5e94\u7528\u8fd8\u662f\u5728\u5927\u6570\u636e\u9886\u57df\uff0c\u5b83\u90fd\u662f\u4e00\u4e2a\u975e\u5e38\u901a\u7528\u7684\u5206\u6790\u5f15\u64ce\u3002<\/p>\n

            \u8fd1\u5b9e\u65f6\u8868\u793aElasticseach\u5e94\u7528\u573a\u666f\u5fc5\u987b\u8981\u6709\u6240\u4e86\u89e3\uff0c\u5b83\u4e0d\u652f\u6301ACID\uff0c\u6240\u4ee5\u65e0\u6cd5\u662f\u4e00\u4e2aOLTP\u6570\u636e\u5e93\uff0c\u4f46\u4f7f\u7528\u538b\u529b\u5c0f\u4e86\u5f88\u591a\uff0c\u5728\u505a\u7b56\u7565\u5206\u6790\u3001\u540e\u53f0\u5e94\u7528\u3001\u5373\u65f6\u67e5\u8be2\u4e0a\u6709\u5f88\u5e7f\u6cdb\u7684\u573a\u666f\u3002\u4f5c\u4e3a\u4e00\u4e2a\u5206\u5e03\u5f0f\u5e94\u7528\uff0c\u901a\u8fc7\u526f\u672c\u96c6\u673a\u5236\u89e3\u51b3\u9ad8\u53ef\u7528\u7684\u95ee\u9898\uff0c\u80fd\u591f\u89e3\u51b3\u5355\u673a\u6545\u969c\u7684\u95ee\u9898\uff0c\u4f46\u5982\u679c\u6570\u636e\u88ab\u8bef\u5220\u9664\uff0c\u8fd8\u662f\u9700\u8981\u6709\u5907\u4efd\u673a\u5236\uff0c\u6bd4\u5982Elasticseach\u7684\u5feb\u7167\u673a\u5236\u3002<\/p>\n

            \u526f\u672c\u96c6\u7684\u540c\u6b65\u6700\u7ec8\u8fbe\u5230\u4e00\u81f4\u6027\uff0c\u4e3a\u4e86\u5199\u5165\u6027\u80fd\uff0c\u4e5f\u53ef\u4ee5\u914d\u7f6e\u4e3b\u8282\u70b9\u5199\u5165\u5b8c\u6210\u5373\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002\u5728\u5bb9\u91cf\u53ef\u6269\u5c55\u65b9\u9762\uff0c\u53ef\u4ee5\u91c7\u7528\u5206\u7247\u673a\u5236\u89e3\u51b3\u5bb9\u91cf\u6a2a\u5411\u4f38\u7f29\u7684\u95ee\u9898\uff0c\u5c06\u6570\u636e\u5206\u5230\u4e0d\u540c\u8282\u70b9\u7684\u4e0d\u540c\u5206\u7247\u4e0a\uff0c\u5982\u679c\u8981\u8c03\u6574\u5206\u7247\uff0c\u9700\u8981reindex\u3002<\/p>\n

            \u5728\u6027\u80fd\u65b9\u9762\uff0c\u901a\u8fc7\u591a\u526f\u672c\u96c6\u8282\u70b9\u5206\u62c5\u67e5\u8be2\u538b\u529b\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e13\u95e8\u7684Transport\u8282\u70b9\u5206\u62c5date Node\u8282\u70b9\u7684\u538b\u529b\uff0c\u5c06\u5206\u7247\u67e5\u8be2\uff0c\u526f\u672c\u67e5\u8be2\u7b49\u8def\u7531\u548c\u5408\u5e76\u52a8\u4f5c\u7684\u7ed3\u679c\u6c47\u603b\u8d77\u6765\u3002Elasticseach\u662fELK\u89e3\u51b3\u65b9\u6848\u7684\u4e00\u90e8\u5206\uff0c\u5176\u8fd8\u5305\u62ec\u5f88\u591a\u670d\u52a1\uff0c\u5305\u62ecFilebat\uff0cKibana\uff0cLogstash\uff0c\u5728\u5927\u6570\u636e\u9886\u57df\u4e5f\u662f\u5f88\u597d\u7684\u4e00\u4e2a\u65b9\u5411\u3002Elasticseach\u662f\u5728ELK\u4e0a\u642d\u5efa\u7684\u4e09\u8282\u70b9\u670d\u52a1\uff0c\u7531\u4e8e\u89c4\u6a21\u95ee\u9898\uff0c\u76ee\u524d\u4e5f\u5f88\u5c11\u4f7f\u7528\u5206\u7247\u6280\u672f\u3002\u6838\u5fc3\u662f\u6587\u7ae0\u5927\u5bbd\u8868\uff0c\u7528\u6237\u5927\u5bbd\u8868\u3002\u7ed3\u5408\u4e86\u641c\u7d22\u573a\u666f\u548c\u5206\u6790\u573a\u666f\uff0c\u901a\u8fc7Binlog+Canal+Kafka+Go\u670d\u52a1\u5c06MySQL\u591a\u4e2a\u8868\u6c47\u603b\u5230\u4e00\u4e2a\u5927\u5bbd\u8868\uff0c\u4e3b\u8981\u662f\u6587\u7ae0\u4fe1\u606f\u7684\u5927\u5bbd\u8868\uff0c\u4e00\u65b9\u9762\u662f\u6ee1\u8db3\u641c\u7d22\u573a\u666f\uff0c\u53e6\u5916\u6ee1\u8db3\u7b56\u7565\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n

            \u73b0\u5728\u5927\u5bbd\u8868\u7684\u5e94\u7528\u6a21\u5f0f\u975e\u5e38\u591a\uff0c\u57fa\u4e8eFree Schema\u6a21\u5f0f\uff0c\u67e5\u8be2\u6a21\u5f0f\u975e\u5e38\u7075\u6d3b\uff0c\u901a\u8fc7\u8ba2\u9605\u65b9\u5f0f\u540c\u6b65\u6570\u636e\uff0c\u4e5f\u51cf\u8f7b\u4e86\u5e94\u7528\u5c42\u7684\u8d1f\u62c5\uff0c\u6570\u636e\u6b63\u786e\u6027\u6709\u5f88\u5927\u7684\u4fdd\u969c\u3002\u672a\u6765\uff0c\u5bf9\u4e8eElasticseach\u7684\u5e94\u7528\uff0c\u4e00\u65b9\u9762\u8981\u52a0\u5f3a\u6027\u80fd\u8c03\u4f18\uff0c\u6bd4\u5982\u5206\u7247\u6570\u636e\u7684\u4e0d\u5747\u5300\uff0c\u67e5\u8be2\u6027\u80fd\u7684\u4f18\u5316\uff0c\u540c\u65f6\u8981\u63d0\u5347\u53ef\u7ef4\u62a4\u6027\uff0c\u6bd4\u5982\u6316\u6398reindex\u3001alias\u7b49\u529f\u80fd\uff0c\u5145\u5206\u7406\u89e3Elasticseach\u3002\u800c\u5728\u56fd\u5185\u7684\u4e91\u5382\u5546\u4e2d\uff0c\u90fd\u6ca1\u6709\u5bf9Elasticseach\u505a\u592a\u5927\u7684\u5347\u7ea7\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u5c06Elasticseach\u670d\u52a1\u6258\u7ba1\u5230\u4e91\u4e2d\u3002<\/p>\n

            Kakfa<\/strong><\/div>\n

            Kakfa\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7684\u9ad8\u541e\u5410\u6d88\u606f\u961f\u5217\uff0c\u8ba2\u9605\/\u6d88\u8d39\u6a21\u5f0f\u8ffd\u6c42\u7684\u662f\u9ad8\u6027\u80fd\uff0c\u800c\u975e\u5b58\u50a8\u5bb9\u91cf\u3002\u4f46\u5176\u65e5\u5fd7\u672c\u8eab\u5177\u6709\u91cd\u653e\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u5206\u5e03\u5f0f\u5b58\u50a8\u7cfb\u7edf\u3002<\/p>\n

            Kafka\u7684\u6838\u5fc3\u529f\u80fd\u5305\u62ec\uff1a\u89e3\u8026\u3001\u6d88\u5cf0\u3001\u7f13\u5b58\uff0c\u5e94\u7528\u573a\u666f\u6781\u4e3a\u5e7f\u6cdb\uff0c\u662f\u7cfb\u7edf\u4e0d\u53ef\u7f3a\u5c11\u7684\u4e00\u4e2a\u7ec4\u4ef6\u3002\u4f5c\u4e3a\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u5b83\u4e5f\u6709\u526f\u672c\u548c\u5206\u533a\u673a\u5236\uff0c\u4ece\u800c\u4fdd\u969c\u9ad8\u53ef\u7528\u548c\u9ad8\u541e\u5410\u3002\u901a\u8fc7segment\u987a\u5e8f\u5199\uff0c\u4fdd\u969c\u4e86\u5199\u6027\u80fd\u975e\u5e38\u9ad8\uff0c\u800c\u57fa\u4e8e\u6d88\u8d39\u7ec4\u7ec4\u7684\u6982\u5ff5\uff0c\u6d88\u8d39\u8005\u541e\u5410\u80fd\u529b\u4e5f\u80fd\u6a2a\u5411\u6269\u5c55\u3002\u540c\u65f6\u6bcf\u4e2abroker\u90fd\u80fd\u8d1f\u8d23\u67e5\u8be2\uff0c\u63d0\u5347\u4e86\u541e\u5410\u80fd\u529b\u3002Kafka\u57fa\u4e8eZookeeper\u505a\u5f88\u591a\u5206\u5e03\u5f0f\u7ba1\u7406\u529f\u80fd\uff0c\u5305\u62ecLeader\u9009\u4e3e\uff0c\u8d1f\u8f7d\u5747\u8861\uff0cMeta\u5b58\u50a8\u3002\u76ee\u524dKafka\u4e09\u8282\u70b9\u96c6\u7fa4\u662f\u901a\u8fc7ECS\u81ea\u884c\u642d\u5efa\u7684\uff0c\u8fd0\u884c\u8fd1\u4e00\u5e74\uff0c\u670d\u52a1\u76f8\u5bf9\u7a33\u5b9a\uff0c\u53ef\u7ef4\u62a4\u6027\u4e5f\u8f83\u597d\uff0c\u6ca1\u6709\u592a\u591a\u7684\u7ba1\u7406\u5de5\u4f5c\uff0c\u5f88\u591a\u6838\u5fc3\u670d\u52a1\u90fd\u5df2\u7ecf\u4f7f\u7528\u4e86Kafka\u961f\u5217\uff0c\u540e\u7eed\u539f\u6709\u57fa\u4e8eRedis\u7684\u961f\u5217\u4e5f\u53ef\u4ee5\u5c3d\u5feb\u8fc1\u79fb\u3002<\/p>\n

            MongoDB<\/strong><\/div>\n

            MongoDB\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7684\u6587\u6863\u6570\u636e\u5e93\uff0c\u5176\u76ee\u6807\u662f\u4e00\u4e2a\u652f\u6301ACID\u4e8b\u52a1\u7684\u5206\u5e03\u5f0f\u6570\u636e\u5e93\uff0c\u56e0\u4e3a\u662f\u9762\u5411\u6587\u6863\uff0c\u6240\u4ee5\u6a21\u5f0f\u975e\u5e38\u7075\u6d3b\uff0c\u7ed3\u6784\u677e\u6563\uff0c\u4f7f\u7528\u573a\u666f\u5f88\u89c4\u8303\uff0c\u76f8\u6bd4MySQL\uff0c\u5176\u4e8c\u8fdb\u5236\u7684\u5b58\u50a8\u6a21\u5f0f\uff0c\u538b\u7f29\u6bd4\u975e\u5e38\u9ad8\uff0c\u5b58\u50a8\u6210\u672c\u4f1a\u5927\u5e45\u51cf\u5c11\uff0c\u540c\u65f6\u57fa\u4e8eWiredTiger\u5f15\u64ce\uff0c\u80fd\u591f\u521b\u5efa\u5404\u79cd\u7c7b\u578b\u7684\u7d22\u5f15\uff0c\u751a\u81f3\u5b50\u6587\u6863\u4e5f\u80fd\u521b\u5efa\u7d22\u5f15\uff0c\u4ece\u800c\u63d0\u5347\u67e5\u8be2\u6027\u80fd<\/p>\n

            MongoDB\u901a\u8fc7oplog\u6280\u672f\u652f\u6301\u526f\u672c\u96c6\uff0c\u4e5f\u652f\u6301\u5206\u533a\uff0c\u5206\u533a\u952e\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u56e0\u4e3a\u6709\u4e86\u5206\u533a\uff0c\u6240\u4ee5\u989d\u5916\u6709\u4e86mongos\u8def\u7531\u670d\u52a1\u5668\uff0cconfig\u670d\u52a1\u5668\uff0cmongos\u8def\u7531\u670d\u52a1\u5668\u901a\u8fc7\u67e5\u8be2config\u670d\u52a1\u5668\uff0c\u5411\u8282\u70b9\u548c\u5206\u533a\u53d1\u9001\u670d\u52a1\u3002MongoDB\u5c06\u4e00\u81f4\u6027\u548c\u6027\u80fd\u8bc9\u6c42\u4ea4\u7ed9\u4e86\u5ba2\u6237\u7aef\uff0c\u901a\u8fc7read concern\u3001write concern\u3001read perference\u6280\u672f\u63d0\u4f9b\u591a\u79cd\u7075\u6d3b\u6027\uff0c\u6bd4\u5982\u4f60\u8981\u6c42\u5f3a\u4e00\u81f4\u6027\uff0c\u90a3\u4e48\u5c31\u91c7\u7528majority\uff0c\u4f60\u8981\u6c42\u6570\u636e\u6c38\u8fdc\u4e0d\u4e22\u5931\u5c31\u914d\u7f6ejournal\u4e3a\u771f\u3002MongoDB 4.0\u548cMongoDB 4.2\u652f\u6301\u591a\u6587\u6863\u7684\u4e8b\u52a1\uff0c\u5206\u522b\u652f\u6301\u590d\u5236\u96c6\u3001\u5206\u533a\u7ef4\u5ea6\u7684\u4e8b\u52a1\u6027\uff0c\u4f46\u4f7f\u7528\u548c\u7406\u89e3\u975e\u5e38\u590d\u6742\uff0c\u53ef\u80fd\u662f\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u6700\u96be\u5b66\u4e60\u7684\u90e8\u5206\u3002<\/p>\n

            \u8fd9\u6837\u8bf4\u660e\uff0c\u4e0d\u7528\u523b\u610f\u4f7f\u7528\u4e8b\u52a1\uff0c\u5bf9MongoDB\u8fdb\u884c\u826f\u597d\u7684\u5efa\u6a21\uff0c\u505aOLTP\u5173\u7cfb\u6570\u636e\u7684\u8865\u5145\uff0c\u5176\u5728\u6027\u80fd\u3001\u6210\u672c\u3001\u9ad8\u53ef\u7528\u3001\u4f38\u7f29\u6027\u65b9\u9762\u662f\u6709\u4f18\u52bf\u7684\u3002\u5176\u5b9e\u5728MySQL\u4e2d\uff0c\u76ee\u524d\u6211\u4eec\u4e5f\u5f88\u5c11\u4f7f\u7528\u8de8\u8868\uff0c\u8de8\u8bed\u53e5\u7684\u4e8b\u52a1\uff0c\u6240\u4ee5\u4e0d\u8981\u592a\u8ff7\u4fe1\u4e8b\u52a1\uff0c\u9009\u62e9\u597d\u5e94\u7528\u573a\u666f\u3002\u9664\u4e86\u67e5\u8be2\uff0cMongoDB\u4e5f\u652f\u6301\u5404\u79cd\u805a\u5408\u64cd\u4f5c\uff0c\u5728\u5206\u6790\u9886\u57df\u4e5f\u5f88\u6709\u5e7f\u6cdb\u7684\u4f7f\u7528\u573a\u666f\uff0c\u8fd9\u4e00\u70b9\u548cElasticseach\u5f88\u7c7b\u4f3c\u3002<\/p>\n

            \u76ee\u524dMongoDB\u4e09\u8282\u70b9\u96c6\u7fa4\u662f\u901a\u8fc7ECS\u81ea\u884c\u642d\u5efa\u7684\uff0c\u5b58\u50a8\u89c4\u6a21\u8f83\u5c0f\uff0c\u4f7f\u7528\u573a\u666f\u8f83\u5c11\u3002\u5bf9\u6bd4MySQL\u548cElasticseach\uff0cMongoDB\u8fd8\u662f\u6709\u5f88\u5e7f\u6cdb\u7684\u5e94\u7528\u573a\u666f\uff0c\u6bd4\u5982\u5206\u6790\u573a\u666f\uff0c\u5bf9\u4e8b\u52a1\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\uff0c\u6570\u636e\u589e\u957f\u6bd4\u8f83\u5927\u7684\u573a\u666f\uff08\u6bd4\u5982\u79c1\u4fe1\u6570\u636e\uff09\uff0c\u4e1a\u52a1\u6a21\u5f0f\u6bd4\u8f83\u7075\u6d3b\u7684\u573a\u666f\uff08\u6bd4\u5982\u5404\u79cd\u6761\u4ef6\u7684\u67e5\u8be2\uff0c\u805a\u5408\u64cd\u4f5c\uff09\u3002\u4e0d\u8fc7\u548cElasticseach\u4e00\u6837\uff0c\u5404\u5927\u4e91\u5382\u5546\u4e00\u6837\uff0c\u53ea\u662f\u5c06\u8fd9\u4e2a\u670d\u52a1\u6258\u7ba1\u5230\u4e91\uff0c\u5e76\u6ca1\u6709\u505a\u592a\u591a\u7684\u4f18\u5316\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

            \u6570\u636e\u5b58\u50a8\u8d44\u6e90\u662f\u7cfb\u7edf\u4e2d\u6700\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\uff0c\u6570\u636e\u5373\u4e00\u5207\uff0c\u5c24\u5176\u5206\u5e03\u5f0f\u9886\u57df\uff0c\u4e3b\u8981\u5173\u6ce8\u4ee5\u4e0b\u51e0\u70b9\uff1a \u9ad8\u53ef\u7528\u6027\uff0c\u5f53\u9047\u5230\u7f51\u7edc\u6216\u8005 […]<\/p>\n","protected":false},"author":643,"featured_media":253237,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-253229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/253229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=253229"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/253229\/revisions"}],"predecessor-version":[{"id":253468,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/253229\/revisions\/253468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/253237"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=253229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=253229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=253229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}