{"id":124105,"date":"2026-11-18T15:01:56","date_gmt":"2026-11-18T07:01:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/124105.html"},"modified":"2026-11-18T15:01:56","modified_gmt":"2026-11-18T07:01:56","slug":"%e5%88%86%e5%b8%83%e5%bc%8f%e9%94%81%e4%bb%8e%e9%9b%b6%e5%88%b0%e7%94%9f%e4%ba%a7%ef%bc%9aredis%e3%80%81zookeeper-%e4%b8%89%e7%a7%8d%e5%ae%9e%e7%8e%b0%ef%bc%8c%e7%9c%8b%e5%ae%8c%e7%9f%a5%e9%81%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/124105.html","title":{"rendered":"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p>\u5355\u4f53\u65f6\u4ee3&#xff0c;\u4e00\u628a JVM \u5185\u7684 synchronized \u6216 ReentrantLock \u5c31\u80fd\u5b88\u4f4f\u5171\u4eab\u8d44\u6e90\u3002\u4e0a\u4e86\u5206\u5e03\u5f0f&#xff0c;\u4e09\u53f0\u673a\u5668\u4e09\u4efd\u5185\u5b58&#xff0c;\u9501\u9501\u5728\u5404\u81ea\u7684 JVM \u91cc&#xff0c;\u7b49\u4e8e\u6ca1\u9501\u3002<\/p>\n<p>\u4e8e\u662f\u5206\u5e03\u5f0f\u9501\u8bde\u751f\u4e86&#xff1a;\u591a\u4e2a\u8fdb\u7a0b\u62a2\u4e00\u628a&#034;\u5b58\u5728\u5916\u90e8\u5171\u4eab\u7ec4\u4ef6\u91cc\u7684\u9501&#034;\u3002\u542c\u8d77\u6765\u5f88\u7b80\u5355&#xff0c;\u4f46\u8fd9\u4e2a\u9501\u8981\u540c\u65f6\u6ee1\u8db3\u4e92\u65a5\u3001\u53ef\u91cd\u5165\u6027\u3001\u9501\u8d85\u65f6\u91ca\u653e\u3001\u9ad8\u53ef\u7528\u56db\u4e2a\u6027\u8d28&#xff0c;\u6bcf\u4e00\u4e2a\u6027\u8d28\u80cc\u540e\u90fd\u85cf\u7740\u751f\u4ea7\u4e8b\u6545\u3002<\/p>\n<p>\u8fd9\u7bc7\u628a\u4e09\u79cd\u4e3b\u6d41\u5b9e\u73b0\u2014\u2014MySQL\u3001Redis\u3001ZooKeeper\u2014\u2014\u4ece\u539f\u7406\u5230\u5751\u8bb2\u4e00\u904d&#xff0c;\u6700\u540e\u8bf4\u8bf4\u90a3\u4e2a\u5435\u4e86\u597d\u51e0\u5e74\u7684 Redlock \u4e89\u8bae\u3002<\/p>\n<h3>\u4e00\u3001MySQL \u5b9e\u73b0&#xff1a;\u6700\u7b80\u5355&#xff0c;\u4e5f\u6700\u5bb9\u6613\u88ab\u4f4e\u4f30<\/h3>\n<p>\u65b9\u6848\u4e00&#xff1a;\u9760\u6570\u636e\u5e93\u81ea\u8eab\u7684\u552f\u4e00\u7ea6\u675f\u3002<\/p>\n<p><span class=\"token keyword\">INSERT<\/span> <span class=\"token keyword\">INTO<\/span> distributed_lock<span class=\"token punctuation\">(<\/span>lock_key<span class=\"token punctuation\">,<\/span> owner<span class=\"token punctuation\">,<\/span> expire_time<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">VALUES<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;order:1001&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;pod-1&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">NOW<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">&#043;<\/span><span class=\"token number\">10<\/span>s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u62a2\u5230\u4e86\u5c31\u6267\u884c\u4e1a\u52a1&#xff0c;\u6267\u884c\u5b8c DELETE&#xff1b;\u62a2\u4e0d\u5230\u629b Duplicate Key \u5f02\u5e38<\/span><\/p>\n<p>\u65b9\u6848\u4e8c&#xff1a;SELECT &#8230; FOR UPDATE \u52a0\u884c\u9501&#xff0c;\u914d\u5408\u4e8b\u52a1\u3002<\/p>\n<p>\u4f18\u70b9\u4e00\u76ee\u4e86\u7136&#xff1a;\u5b9e\u73b0\u5341\u5206\u949f\u641e\u5b9a&#xff0c;\u5f3a\u4e00\u81f4&#xff0c;\u9501\u4fe1\u606f\u6301\u4e45\u5316\u2014\u2014\u751a\u81f3\u9501\u91ca\u653e\u5931\u8d25\u5bfc\u81f4\u6b8b\u7559&#xff0c;\u4e5f\u80fd\u9760\u8fc7\u671f\u65f6\u95f4\u4eba\u5de5\u6e05\u7406\u3002\u5bf9\u5e76\u53d1\u91cf\u4e0d\u9ad8\u3001\u53c8\u4e0d\u60f3\u5f15\u5165\u65b0\u7ec4\u4ef6\u7684\u7cfb\u7edf&#xff0c;MySQL \u9501\u5b8c\u5168\u591f\u7528&#xff0c;\u5f88\u591a\u5185\u90e8\u7ba1\u7406\u7cfb\u7edf\u7528\u4e86\u597d\u51e0\u5e74\u6ca1\u51fa\u8fc7\u4e8b\u3002<\/p>\n<p>\u7f3a\u70b9\u4e5f\u76f4\u767d&#xff1a;\u6027\u80fd\u4e0a\u9650\u662f\u6570\u636e\u5e93\u7684\u5199\u5165\u80fd\u529b&#xff0c;\u9501\u7ade\u4e89\u6fc0\u70c8\u65f6\u6240\u6709\u8bf7\u6c42\u90fd\u5728\u6253\u8fd9\u5f20\u8868&#xff1b;\u6ca1\u6709\u9501\u7eed\u671f\u80fd\u529b&#xff0c;\u4e1a\u52a1\u6267\u884c\u8d85\u65f6\u9501\u8fc7\u671f\u4e86\u5c31\u88f8\u5954&#xff1b;\u963b\u585e\u7b49\u5f85\u9700\u8981\u81ea\u5df1\u5199\u8f6e\u8be2\u91cd\u8bd5\u3002<\/p>\n<p>\u7ed3\u8bba&#xff1a;\u5c0f\u5e76\u53d1\u3001\u4f4e\u9891\u7ade\u4e89\u573a\u666f&#xff0c;MySQL \u65b9\u6848\u7406\u6027\u4e14\u591f\u7528\u3002\u522b\u4e00\u542c&#034;\u5206\u5e03\u5f0f\u9501&#034;\u5c31\u6761\u4ef6\u53cd\u5c04\u4e0a Redis&#xff0c;\u5148\u770b\u81ea\u5df1\u7684\u5e76\u53d1\u91cf\u7ea7\u3002<\/p>\n<h3>\u4e8c\u3001Redis \u5b9e\u73b0&#xff1a;SET NX \u52a0\u770b\u95e8\u72d7&#xff0c;\u5751\u90fd\u5728\u7ec6\u8282\u91cc<\/h3>\n<p>Redis \u662f\u6700\u6d41\u884c\u7684\u65b9\u6848&#xff0c;\u4e00\u6761\u547d\u4ee4\u62a2\u9501&#xff1a;<\/p>\n<p>SET lock_key unique_value NX EX <span class=\"token number\">30<\/span><\/p>\n<p>NX \u4fdd\u8bc1\u4e92\u65a5&#xff0c;EX 30 \u4fdd\u8bc1\u9501\u81ea\u52a8\u8fc7\u671f&#xff08;\u9632\u6b62\u6301\u9501\u65b9\u5d29\u6e83\u5bfc\u81f4\u6b7b\u9501&#xff09;&#xff0c;unique_value \u662f\u6bcf\u4e2a\u5ba2\u6237\u7aef\u7684\u552f\u4e00\u6807\u8bc6\u2014\u2014\u8fd9\u4e2a\u503c\u662f\u9632\u8bef\u5220\u7684\u5173\u952e&#xff1a;\u91ca\u653e\u9501\u65f6\u53ea\u6709 value \u5339\u914d\u624d\u80fd\u5220&#xff0c;\u5426\u5219 A \u7684\u9501\u8d85\u65f6\u540e\u88ab B \u62a2\u5230&#xff0c;A \u56de\u6765\u624b\u4e00\u6296\u628a B \u7684\u9501\u5220\u4e86&#xff0c;\u4e92\u65a5\u77ac\u95f4\u5d29\u584c\u3002<\/p>\n<p>\u4f46\u6ce8\u610f&#xff1a;\u5224\u65ad value \u548c\u5220\u9664\u5fc5\u987b\u539f\u5b50&#xff0c;\u5206\u4e24\u6b65\u5199\u5c31\u51fa race\u3002\u7528 Lua&#xff1a;<\/p>\n<p><span class=\"token keyword\">if<\/span> redis<span class=\"token punctuation\">.<\/span><span class=\"token function\">call<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;GET&#034;<\/span><span class=\"token punctuation\">,<\/span> KEYS<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span> ARGV<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token keyword\">then<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> redis<span class=\"token punctuation\">.<\/span><span class=\"token function\">call<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;DEL&#034;<\/span><span class=\"token punctuation\">,<\/span> KEYS<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">else<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><br \/>\n<span class=\"token keyword\">end<\/span><\/p>\n<p>\u5230\u8fd9\u91cc\u53ea\u662f\u5165\u95e8&#xff0c;\u751f\u4ea7\u4e0a\u771f\u6b63\u7684\u4e24\u96be\u5728\u4e0b\u9762\u3002<\/p>\n<h4>\u5751\u4e00&#xff1a;\u9501\u8fc7\u671f\u4e86&#xff0c;\u4e1a\u52a1\u8fd8\u6ca1\u6267\u884c\u5b8c<\/h4>\n<p>\u7ed9 A 30 \u79d2\u9501&#xff0c;A \u7684\u4e1a\u52a1\u8dd1\u4e86 40 \u79d2\u2014\u2014\u7b2c 31 \u79d2\u8d77\u9501\u5df2\u7ecf\u5f52\u522b\u4eba\u4e86&#xff0c;A \u8fd8\u5728\u81ea\u4ee5\u4e3a\u6301\u9501\u5730\u64cd\u4f5c\u5171\u4eab\u8d44\u6e90\u3002<\/p>\n<p>\u4e24\u4e2a\u8865\u6551&#xff1a;\u4e00\u662f\u628a\u8fc7\u671f\u65f6\u95f4\u8bbe\u5f97\u8db3\u591f\u957f&#xff08;\u6309\u4e1a\u52a1\u8017\u65f6 P99 \u4f30&#xff09;&#xff0c;\u4ee3\u4ef7\u662f A \u771f\u5d29\u6e83\u540e\u5176\u4ed6\u65b9\u8981\u767d\u7b49&#xff1b;\u4e8c\u662f\u770b\u95e8\u72d7\u673a\u5236&#xff1a;\u62ff\u5230\u9501\u540e\u8d77\u4e00\u4e2a\u540e\u53f0\u7ebf\u7a0b&#xff0c;\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4&#xff08;\u6bd4\u5982\u8fc7\u671f\u65f6\u95f4\u7684 1\/3&#xff09;\u68c0\u67e5\u4e1a\u52a1\u662f\u5426\u8fd8\u5728\u6267\u884c&#xff0c;\u8fd8\u5728\u5c31\u7eed\u671f\u3002Redisson \u7684 watchdog \u9ed8\u8ba4\u5c31\u662f\u8fd9\u4e48\u5e72\u7684\u2014\u2014\u4e0d\u6307\u5b9a leaseTime \u65f6&#xff0c;\u9501\u9ed8\u8ba4 30 \u79d2&#xff0c;\u540e\u53f0\u6bcf 10 \u79d2\u7eed\u4e00\u6b21&#xff0c;\u4e1a\u52a1\u6267\u884c\u591a\u4e45\u9501\u4fdd\u591a\u4e45&#xff0c;\u8fdb\u7a0b\u5d29\u6e83\u5219\u7eed\u671f\u505c\u6b62&#xff0c;\u9501\u81ea\u7136\u8fc7\u671f\u91ca\u653e\u3002<\/p>\n<p>\u7528 Redisson \u65f6\u6709\u4e2a\u65b0\u624b\u5fc5\u8e29\u7684\u7ec6\u8282&#xff1a;\u624b\u52a8\u4f20\u4e86 leaseTime \u53c2\u6570&#xff0c;watchdog \u5c31\u4e0d\u751f\u6548\u4e86\u3002\u5f88\u591a\u4eba\u9501\u8d85\u65f6\u95ee\u9898\u6392\u67e5\u534a\u5929&#xff0c;\u6700\u540e\u53d1\u73b0\u662f\u81ea\u5df1\u4f20\u4e86\u4e2a\u56fa\u5b9a 30 \u79d2\u628a\u770b\u95e8\u72d7\u5173\u4e86\u3002<\/p>\n<h4>\u5751\u4e8c&#xff1a;\u4e3b\u4ece\u5207\u6362\u9501\u4e22\u5931<\/h4>\n<p>Redis \u4e3b\u4ece\u662f\u5f02\u6b65\u590d\u5236\u7684\u3002A \u5728\u4e3b\u5e93\u62ff\u5230\u9501&#xff0c;\u9501\u8fd8\u6ca1\u540c\u6b65\u5230\u4ece\u5e93&#xff0c;\u4e3b\u5e93\u6302\u4e86&#xff0c;\u4ece\u5e93\u63d0\u5347\u4e3a\u65b0\u4e3b\u2014\u2014\u9501\u5728\u65b0\u4e3b\u5e93\u4e0a\u4e0d\u5b58\u5728&#xff0c;B \u53c8\u62ff\u9501\u6210\u529f\u3002\u4e24\u4e2a\u5ba2\u6237\u7aef\u540c\u65f6\u6301\u9501&#xff0c;\u4e92\u65a5\u5931\u6548\u3002<\/p>\n<p>\u5355\u9760 Redis \u4e3b\u4ece\u67b6\u6784&#xff0c;\u8fd9\u4e2a\u6f0f\u6d1e\u5835\u4e0d\u6b7b\u3002\u4e8e\u662f\u6709\u4e86 Redlock&#xff1a;\u8d77 5 \u4e2a&#xff08;\u5947\u6570\u4e2a&#xff09;\u4e92\u76f8\u72ec\u7acb\u7684 Redis \u4e3b\u5e93&#xff0c;\u5ba2\u6237\u7aef\u4f9d\u6b21\u5411\u5168\u90e8 5 \u4e2a\u52a0\u9501&#xff0c;\u62ff\u5230\u8d85\u8fc7\u534a\u6570&#xff08;3 \u4e2a&#xff09;\u4e14\u603b\u8017\u65f6\u5c0f\u4e8e\u9501\u6709\u6548\u671f&#xff0c;\u624d\u7b97\u52a0\u9501\u6210\u529f\u3002\u591a\u6570\u6d3e\u673a\u5236\u8ba9\u5355\u4e2a\u8282\u70b9\u5931\u6548\u4e0d\u518d\u81f4\u547d\u3002<\/p>\n<p>\u4f46 Redlock \u4ece\u63d0\u51fa\u8d77\u5c31\u88ab\u8d28\u7591&#xff08;Martin Kleppmann \u90a3\u7bc7\u8457\u540d\u7684\u53cd\u6587\u662f\u8d77\u70b9&#xff09;&#xff0c;\u6838\u5fc3\u8d28\u7591\u4e00\u6761&#xff1a;\u65f6\u949f\u4e0d\u53ef\u9760\u65f6\u591a\u6570\u6d3e\u4e5f\u4e0d\u53ef\u9760\u2014\u2014\u67d0\u53f0 Redis \u65f6\u949f\u8df3\u53d8\u5bfc\u81f4\u9501\u63d0\u524d\u8fc7\u671f&#xff0c;\u591a\u4e2a\u5ba2\u6237\u7aef\u8fd8\u662f\u80fd\u540c\u65f6\u6301\u9501&#xff0c;\u591a\u6570\u6d3e\u7684\u524d\u63d0\u88ab\u7ed5\u8fc7\u3002\u4e89\u8bae\u7684\u7ed3\u8bba\u540e\u6765\u76f8\u5bf9\u6e05\u6670&#xff1a;Redlock \u5728\u5de5\u7a0b\u4e0a\u66f4\u50cf\u4e00\u4e2a&#034;\u6bd4\u5355\u5b9e\u4f8b\u5f3a\u4e00\u70b9&#034;\u7684\u65b9\u6848&#xff0c;\u800c\u4e0d\u662f\u7406\u8bba\u4e0a\u5b89\u5168\u7684\u65b9\u6848&#xff1b;\u5bf9\u6b63\u786e\u6027\u8981\u6c42\u6781\u9ad8\u7684\u573a\u666f&#xff0c;\u522b\u628a\u6b63\u786e\u6027\u62bc\u5728 Redis \u9501\u4e0a\u2014\u2014\u8981\u4e48\u7528 fencing token&#xff08;\u6bcf\u6b21\u9501\u5e26\u4e00\u4e2a\u5355\u8c03\u9012\u589e\u7f16\u53f7&#xff0c;\u5171\u4eab\u8d44\u6e90\u4fa7\u6821\u9a8c\u7f16\u53f7\u62d2\u7edd\u65e7\u9501\u8bf7\u6c42&#xff09;&#xff0c;\u8981\u4e48\u6362 ZooKeeper \u8fd9\u6761\u8def\u3002<\/p>\n<h3>\u4e09\u3001ZooKeeper \u5b9e\u73b0&#xff1a;\u7528\u4e34\u65f6\u987a\u5e8f\u8282\u70b9\u6362\u53ef\u9760\u6027<\/h3>\n<p>ZooKeeper \u7684\u65b9\u6848\u5728\u7ed3\u6784\u4e0a\u5f88\u4f18\u96c5&#xff1a;<\/p>\n<li>\u5404\u5ba2\u6237\u7aef\u5728 \/locks\/order-1001\/ \u4e0b\u521b\u5efa\u4e34\u65f6\u987a\u5e8f\u8282\u70b9&#xff08;EPHEMERAL_SEQUENTIAL&#xff09;<\/li>\n<li>\u8282\u70b9\u5e8f\u53f7\u6700\u5c0f\u7684\u90a3\u4e2a\u5ba2\u6237\u7aef\u83b7\u5f97\u9501<\/li>\n<li>\u6ca1\u62ff\u5230\u7684\u5ba2\u6237\u7aef\u76d1\u542c\u524d\u4e00\u4e2a\u8282\u70b9\u7684\u5220\u9664\u4e8b\u4ef6&#xff08;\u4e0d\u662f\u6240\u6709\u5ba2\u6237\u7aef\u90fd\u76d1\u542c\u540c\u4e00\u4e2a\u8282\u70b9\u2014\u2014\u90a3\u4f1a\u5f15\u53d1\u7f8a\u7fa4\u6548\u5e94&#xff0c;\u9501\u4e00\u91ca\u653e\u5168\u4f53\u88ab\u5524\u9192\u96c6\u4f53\u7ade\u4e89&#xff09;<\/li>\n<li>\u62ff\u5230\u9501\u7684\u6267\u884c\u5b8c\u5220\u6389\u81ea\u5df1\u7684\u8282\u70b9&#xff0c;\u4e0b\u4e00\u4e2a\u5e8f\u53f7\u88ab\u5524\u9192<\/li>\n<li>\u5ba2\u6237\u7aef\u4f1a\u8bdd\u65ad\u5f00&#xff0c;\u4e34\u65f6\u8282\u70b9\u81ea\u52a8\u5220\u9664\u2014\u2014\u5d29\u6e83\u4e0d\u91ca\u653e\u9501\u7684\u95ee\u9898\u88ab\u4f1a\u8bdd\u673a\u5236\u5929\u7136\u89e3\u51b3<\/li>\n<p>\u5b83\u76f8\u5bf9 Redis \u7684\u4f18\u52bf&#xff1a;CP \u7cfb\u7edf\u7684\u4e00\u81f4\u6027\u4fdd\u8bc1&#xff08;ZAB \u534f\u8bae\u8fc7\u534a\u6570\u5199\u5165&#xff09;&#xff0c;\u9501\u72b6\u6001\u4e0d\u5b58\u5728&#034;\u4e3b\u4ece\u5207\u6362\u4e22\u5931&#034;\u7684\u95ee\u9898&#xff1b;\u5ba2\u6237\u7aef\u5d29\u6e83\u9760\u4f1a\u8bdd\u8d85\u65f6\u81ea\u52a8\u6e05\u7406&#xff0c;\u4e0d\u4f9d\u8d56\u8fc7\u671f\u65f6\u95f4\u4f30\u7b97\u3002<\/p>\n<p>\u52a3\u52bf\u540c\u6837\u660e\u786e&#xff1a;\u6027\u80fd\u5dee Redis \u4e00\u4e2a\u91cf\u7ea7\u2014\u2014\u6bcf\u6b21\u52a0\u9501\u89e3\u9501\u90fd\u6d89\u53ca\u96c6\u7fa4\u591a\u6570\u6d3e\u5199\u5165&#xff0c;\u541e\u5410\u8fdc\u4f4e\u4e8e Redis \u7684\u5185\u5b58\u64cd\u4f5c&#xff1b;\u8fd0\u7ef4\u4e00\u5957 ZK \u96c6\u7fa4\u7684\u6210\u672c\u4e5f\u4e0d\u8f7b\u3002<\/p>\n<p>\u9009\u578b\u7684\u5206\u754c\u7ebf\u7531\u6b64\u5f88\u6e05\u695a&#xff1a;\u8ffd\u6c42\u6027\u80fd\u3001\u80fd\u5bb9\u5fcd\u6781\u5c0f\u6982\u7387\u9501\u5931\u6548&#xff08;\u4e0a\u5c42\u52a0\u5e42\u7b49\u515c\u5e95&#xff09;\u2192 Redis&#xff1b;\u8ffd\u6c42\u6b63\u786e\u6027\u3001\u9501\u7ade\u4e89\u9891\u7387\u4e0d\u9ad8 \u2192 ZooKeeper \u6216 etcd\u3002\u91d1\u878d\u6263\u51cf\u3001\u914d\u989d\u63a7\u5236\u8fd9\u7c7b&#034;\u9501\u5931\u6548\u540e\u679c\u4e25\u91cd&#034;\u7684\u573a\u666f&#xff0c;\u522b\u9009 Redis \u72ec\u625b\u3002<\/p>\n<h3>\u56db\u3001\u65e0\u8bba\u54ea\u79cd\u5b9e\u73b0&#xff0c;\u8fd9\u56db\u6761\u7eaa\u5f8b\u8981\u5b88\u4f4f<\/h3>\n<li>\u9501\u5185\u64cd\u4f5c\u8981\u5e42\u7b49&#xff1a;\u628a\u5206\u5e03\u5f0f\u9501\u5f53\u552f\u4e00\u9632\u7ebf\u662f\u5371\u9669\u7684\u3002\u9501\u7684\u5b9a\u4f4d\u662f&#034;\u4f18\u5316\u7ade\u4e89&#034;&#xff0c;\u4e0d\u662f&#034;\u4fdd\u8bc1\u6b63\u786e&#034;&#xff0c;\u771f\u6b63\u7684\u6b63\u786e\u6027\u515c\u5e95\u9760\u5e42\u7b49\u8bbe\u8ba1&#xff08;\u6bd4\u5982\u8ba2\u5355\u53f7\u7684\u552f\u4e00\u7ea6\u675f&#xff09;<\/li>\n<li>\u9501\u7684\u7c92\u5ea6\u8981\u5c0f&#xff1a;\u9501\u6574\u4e2a&#034;\u4e0b\u5355&#034;\u6d41\u7a0b\u4e0d\u5982\u9501&#034;\u6263\u5e93\u5b58&#034;\u8fd9\u4e00\u6b65\u3002\u7c92\u5ea6\u8d8a\u5927&#xff0c;\u6301\u9501\u65f6\u95f4\u8d8a\u957f&#xff0c;\u541e\u5410\u8d8a\u5dee&#xff0c;\u8d85\u65f6\u98ce\u9669\u8d8a\u5927<\/li>\n<li>\u7b49\u5f85\u8981\u6709\u4e0a\u9650&#xff1a;\u52a0\u9501\u91cd\u8bd5\u5fc5\u987b\u8bbe\u6700\u5927\u7b49\u5f85\u65f6\u95f4\u548c\u6b21\u6570&#xff0c;\u9501\u7ade\u4e89\u5931\u8d25\u540e\u7684\u964d\u7ea7\u903b\u8f91&#xff08;\u5feb\u901f\u5931\u8d25\/\u6392\u961f\/\u5f02\u6b65\u8865\u507f&#xff09;\u8981\u5728\u8bbe\u8ba1\u671f\u5b9a\u597d<\/li>\n<li>\u9501\u503c\u8981\u80fd\u533a\u5206\u6301\u6709\u8005&#xff1a;\u65e0\u8bba Redis \u7684 unique_value \u8fd8\u662f ZK \u7684\u8282\u70b9\u540d&#xff0c;\u90fd\u8981\u80fd\u56de\u7b54&#034;\u8fd9\u628a\u9501\u73b0\u5728\u662f\u8c01\u7684&#034;\u2014\u2014\u6392\u67e5\u95ee\u9898\u65f6\u8fd9\u662f\u552f\u4e00\u7684\u7ebf\u7d22<\/li>\n<h3>\u4e94\u3001\u5199\u5728\u6700\u540e<\/h3>\n<p>\u628a\u4e09\u79cd\u5b9e\u73b0\u7684\u53d6\u820d\u538b\u6210\u4e00\u5f20\u8868&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6MySQLRedisZooKeeper<\/tr>\n<tbody>\n<tr>\n<td>\u6027\u80fd<\/td>\n<td>\u4f4e<\/td>\n<td>\u9ad8<\/td>\n<td>\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u9760\u6027<\/td>\n<td>\u9ad8&#xff08;\u5f3a\u4e00\u81f4&#xff09;<\/td>\n<td>\u53d6\u51b3\u4e8e\u67b6\u6784&#xff08;\u4e3b\u4ece\u6709\u4e22\u9501\u7a97\u53e3&#xff09;<\/td>\n<td>\u9ad8&#xff08;CP \u4fdd\u8bc1&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u52a8\u91ca\u653e<\/td>\n<td>\u9760\u8fc7\u671f\u5b57\u6bb5&#043;\u4eba\u5de5<\/td>\n<td>\u8fc7\u671f\u65f6\u95f4\/watchdog<\/td>\n<td>\u4f1a\u8bdd\u65ad\u5f00\u81ea\u52a8\u5220<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u7ef4\u6210\u672c<\/td>\n<td>\u96f6&#xff08;\u590d\u7528\u73b0\u6709\u5e93&#xff09;<\/td>\n<td>\u4f4e<\/td>\n<td>\u9ad8&#xff08;\u72ec\u7acb\u96c6\u7fa4&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5206\u5e03\u5f0f\u9501\u8fd9\u4e2a\u8bdd\u9898\u6700\u80fd\u4f53\u73b0\u4e00\u4e2a\u9053\u7406&#xff1a;\u5206\u5e03\u5f0f\u7cfb\u7edf\u91cc\u6ca1\u6709\u94f6\u5f39&#xff0c;\u53ea\u6709\u53d6\u820d\u3002Redis \u7528\u6027\u80fd\u6362\u4e00\u81f4\u6027\u98ce\u9669&#xff0c;ZooKeeper \u7528\u6027\u80fd\u6362\u4e00\u81f4\u6027\u4fdd\u8bc1&#xff0c;MySQL \u7528\u541e\u5410\u6362\u5b9e\u73b0\u6210\u672c\u3002\u9762\u8bd5\u5b98\u95ee&#034;\u4f60\u9009\u54ea\u4e2a&#034;&#xff0c;\u771f\u6b63\u60f3\u542c\u7684\u662f\u4f60\u8bf4\u6e05\u695a\u4e3a\u4ec0\u4e48\u6309\u81ea\u5df1\u7684\u4e1a\u52a1\u91cf\u7ea7\u505a\u8fd9\u4e2a\u53d6\u820d\u2014\u2014\u800c\u4e0d\u662f\u80cc\u4e00\u904d\u4e09\u8005\u7684 API\u3002<\/p>\n<p>      <span id=\"quality-guide-article-end\" aria-hidden=\"true\" style=\"display:block;height:1px;margin-bottom:-1px\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[105,1898,664],"topic":[],"class_list":["post-124105","post","type-post","status-publish","format-standard","hentry","category-server","tag-redis","tag-zookeeper","tag-664"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/124105.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/124105.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T07:01:56+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124105.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/124105.html\",\"name\":\"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-18T07:01:56+00:00\",\"dateModified\":\"2026-11-18T07:01:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/124105.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/124105.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124105.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/124105.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/124105.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-18T07:01:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/124105.html","url":"https:\/\/www.wsisp.com\/helps\/124105.html","name":"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-18T07:01:56+00:00","dateModified":"2026-11-18T07:01:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/124105.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/124105.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/124105.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5206\u5e03\u5f0f\u9501\u4ece\u96f6\u5230\u751f\u4ea7\uff1aRedis\u3001ZooKeeper \u4e09\u79cd\u5b9e\u73b0\uff0c\u770b\u5b8c\u77e5\u9053\u4e3a\u4ec0\u4e48\u7ea2\u9501\u4e89\u8bae\u90a3\u4e48\u5927"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=124105"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124105\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=124105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=124105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=124105"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=124105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}