{"id":92227,"date":"2021-11-08T22:18:02","date_gmt":"2021-11-08T14:18:02","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=92227"},"modified":"2021-11-08T22:19:57","modified_gmt":"2021-11-08T14:19:57","slug":"073d5a7b08","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=92227","title":{"rendered":"\u3010\u5206\u5e03\u5f0f\u7cfb\u7edf\u3011\u552f\u4e00ID\u751f\u6210\u7b56\u7565\u603b\u7ed3"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<section style=\"line-height: 2em;\"><strong><span style=\"font-size: 20px;\">\u6587\u7ae0\u76ee\u5f55<\/span><\/strong><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u5168\u5c40\u552f\u4e00id\u4ecb\u7ecd<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 \u5168\u5c40\u552f\u4e00id\u7279\u70b9:<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u5e38\u89c1\u5168\u5c40\u552f\u4e00id\u751f\u6210\u7b56\u7565<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 1\u3001\u6570\u636e\u5e93\u81ea\u589e\u957f\u5e8f\u5217\u6216\u5b57\u6bb5\u751f\u6210id<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 2\u3001UUID<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 3\u3001Redis\u751f\u6210ID<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 4\u3001zookeeper\u751f\u6210ID<\/span><\/section>\n<section style=\"margin-left: 16px; margin-right: 16px; line-height: 2em;\"><span style=\"font-size: 14px;\">\u00a0 \u00a0 5\u3001Twitter\u7684snowflake\u7b97\u6cd5<\/span><\/section>\n<section style=\"line-height: 2em; margin-top: 20px; margin-bottom: 15px;\"><span style=\"font-size: 20px;\"><strong>\u5168\u5c40\u552f\u4e00id\u4ecb\u7ecd<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u7cfb\u7edf\u552f\u4e00id\u662f\u6211\u4eec\u5728\u8bbe\u8ba1\u9636\u6bb5\u5e38\u5e38\u9047\u5230\u7684\u95ee\u9898\u3002\u5728\u590d\u6742\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u51e0\u4e4e\u90fd\u9700\u8981\u5bf9\u5927\u91cf\u7684\u6570\u636e\u548c\u6d88\u606f\u8fdb\u884c\u552f\u4e00\u6807\u8bc6\u3002\u5728\u8bbe\u8ba1\u521d\u671f\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651\u65e5\u540e\u6570\u636e\u91cf\u7684\u7ea7\u522b\uff0c\u5982\u679c\u53ef\u80fd\u4f1a\u5bf9\u6570\u636e\u8fdb\u884c\u5206\u5e93\u5206\u8868\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u6709\u4e00\u4e2a\u5168\u5c40\u552f\u4e00id\u6765\u6807\u8bc6\u4e00\u6761\u6570\u636e\u6216\u8bb0\u5f55\u3002\u751f\u6210\u552f\u4e00id\u7684\u7b56\u7565\u6709\u591a\u79cd\uff0c\u4f46\u662f\u6bcf\u79cd\u7b56\u7565\u90fd\u6709\u5b83\u7684\u9002\u7528\u573a\u666f\u3001\u4f18\u70b9\u4ee5\u53ca\u5c40\u9650\u6027\u3002<\/section>\n<section style=\"line-height: 2em; margin-top: 10px; margin-bottom: 10px;\"><strong><span style=\"font-size: 18px;\">\u00a0 \u00a0 \u5168\u5c40\u552f\u4e00id\u7279\u70b9:<\/span><\/strong><\/section>\n<section style=\"line-height: 2em;\">\u5168\u5c40\u552f\u4e00\u6027\uff1a\u4e0d\u80fd\u51fa\u73b0\u91cd\u590d\u7684ID\u53f7\uff0c\u65e2\u7136\u662f\u552f\u4e00\u6807\u8bc6\uff0c\u8fd9\u662f\u6700\u57fa\u672c\u7684\u8981\u6c42\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u8d8b\u52bf\u9012\u589e\uff1a\u5728MySQL InnoDB\u5f15\u64ce\u4e2d\u4f7f\u7528\u7684\u662f\u805a\u96c6\u7d22\u5f15\uff0c\u7531\u4e8e\u591a\u6570RDBMS\u4f7f\u7528B-tree\u7684\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u7d22\u5f15\u6570\u636e\uff0c\u5728\u4e3b\u952e\u7684\u9009\u62e9\u4e0a\u9762\u6211\u4eec\u5e94\u8be5\u5c3d\u91cf\u4f7f\u7528\u6709\u5e8f\u7684\u4e3b\u952e\u4fdd\u8bc1\u5199\u5165\u6027\u80fd\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u5355\u8c03\u9012\u589e\uff1a\u4fdd\u8bc1\u4e0b\u4e00\u4e2aID\u4e00\u5b9a\u5927\u4e8e\u4e0a\u4e00\u4e2aID\uff0c\u4f8b\u5982\u4e8b\u52a1\u7248\u672c\u53f7\u3001IM\u589e\u91cf\u6d88\u606f\u3001\u6392\u5e8f\u7b49\u7279\u6b8a\u9700\u6c42\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u4fe1\u606f\u5b89\u5168\uff1a\u5982\u679cID\u662f\u8fde\u7eed\u7684\uff0c\u6076\u610f\u7528\u6237\u7684\u6252\u53d6\u5de5\u4f5c\u5c31\u975e\u5e38\u5bb9\u6613\u505a\u4e86\uff0c\u76f4\u63a5\u6309\u7167\u987a\u5e8f\u4e0b\u8f7d\u6307\u5b9aURL\u5373\u53ef\uff1b\u5982\u679c\u662f\u8ba2\u5355\u53f7\u5c31\u66f4\u5371\u9669\u4e86\uff0c\u7ade\u5bf9\u53ef\u4ee5\u76f4\u63a5\u77e5\u9053\u6211\u4eec\u4e00\u5929\u7684\u5355\u91cf\u3002\u6240\u4ee5\u5728\u4e00\u4e9b\u5e94\u7528\u573a\u666f\u4e0b\uff0c\u4f1a\u9700\u8981ID\u65e0\u89c4\u5219\u3001\u4e0d\u89c4\u5219\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u9ad8\u53ef\u7528\u6027\uff1a\u540c\u65f6\u9664\u4e86\u5bf9ID\u53f7\u7801\u81ea\u8eab\u7684\u8981\u6c42\uff0c\u4e1a\u52a1\u8fd8\u5bf9ID\u53f7\u751f\u6210\u7cfb\u7edf\u7684\u53ef\u7528\u6027\u8981\u6c42\u6781\u9ad8\uff0c\u60f3\u8c61\u4e00\u4e0b\uff0c\u5982\u679cID\u751f\u6210\u7cfb\u7edf\u762b\u75ea\uff0c\u8fd9\u5c31\u4f1a\u5e26\u6765\u4e00\u573a\u707e\u96be\u3002\u6240\u4ee5\u4e0d\u80fd\u6709\u5355\u70b9\u6545\u969c\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u5206\u7247\u652f\u6301\uff1a\u53ef\u4ee5\u63a7\u5236ShardingId\u3002\u6bd4\u5982\u67d0\u4e00\u4e2a\u7528\u6237\u7684\u6587\u7ae0\u8981\u653e\u5728\u540c\u4e00\u4e2a\u5206\u7247\u5185\uff0c\u8fd9\u6837\u67e5\u8be2\u6548\u7387\u9ad8\uff0c\u4fee\u6539\u4e5f\u5bb9\u6613\uff1b<\/section>\n<section style=\"line-height: 2em;\">\u957f\u5ea6\u9002\u4e2d\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\"><span style=\"font-size: 20px;\"><strong>\u5e38\u89c1\u5168\u5c40\u552f\u4e00id\u751f\u6210\u7b56\u7565<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\"><span style=\"font-size: 18px;\"><strong>\u00a0 \u00a0 1\u3001\u6570\u636e\u5e93\u81ea\u589e\u957f\u5e8f\u5217\u6216\u5b57\u6bb5\u751f\u6210id<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u6700\u5e38\u89c1\u7684\u4e00\u79cd\u751f\u6210id\u65b9\u5f0f\u3002\u5229\u7528\u6570\u636e\u5e93\u672c\u8eab\u6765\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5728\u5168\u6570\u636e\u5e93\u5185\u4fdd\u6301\u552f\u4e00\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u4f18\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u975e\u5e38\u7b80\u5355\u3002\u5229\u7528\u73b0\u6709\u6570\u636e\u5e93\u7cfb\u7edf\u7684\u529f\u80fd\u5b9e\u73b0\uff0c\u6210\u672c\u5c0f\uff0c\u4ee3\u7801\u7b80\u5355\uff0c\u6027\u80fd\u53ef\u4ee5\u63a5\u53d7\u3002<\/section>\n<section style=\"line-height: 2em;\">ID\u53f7\u5355\u8c03\u9012\u589e\u3002\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e9b\u5bf9ID\u6709\u7279\u6b8a\u8981\u6c42\u7684\u4e1a\u52a1\uff0c\u6bd4\u5982\u5bf9\u5206\u9875\u6216\u8005\u6392\u5e8f\u7ed3\u679c\u8fd9\u7c7b\u9700\u6c42\u6709\u5e2e\u52a9\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u7f3a\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 1. \u5f3a\u4f9d\u8d56DB\u3002\u4e0d\u540c\u6570\u636e\u5e93\u8bed\u6cd5\u548c\u5b9e\u73b0\u4e0d\u540c\uff0c\u6570\u636e\u5e93\u8fc1\u79fb\u7684\u65f6\u5019\u3001\u591a\u6570\u636e\u5e93\u7248\u672c\u652f\u6301\u7684\u65f6\u5019\u3001\u6216\u5206\u8868\u5206\u5e93\u7684\u65f6\u5019\u9700\u8981\u5904\u7406\uff0c\u4f1a\u6bd4\u8f83\u9ebb\u70e6\u3002\u5f53DB\u5f02\u5e38\u65f6\u6574\u4e2a\u7cfb\u7edf\u4e0d\u53ef\u7528\uff0c\u5c5e\u4e8e\u81f4\u547d\u95ee\u9898\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 2. \u5355\u70b9\u6545\u969c\u3002\u5728\u5355\u4e2a\u6570\u636e\u5e93\u6216\u8bfb\u5199\u5206\u79bb\u6216\u4e00\u4e3b\u591a\u4ece\u7684\u60c5\u51b5\u4e0b\uff0c\u53ea\u6709\u4e00\u4e2a\u4e3b\u5e93\u53ef\u4ee5\u751f\u6210\u3002\u6709\u5355\u70b9\u6545\u969c\u7684\u98ce\u9669\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 3. \u6570\u636e\u4e00\u81f4\u6027\u95ee\u9898\u3002\u914d\u7f6e\u4e3b\u4ece\u590d\u5236\u53ef\u4ee5\u5c3d\u53ef\u80fd\u7684\u589e\u52a0\u53ef\u7528\u6027\uff0c\u4f46\u662f\u6570\u636e\u4e00\u81f4\u6027\u5728\u7279\u6b8a\u60c5\u51b5\u4e0b\u96be\u4ee5\u4fdd\u8bc1\u3002\u4e3b\u4ece\u5207\u6362\u65f6\u7684\u4e0d\u4e00\u81f4\u53ef\u80fd\u4f1a\u5bfc\u81f4\u91cd\u590d\u53d1\u53f7\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 4. \u96be\u4e8e\u6269\u5c55\u3002\u5728\u6027\u80fd\u8fbe\u4e0d\u5230\u8981\u6c42\u7684\u60c5\u51b5\u4e0b\uff0c\u6bd4\u8f83\u96be\u4e8e\u6269\u5c55\u3002ID\u53d1\u53f7\u6027\u80fd\u74f6\u9888\u9650\u5236\u5728\u5355\u53f0MySQL\u7684\u8bfb\u5199\u6027\u80fd\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u90e8\u5206\u4f18\u5316\u65b9\u6848\u3011<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u9488\u5bf9\u4e3b\u5e93\u5355\u70b9\uff0c \u5982\u679c\u6709\u591a\u4e2aMaster\u5e93\uff0c\u5219\u6bcf\u4e2aMaster\u5e93\u8bbe\u7f6e\u7684\u8d77\u59cb\u6570\u5b57\u4e0d\u4e00\u6837\uff0c\u6b65\u957f\u4e00\u6837\uff0c\u53ef\u4ee5\u662fMaster\u7684\u4e2a\u6570\u3002\u6bd4\u5982\uff1aMaster1 \u751f\u6210\u7684\u662f 1\uff0c4\uff0c7\uff0c10\uff0cMaster2\u751f\u6210\u7684\u662f2,5,8,11 Master3\u751f\u6210\u7684\u662f 3,6,9,12\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u6709\u6548\u751f\u6210\u96c6\u7fa4\u4e2d\u7684\u552f\u4e00ID\uff0c\u4e5f\u53ef\u4ee5\u5927\u5927\u964d\u4f4eID\u751f\u6210\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u8d1f\u8f7d\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\"><span style=\"font-size: 18px;\"><strong>\u00a0 \u00a0 2\u3001UUID<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u5e38\u89c1\u7684\u751f\u6210id\u65b9\u5f0f\uff0c\u5229\u7528\u7a0b\u5e8f\u751f\u6210\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 UUID (Universally Unique Identifier) \u7684\u76ee\u7684\uff0c\u662f\u8ba9\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u5143\u7d20\uff0c\u90fd\u80fd\u6709\u552f\u4e00\u7684\u8fa8\u8bc6\u8d44\u8baf\uff0c\u800c\u4e0d\u9700\u8981\u900f\u8fc7\u4e2d\u592e\u63a7\u5236\u7aef\u6765\u505a\u8fa8\u8bc6\u8d44\u8baf\u7684\u6307\u5b9a\u3002\u5982\u6b64\u4e00\u6765\uff0c\u6bcf\u4e2a\u4eba\u90fd\u53ef\u4ee5\u5efa\u7acb\u4e0d\u4e0e\u5176\u5b83\u4eba\u51b2\u7a81\u7684 UUID\u3002\u5728\u8fd9\u6837\u7684\u60c5\u51b5\u4e0b\uff0c\u5c31\u4e0d\u9700\u8003\u8651\u6570\u636e\u5e93\u5efa\u7acb\u65f6\u7684\u540d\u79f0\u91cd\u590d\u95ee\u9898\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 UUID\u7684\u6807\u51c6\u5f62\u5f0f\u5305\u542b32\u4e2a16\u8fdb\u5236\u6570\u5b57\uff0c\u4ee5\u8fde\u5b57\u53f7\u5206\u4e3a\u4e94\u6bb5\uff0c\u5f62\u5f0f\u4e3a8-4-4-4-12\u768436\u4e2a\u5b57\u7b26\uff0c\u793a\u4f8b\uff1a550e8400-e29b-41d4-a716-446655440000\uff0c\u5230\u76ee\u524d\u4e3a\u6b62\u4e1a\u754c\u4e00\u5171\u67095\u79cd\u65b9\u5f0f\u751f\u6210UUID\uff0c\u8be6\u60c5\u89c1IETF\u53d1\u5e03\u7684UUID\u89c4\u8303 A Universally Unique IDentifier (UUID) URN Namespace\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0\u5728Java\u4e2d\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u4e0b\u9762\u7684API\u751f\u6210UUID:<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">UUID uuid  =  UUID.randomUUID(); String s = UUID.randomUUID().toString();<\/span><\/code><\/pre>\n<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u4f18\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u975e\u5e38\u7b80\u5355\uff0c\u672c\u5730\u751f\u6210\uff0c\u4ee3\u7801\u65b9\u4fbf\uff0cAPI\u8c03\u7528\u65b9\u4fbf\u3002<\/section>\n<section style=\"line-height: 2em;\">\u6027\u80fd\u975e\u9ad8\u3002\u751f\u6210\u7684id\u6027\u80fd\u975e\u5e38\u597d\uff0c\u6ca1\u6709\u7f51\u7edc\u6d88\u8017\uff0c\u57fa\u672c\u4e0d\u4f1a\u6709\u6027\u80fd\u95ee\u9898\u3002<\/section>\n<section style=\"line-height: 2em;\">\u5168\u7403\u552f\u4e00\u3002\u5728\u6570\u636e\u5e93\u8fc1\u79fb\u3001\u7cfb\u7edf\u6570\u636e\u5408\u5e76\u3001\u6216\u8005\u6570\u636e\u5e93\u53d8\u66f4\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5 \u4ece\u5bb9\u5e94\u5bf9\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u7f3a\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u5b58\u50a8\u6210\u672c\u9ad8\u3002UUID\u592a\u957f\uff0c16\u5b57\u8282128\u4f4d\uff0c\u901a\u5e38\u4ee536\u957f\u5ea6\u7684\u5b57\u7b26\u4e32\u8868\u793a\uff0c\u5f88\u591a\u573a\u666f\u4e0d\u9002\u7528\u3002\u5982\u679c\u662f\u6d77\u91cf\u6570\u636e\u5e93\uff0c\u5c31\u9700\u8981\u8003\u8651\u5b58\u50a8\u91cf\u7684\u95ee\u9898\u3002<\/section>\n<section style=\"line-height: 2em;\">\u4fe1\u606f\u4e0d\u5b89\u5168\u3002\u57fa\u4e8eMAC\u5730\u5740\u751f\u6210UUID\u7684\u7b97\u6cd5\u53ef\u80fd\u4f1a\u9020\u6210MAC\u5730\u5740\u6cc4\u9732\uff0c\u8fd9\u4e2a\u6f0f\u6d1e\u66fe\u88ab\u7528\u4e8e\u5bfb\u627e\u6885\u4e3d\u838e\u75c5\u6bd2\u7684\u5236\u4f5c\u8005\u4f4d\u7f6e\u3002<\/section>\n<section style=\"line-height: 2em;\">\u4e0d\u9002\u7528\u4f5c\u4e3a\u4e3b\u952e\uff0cID\u4f5c\u4e3a\u4e3b\u952e\u65f6\u5728\u7279\u5b9a\u7684\u73af\u5883\u4f1a\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u505aDB\u4e3b\u952e\u7684\u573a\u666f\u4e0b\uff0cUUID\u5c31\u975e\u5e38\u4e0d\u9002\u7528\u3002UUID\u5f80\u5f80\u662f\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\uff0c\u67e5\u8be2\u7684\u6548\u7387\u6bd4\u8f83\u4f4e\u3002<\/section>\n<section style=\"line-height: 2em;\">UUID\u662f\u65e0\u5e8f\u7684\u3002\u4e0d\u662f\u5355\u8c03\u9012\u589e\u7684\uff0c\u800c\u73b0\u9636\u6bb5\u4e3b\u6d41\u7684\u6570\u636e\u5e93\u4e3b\u952e\u7d22\u5f15\u90fd\u662f\u9009\u7528\u7684B+\u6811\u7d22\u5f15\uff0c\u5bf9\u4e8e\u65e0\u5e8f\u957f\u5ea6\u8fc7\u957f\u7684\u4e3b\u952e\u63d2\u5165\u6548\u7387\u6bd4\u8f83\u4f4e\u3002<\/section>\n<section style=\"line-height: 2em;\">\u4f20\u8f93\u6570\u636e\u91cf\u5927\u3002<\/section>\n<section style=\"line-height: 2em;\">\u4e0d\u53ef\u8bfb\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u90e8\u5206\u4f18\u5316\u65b9\u6848\u3011<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u4e3a\u4e86\u89e3\u51b3UUID\u4e0d\u53ef\u8bfb\uff0c \u53ef\u4ee5\u4f7f\u7528UUID to Int64\u7684\u65b9\u6cd5 \u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u4e3a\u4e86\u89e3\u51b3UUID\u65e0\u5e8f\u7684\u95ee\u9898\uff0c NHibernate\u5728\u5176\u4e3b\u952e\u751f\u6210\u65b9\u5f0f\u4e2d\u63d0\u4f9b\u4e86Comb\u7b97\u6cd5\uff08combined guid\/timestamp\uff09\u3002\u4fdd\u7559GUID\u768410\u4e2a\u5b57\u8282\uff0c\u7528\u53e66\u4e2a\u5b57\u8282\u8868\u793aGUID\u751f\u6210\u7684\u65f6\u95f4\uff08DateTime\uff09\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0<span style=\"font-size: 18px;\"><strong> \u00a0 3\u3001Redis\u751f\u6210ID<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u5f53\u4f7f\u7528\u6570\u636e\u5e93\u6765\u751f\u6210ID\u6027\u80fd\u4e0d\u591f\u8981\u6c42\u7684\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528Redis\u6765\u751f\u6210ID\u3002\u8fd9\u4e3b\u8981\u4f9d\u8d56\u4e8eRedis\u662f\u5355\u7ebf\u7a0b\u7684\uff0c\u6240\u4ee5\u4e5f\u53ef\u4ee5\u7528\u751f\u6210\u5168\u5c40\u552f\u4e00\u7684ID\u3002\u53ef\u4ee5\u7528Redis\u7684\u539f\u5b50\u64cd\u4f5c INCR\u548cINCRBY\u6765\u5b9e\u73b0\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u53ef\u4ee5\u4f7f\u7528Redis\u96c6\u7fa4\u6765\u83b7\u53d6\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u3002\u5047\u5982\u4e00\u4e2a\u96c6\u7fa4\u4e2d\u67095\u53f0Redis\u3002\u53ef\u4ee5\u521d\u59cb\u5316\u6bcf\u53f0Redis\u7684\u503c\u5206\u522b\u662f1,2,3,4,5\uff0c\u7136\u540e\u6b65\u957f\u90fd\u662f5\u3002\u5404\u4e2aRedis\u751f\u6210\u7684ID\u4e3a\uff1a<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">A\uff1a1,6,11,16,21<\/span><\/code><code><span class=\"code-snippet_outer\">B\uff1a2,7,12,17,22<\/span><\/code><code><span class=\"code-snippet_outer\">C\uff1a3,8,13,18,23<\/span><\/code><code><span class=\"code-snippet_outer\">D\uff1a4,9,14,19,24<\/span><\/code><code><span class=\"code-snippet_outer\">E\uff1a5,10,15,20,25<\/span><\/code><\/pre>\n<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u8fd9\u4e2a\u8d1f\u8f7d\u5230\u54ea\u53f0\u673a\u5668\u4e0a\u9700\u8981\u63d0\u524d\u8bbe\u5b9a\u597d\uff0c\u672a\u6765\u5f88\u96be\u505a\u4fee\u6539\u3002\u4f46\u662f3-5\u53f0\u670d\u52a1\u5668\u57fa\u672c\u80fd\u591f\u6ee1\u8db3\uff0c\u90fd\u53ef\u4ee5\u83b7\u5f97\u4e0d\u540c\u7684ID\u3002\u6b65\u957f\u548c\u521d\u59cb\u503c\u4e00\u5b9a\u9700\u8981\u4e8b\u5148\u8bbe\u5b9a\u597d\u3002\u4f7f\u7528Redis\u96c6\u7fa4\u4e5f\u53ef\u4ee5\u9632\u6b62\u5355\u70b9\u6545\u969c\u7684\u95ee\u9898\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u6bd4\u8f83\u9002\u5408\u4f7f\u7528Redis\u6765\u751f\u6210\u65e5\u5207\u6d41\u6c34\u53f7\u3002\u6bd4\u5982\u8ba2\u5355\u53f7=\u65e5\u671f+\u5f53\u65e5\u81ea\u589e\u957f\u53f7\u3002\u53ef\u4ee5\u6bcf\u5929\u5728Redis\u4e2d\u751f\u6210\u4e00\u4e2aKey\uff0c\u4f7f\u7528INCR\u8fdb\u884c\u7d2f\u52a0\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u4f18\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u4e0d\u4f9d\u8d56\u4e8e\u6570\u636e\u5e93\uff0c\u7075\u6d3b\u65b9\u4fbf\uff0c\u4e14\u6027\u80fd\u4f18\u4e8e\u6570\u636e\u5e93\u3002\u3002<\/section>\n<section style=\"line-height: 2em;\">\u6570\u5b57ID\u5929\u7136\u6392\u5e8f\uff0c\u5bf9\u5206\u9875\u6216\u8005\u9700\u8981\u6392\u5e8f\u7684\u7ed3\u679c\u5f88\u6709\u5e2e\u52a9\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u7f3a\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u5982\u679c\u7cfb\u7edf\u4e2d\u6ca1\u6709Redis\uff0c\u8fd8\u9700\u8981\u5f15\u5165\u65b0\u7684\u7ec4\u4ef6\uff0c\u589e\u52a0\u7cfb\u7edf\u590d\u6742\u5ea6\u3002\u3002<\/section>\n<section style=\"line-height: 2em;\">\u9700\u8981\u7f16\u7801\u548c\u914d\u7f6e\u7684\u5de5\u4f5c\u91cf\u6bd4\u8f83\u5927\u3002<\/section>\n<section style=\"line-height: 2em;\">Redis\u5355\u70b9\u6545\u969c\uff0c\u5f71\u54cd\u5e8f\u5217\u670d\u52a1\u7684\u53ef\u7528\u6027\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\"><span style=\"font-size: 18px;\"><strong>\u00a0 \u00a0 4\u3001zookeeper\u751f\u6210ID<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 zookeeper\u4e3b\u8981\u901a\u8fc7\u5176znode\u6570\u636e\u7248\u672c\u6765\u751f\u6210\u5e8f\u5217\u53f7\uff0c\u53ef\u4ee5\u751f\u621032\u4f4d\u548c64\u4f4d\u7684\u6570\u636e\u7248\u672c\u53f7\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u7248\u672c\u53f7\u6765\u4f5c\u4e3a\u552f\u4e00\u7684\u5e8f\u5217\u53f7\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u5f88\u5c11\u4f1a\u4f7f\u7528zookeeper\u6765\u751f\u6210\u552f\u4e00ID\u3002\u4e3b\u8981\u662f\u7531\u4e8e\u9700\u8981\u4f9d\u8d56zookeeper\uff0c\u5e76\u4e14\u662f\u591a\u6b65\u8c03\u7528API\uff0c\u5982\u679c\u5728\u7ade\u4e89\u8f83\u5927\u7684\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u8003\u8651\u4f7f\u7528\u5206\u5e03\u5f0f\u9501\u3002\u56e0\u6b64\uff0c\u6027\u80fd\u5728\u9ad8\u5e76\u53d1\u7684\u5206\u5e03\u5f0f\u73af\u5883\u4e0b\uff0c\u4e5f\u4e0d\u751a\u7406\u60f3\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\"><span style=\"font-size: 18px;\"><strong>\u00a0 \u00a0 5\u3001Twitter\u7684snowflake\u7b97\u6cd5<\/strong><\/span><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 snowflake(\u96ea\u82b1\u7b97\u6cd5)\u662fTwitter\u5f00\u6e90\u7684\u5206\u5e03\u5f0fID\u751f\u6210\u7b97\u6cd5\uff0c\u7ed3\u679c\u662f\u4e00\u4e2along\u578b\u7684ID\u3002\u8fd9\u79cd\u65b9\u6848\u628a64-bit\u5206\u522b\u5212\u5206\u6210\u591a\u6bb5\uff0c\u5206\u5f00\u6765\u6807\u793a\u673a\u5668\u3001\u65f6\u95f4\u7b49\u3002\u5982\u56fe\uff1a<\/section>\n<section style=\"line-height: 2em;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" title=\"\u3010\u5206\u5e03\u5f0f\u7cfb\u7edf\u3011\u552f\u4e00ID\u751f\u6210\u7b56\u7565\u603b\u7ed3\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2021\/11\/9-1636381082.png\" alt=\"\u3010\u5206\u5e03\u5f0f\u7cfb\u7edf\u3011\u552f\u4e00ID\u751f\u6210\u7b56\u7565\u603b\u7ed3\" \/><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u5176\u6838\u5fc3\u601d\u60f3\u662f\uff1a\u4f7f\u752841bit\u4f5c\u4e3a\u6beb\u79d2\u6570\uff0c10bit\u4f5c\u4e3a\u673a\u5668\u7684ID\uff085\u4e2abit\u662f\u6570\u636e\u4e2d\u5fc3\uff0c5\u4e2abit\u7684\u673a\u5668ID\uff09\uff0c12bit\u4f5c\u4e3a\u6beb\u79d2\u5185\u7684\u6d41\u6c34\u53f7\uff08\u610f\u5473\u7740\u6bcf\u4e2a\u8282\u70b9\u5728\u6bcf\u6beb\u79d2\u53ef\u4ee5\u4ea7\u751f 4096 \u4e2a ID\uff09\uff0c\u6700\u540e\u8fd8\u6709\u4e00\u4e2a\u7b26\u53f7\u4f4d\uff0c\u6c38\u8fdc\u662f0\u3002\u5177\u4f53\u5b9e\u73b0\u7684\u4ee3\u7801\u53ef\u4ee5\u53c2\u770bgithub\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 snowflake\u7b97\u6cd5\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u9879\u76ee\u7684\u9700\u8981\u8fdb\u884c\u4e00\u5b9a\u7684\u4fee\u6539\u3002\u6bd4\u5982\u4f30\u7b97\u672a\u6765\u7684\u6570\u636e\u4e2d\u5fc3\u4e2a\u6570\uff0c\u6bcf\u4e2a\u6570\u636e\u4e2d\u5fc3\u7684\u673a\u5668\u6570\u4ee5\u53ca\u7edf\u4e00\u6beb\u79d2\u53ef\u4ee5\u80fd\u7684\u5e76\u53d1\u6570\u6765\u8c03\u6574\u5728\u7b97\u6cd5\u4e2d\u6240\u9700\u8981\u7684bit\u6570\u3002<\/section>\n<section style=\"line-height: 2em;\"><\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u4f18\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u7a33\u5b9a\u6027\u9ad8\uff0c\u4e0d\u4f9d\u8d56\u4e8e\u6570\u636e\u5e93\u7b49\u7b2c\u4e09\u65b9\u7cfb\u7edf\uff0c\u4ee5\u670d\u52a1\u7684\u65b9\u5f0f\u90e8\u7f72\uff0c\u7a33\u5b9a\u6027\u66f4\u9ad8\uff0c\u751f\u6210ID\u7684\u6027\u80fd\u4e5f\u662f\u975e\u5e38\u9ad8\u7684\u3002<\/section>\n<section style=\"line-height: 2em;\">\u7075\u6d3b\u65b9\u4fbf\uff0c\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u4e1a\u52a1\u7279\u6027\u5206\u914dbit\u4f4d\u3002<\/section>\n<section style=\"line-height: 2em;\">\u5355\u673a\u4e0aID\u5355\u8c03\u81ea\u589e\uff0c\u6beb\u79d2\u6570\u5728\u9ad8\u4f4d\uff0c\u81ea\u589e\u5e8f\u5217\u5728\u4f4e\u4f4d\uff0c\u6574\u4e2aID\u90fd\u662f\u8d8b\u52bf\u9012\u589e\u7684\u3002<\/section>\n<section style=\"line-height: 2em;\">\u00a0 \u00a0 \u3010\u7f3a\u70b9\u3011<\/section>\n<section style=\"line-height: 2em;\">\u5f3a\u4f9d\u8d56\u673a\u5668\u65f6\u949f\uff0c\u5982\u679c\u673a\u5668\u4e0a\u65f6\u949f\u56de\u62e8\uff0c\u4f1a\u5bfc\u81f4\u53d1\u53f7\u91cd\u590d\u6216\u8005\u670d\u52a1\u4f1a\u5904\u4e8e\u4e0d\u53ef\u7528\u72b6\u6001\u3002<\/section>\n<section style=\"line-height: 2em;\">ID\u53ef\u80fd\u4e0d\u662f\u5168\u5c40\u9012\u589e\u3002\u5728\u5355\u673a\u4e0a\u662f\u9012\u589e\u7684\uff0c\u4f46\u662f\u7531\u4e8e\u6d89\u53ca\u5230\u5206\u5e03\u5f0f\u73af\u5883\uff0c\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u65f6\u949f\u4e0d\u53ef\u80fd\u5b8c\u5168\u540c\u6b65\uff0c\u4e5f\u8bb8\u6709\u65f6\u5019\u4e5f\u4f1a\u51fa\u73b0\u4e0d\u662f\u5168\u5c40\u9012\u589e\u7684\u60c5\u51b5\u3002<\/section>\n<p style=\"margin-top: 10px; margin-bottom: 10px; max-width: 100%; min-height: 1em; white-space: normal; color: #3e3e3e; font-size: 16px; letter-spacing: 0.544px; text-align: center; widows: 1; word-spacing: 2px; background-color: #ffffff; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; line-height: 2em; overflow-wrap: break-word !important; box-sizing: border-box !important;\"><span style=\"max-width: 100%; font-size: 13px; letter-spacing: 0.5px; color: #0080ff; overflow-wrap: break-word !important; box-sizing: border-box !important;\"><span style=\"color: #0080ff; font-family: -apple-system-font, system-ui, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.5px; text-align: center; widows: 1; word-spacing: 2px; background-color: #ffffff;\">\u5982\u559c\u6b22\u672c\u6587\uff0c\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u628a\u6587\u7ae0\u5206\u4eab\u5230\u670b\u53cb\u5708<\/span><br style=\"max-width: 100%; color: #0080ff; font-family: -apple-system-font, system-ui, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; letter-spacing: 0.5px; text-align: center; white-space: normal; widows: 1; word-spacing: 2px; background-color: #ffffff; box-sizing: border-box !important; overflow-wrap: break-word !important;\" \/><span style=\"color: #0080ff; font-family: -apple-system-font, system-ui, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.5px; text-align: center; widows: 1; word-spacing: 2px; background-color: #ffffff;\">\u5982\u6709\u60f3\u4e86\u89e3\u5b66\u4e60\u7684\u6280\u672f\u70b9\uff0c\u8bf7\u7559\u8a00\u7ed9\u82e5\u98de\u5b89\u6392\u5206\u4eab<\/span><\/span><\/p>\n<p style=\"margin-top: 25px; margin-right: 14px; margin-bottom: 25px; max-width: 100%; min-height: 1em; white-space: normal; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; letter-spacing: 0.544px; background: #ffffff; line-height: 2em; text-align: center; overflow-wrap: break-word !important; box-sizing: border-box !important;\"><strong style=\"max-width: 100%; letter-spacing: 0.544px; color: #3e3e3e; font-family: \u5fae\u8f6f\u96c5\u9ed1; font-size: 16.3636px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\u00b7END\u00b7<\/strong><\/p>\n<p style=\"max-width: 100%; min-height: 1em; white-space: normal; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; white-space: normal; color: #3e3e3e; font-size: 16px; line-height: 25.6px; background-color: #ffffff; font-family: \u5fae\u8f6f\u96c5\u9ed1; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; color: #3f3f3f; font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; letter-spacing: 0.544px; text-align: left; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; color: #a0a0a0; font-family: \u5fae\u8f6f\u96c5\u9ed1; letter-spacing: 0.544px; text-align: center; widows: 1; word-spacing: 2px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; line-height: 25.6px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<section style=\"max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<blockquote style=\"margin-bottom: 20px; padding: 10px 20px 10px 15px; border-left-width: 5px; border-left-color: #d6dbdf; max-width: 100%; background-color: rgba(112, 138, 153, 0.098); overflow-wrap: break-word !important; box-sizing: border-box !important;\">\n<p style=\"max-width: 100%; min-height: 1em; text-align: left; overflow-wrap: break-word !important; box-sizing: border-box !important;\"><span style=\"color: #a5a5a5; max-width: 100%; font-size: 13px; letter-spacing: 0.544px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\u4f5c\u8005\uff1a\u68a6 * \u8776<\/span><\/p>\n<p style=\"max-width: 100%; min-height: 1em; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Helvetica; color: #0f1721; text-align: start; overflow-wrap: break-word !important; box-sizing: border-box !important;\"><span style=\"max-width: 100%; color: #9a9a9a; font-family: \u5fae\u8f6f\u96c5\u9ed1; letter-spacing: 0.544px; font-size: 13px; overflow-wrap: break-word !important; box-sizing: border-box !important;\">\u6765\u6e90\uff1ahttps:\/\/blog.csdn.net\/LZ15932161597\/article\/details\/113397226<\/span><\/p>\n<\/blockquote>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55 \u5168\u5c40\u552f\u4e00id\u4ecb\u7ecd \u00a0 \u00a0 \u5168\u5c40\u552f\u4e00id\u7279\u70b9: \u5e38\u89c1\u5168\u5c40\u552f\u4e00id\u751f\u6210\u7b56\u7565 \u00a0 \u00a0 1\u3001\u6570\u636e\u5e93\u81ea\u589e\u957f\u5e8f\u5217 &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=92227\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u3010\u5206\u5e03\u5f0f\u7cfb\u7edf\u3011\u552f\u4e00ID\u751f\u6210\u7b56\u7565\u603b\u7ed3\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[324],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/92227"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92227"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/92227\/revisions"}],"predecessor-version":[{"id":92232,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/92227\/revisions\/92232"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92227"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}