{"id":68515,"date":"2025-05-10T15:34:54","date_gmt":"2025-05-10T07:34:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/68515\/"},"modified":"2025-05-10T15:34:54","modified_gmt":"2025-05-10T07:34:54","slug":"redis%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e6%95%b0%e6%8d%ae%e5%88%86%e7%89%87%e6%89%a9%e5%b1%95%e5%8a%9f%e8%83%bd-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/68515\/","title":{"rendered":"Redis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>Redis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd<\/h1>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u4eec\u53c8\u89c1\u9762\u4e86\u554a~\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aRedis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd\u300b<\/span>\u7684\u5185\u5bb9\u4e2d\u5c06\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u3002\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6570\u636e\u5e93<\/span>\u76f8\u5173\u77e5\u8bc6\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\uff0c\u4ee5\u540e\u4f1a\u7ed9\u5927\u5bb6\u5e26\u6765\u66f4\u591a<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6570\u636e\u5e93<\/span>\u76f8\u5173\u6587\u7ae0\uff0c\u5e0c\u671b\u6211\u4eec\u80fd\u4e00\u8d77\u8fdb\u6b65\uff01\u4e0b\u9762\u5c31\u5f00\u59cb\u672c\u6587\u7684\u6b63\u5f0f\u5185\u5bb9~<\/p>\n<p>Redis\u662f\u4e00\u6b3e\u88ab\u5e7f\u6cdb\u5e94\u7528\u7684\u5f00\u6e90Key-Value\u6570\u636e\u5e93\uff0c\u4ee5\u5176\u9ad8\u6027\u80fd\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u5e76\u53d1\u7b49\u4f18\u70b9\u6df1\u53d7\u5f00\u53d1\u8005\u7684\u9752\u7750\u3002\u7136\u800c\u968f\u7740\u6570\u636e\u91cf\u7684\u4e0d\u65ad\u589e\u52a0\uff0c\u5355\u8282\u70b9\u7684Redis\u5df2\u7ecf\u65e0\u6cd5\u6ee1\u8db3\u4e1a\u52a1\u9700\u6c42\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0cRedis\u5f15\u5165\u4e86\u6570\u636e\u5206\u7247\uff08Sharding\uff09\u529f\u80fd\uff0c\u5b9e\u73b0\u6570\u636e\u7684\u6c34\u5e73\u6269\u5c55\uff0c\u63d0\u9ad8\u4e86Redis\u7684\u6574\u4f53\u6027\u80fd\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ecb\u7ecdRedis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<p>\u4e00\u3001Redis\u6570\u636e\u5206\u7247\u7684\u539f\u7406<\/p>\n<p>Redis\u6570\u636e\u5206\u7247\u662f\u6307\u5c06\u4e00\u4e2a\u6570\u636e\u96c6\u5408\uff08\u6bd4\u5982Key-Value\uff09\u5206\u6563\u5728\u591a\u4e2aRedis\u5b9e\u4f8b\u4e2d\u5b58\u50a8\uff0c\u4e5f\u5c31\u662f\u8bf4\u5c06\u4e00\u4e2aRedis\u96c6\u7fa4\u5206\u6210\u591a\u4e2a\u8282\u70b9\u8d1f\u8d23\u4e0d\u540c\u7684\u6570\u636e\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5<\/li>\n<\/ol>\n<p>\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u53ef\u4ee5\u5c06\u6570\u636e\u5747\u5300\u7684\u6563\u5e03\u5728\u591a\u4e2a\u8282\u70b9\u4e0a\uff0c\u6bcf\u4e2a\u8282\u70b9\u8d1f\u8d23\u7684\u6570\u636e\u4e0d\u4f1a\u8fc7\u591a\u6216\u8fc7\u5c11\u3002\u5bf9\u4e8e\u65b0\u8282\u70b9\u7684\u52a0\u5165\uff0c\u53ea\u9700\u8981\u8fdb\u884c\u5c11\u91cf\u7684\u6570\u636e\u8fc1\u79fb\u5373\u53ef\u5b8c\u6210\u6570\u636e\u7684\u5e73\u8861\u3002<\/p>\n<ol>\n<li>\u6dfb\u52a0\u865a\u62df\u8282\u70b9<\/li>\n<\/ol>\n<p>\u4e3a\u4e86\u9632\u6b62\u8282\u70b9\u7684\u8d1f\u8f7d\u4e0d\u5747\u8861\u548c\u5355\u70b9\u6545\u969c\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u7269\u7406\u8282\u70b9\u6dfb\u52a0\u591a\u4e2a\u865a\u62df\u8282\u70b9\uff0c\u5c06\u8fd9\u4e9b\u865a\u62df\u8282\u70b9\u6620\u5c04\u5230\u6570\u636e\u96c6\u5408\u4e2d\uff0c\u4ece\u800c\u4f7f\u6570\u636e\u66f4\u52a0\u5747\u5300\u5730\u5206\u6563\u5728\u5404\u4e2a\u7269\u7406\u8282\u70b9\u4e0a\u3002<\/p>\n<p>\u4e8c\u3001Redis\u6570\u636e\u5206\u7247\u7684\u5b9e\u73b0<\/p>\n<p>\u4ee5\u4e0b\u662fRedis\u5b9e\u73b0\u6570\u636e\u5206\u7247\u529f\u80fd\u7684\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u521b\u5efaRedis\u96c6\u7fa4<\/li>\n<\/ol>\n<p>\u4f7f\u7528Redis\u96c6\u7fa4\u5de5\u5177\u53ef\u4ee5\u8f7b\u677e\u5feb\u6377\u7684\u521b\u5efaRedis\u96c6\u7fa4\uff0c\u6b64\u5904\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n<ol>\n<li>\u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5<\/li>\n<\/ol>\n<p>Redis\u63d0\u4f9b\u4e86hash\u69fd\u5206\u914d\u5668\uff0c\u53ef\u4ee5\u6839\u636e\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u5c06\u6570\u636e\u5206\u914d\u5230\u4e0d\u540c\u7684\u8282\u70b9\u4e0a\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>hash_slot_cnt = 16384  # hash\u69fd\u6570\u91cf\n\ndef get_slot(s):\n    return crc16(s) % hash_slot_cnt  # \u6839\u636e\u5b57\u7b26\u4e32s\u8ba1\u7b97\u5176hash\u69fd\n\nclass RedisCluster:\n    def __init__(self, nodes):\n        self.nodes = nodes  # \u8282\u70b9\u5217\u8868\n        self.slot2node = {}\n\n        for node in self.nodes:\n            for slot in node['slots']:\n                self.slot2node[slot] = node\n\n    def get_node(self, key):\n        slot = get_slot(key)\n        return self.slot2node[slot]  # \u6839\u636ekey\u83b7\u53d6\u8282\u70b9<\/pre>\n<ol>\n<li>\u6dfb\u52a0\u865a\u62df\u8282\u70b9<\/li>\n<\/ol>\n<p>\u4e3a\u4e86\u9632\u6b62\u5355\u8282\u70b9\u5d29\u6e83\u6216\u8fc7\u8f7d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u865a\u62df\u8282\u70b9\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>virtual_node_num = 10  # \u6bcf\u4e2a\u5b9e\u9645\u8282\u70b9\u6dfb\u52a010\u4e2a\u865a\u62df\u8282\u70b9\n\nclass RedisCluster:\n    def __init__(self, nodes):\n        self.nodes = nodes\n        self.slot2node = {}\n\n        for node in self.nodes:\n            for i in range(virtual_node_num):\n                virtual_slot = crc16(node['host'] + str(i)) % hash_slot_cnt\n                self.slot2node[virtual_slot] = node\n\n    def get_node(self, key):\n        slot = get_slot(key)\n        return self.slot2node[slot]<\/pre>\n<ol>\n<li>\u6570\u636e\u8fc1\u79fb<\/li>\n<\/ol>\n<p>\u5f53\u6709\u65b0\u8282\u70b9\u52a0\u5165\u6216\u65e7\u8282\u70b9\u79bb\u5f00\u96c6\u7fa4\u65f6\uff0c\u9700\u8981\u8fdb\u884c\u6570\u636e\u7684\u8fc1\u79fb\u3002\u5c06\u539f\u6765\u5206\u914d\u7ed9\u65e7\u8282\u70b9\u7684\u6570\u636e\u91cd\u65b0\u5206\u914d\u5230\u65b0\u8282\u70b9\u4e0a\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>def migrate_slot(from_node, to_node, slot):\n    if from_node == to_node:  # \u8282\u70b9\u76f8\u540c\uff0c\u4e0d\u9700\u8981\u8fdb\u884c\u8fc1\u79fb\n        return\n\n    data = from_node['client'].cluster('getkeysinslot', slot, 10)\n    print('migrate %d keys to node %s' % (len(data), to_node['host']))\n\n    if data:\n        to_node['client'].migrate(to_node['host'], hash_slot_cnt, '', 0, 1000, keys=data)<\/pre>\n<p>\u4e09\u3001\u4ee3\u7801\u5b8c\u6574\u793a\u4f8b<\/p>\n<p>\u4ee5\u4e0b\u662fRedis\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd\u7684\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre>import redis\n\nhash_slot_cnt = 16384  # hash\u69fd\u6570\u91cf\nvirtual_node_num = 10  # \u6bcf\u4e2a\u5b9e\u9645\u8282\u70b9\u6dfb\u52a010\u4e2a\u865a\u62df\u8282\u70b9\n\ndef get_slot(s):\n    return crc16(s) % hash_slot_cnt\n\ndef migrate_slot(from_node, to_node, slot):\n    if from_node == to_node:\n        return\n\n    data = from_node['client'].cluster('getkeysinslot', slot, 10)\n    print('migrate %d keys to node %s' % (len(data), to_node['host']))\n\n    if data:\n        to_node['client'].migrate(to_node['host'], hash_slot_cnt, '', 0, 1000, keys=data)\n\nclass RedisCluster:\n    def __init__(self, nodes):\n        self.nodes = nodes\n        self.slot2node = {}\n\n        for node in self.nodes:\n            for i in range(virtual_node_num):\n                virtual_slot = crc16(node['host'] + str(i)) % hash_slot_cnt\n                self.slot2node[virtual_slot] = node\n\n    def get_node(self, key):\n        slot = get_slot(key)\n        return self.slot2node[slot]\n\n    def add_node(self, node):\n        self.nodes.append(node)\n\n        for i in range(virtual_node_num):\n            virtual_slot = crc16(node['host'] + str(i)) % hash_slot_cnt\n            self.slot2node[virtual_slot] = node\n\n        for slot in range(hash_slot_cnt):\n            if self.slot2node[slot]['host'] == node['host']:\n                migrate_slot(self.slot2node[slot], node, slot)\n\n    def remove_node(self, node):\n        self.nodes.remove(node)\n\n        for i in range(virtual_node_num):\n            virtual_slot = crc16(node['host'] + str(i)) % hash_slot_cnt\n            del self.slot2node[virtual_slot]\n\n        for slot in range(hash_slot_cnt):\n            if self.slot2node[slot]['host'] == node['host']:\n                new_node = None\n\n                for i in range(len(self.nodes)):\n                    if self.nodes[i]['host'] != node['host'] and self.nodes[i]['slots']:\n                        new_node = self.nodes[i]\n                        break\n\n                if new_node:\n                    migrate_slot(node, new_node, slot)\n                else:\n                    print('no new node for slot %d' % slot)\n\nif __name__ == '__main__':\n    nodes = [\n        {'host': '127.0.0.1', 'port': 7000, 'slots': [0, 1, 2]},\n        {'host': '127.0.0.1', 'port': 7001, 'slots': [3, 4, 5]},\n        {'host': '127.0.0.1', 'port': 7002, 'slots': [6, 7, 8]},\n        {'host': '127.0.0.1', 'port': 7003, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7004, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7005, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7006, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7007, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7008, 'slots': []},\n        {'host': '127.0.0.1', 'port': 7009, 'slots': []},\n    ]\n\n    clients = []\n    for node in nodes:\n        client = redis.Redis(host=node['host'], port=node['port'])\n        node['client'] = client\n        clients.append(client)\n\n    cluster = RedisCluster(nodes)\n\n    for key in range(100):\n        node = cluster.get_node(str(key))\n        node['client'].set('key_%d' % key, key)\n\n    cluster.add_node({'host': '127.0.0.1', 'port': 7010, 'slots': []})\n\n    for key in range(100, 200):\n        node = cluster.get_node(str(key))\n        node['client'].set('key_%d' % key, key)\n\n    cluster.remove_node(nodes[-1])<\/pre>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2aRedis\u96c6\u7fa4\uff0c\u6dfb\u52a0\u4e86\u65b0\u8282\u70b9\u548c\u5220\u9664\u8001\u8282\u70b9\uff0c\u6f14\u793a\u4e86\u6570\u636e\u7684\u5e73\u8861\u5206\u6563\u548c\u6570\u636e\u8fc1\u79fb\u3002<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   Redis\uff1a\u6784\u5efa\u9ad8\u53ef\u7528\u6027\u6570\u636e\u5e93\u7cfb\u7edf\u7684\u5173\u952e\u6280\u672f\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5982\u4f55\u4f7f\u7528Memcache\u63d0\u9ad8PHP\u5e94\u7528\u7a0b\u5e8f\u7684\u6570\u636e\u5220\u9664\u6027\u80fd\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Redis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd \u5927\u5bb6\u597d\uff0c\u6211\u4eec\u53c8\u89c1\u9762\u4e86\u554a~\u672c\u6587\u300aRedis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd\u300b\u7684\u5185\u5bb9\u4e2d\u5c06\u4f1a\u6d89\u53ca\u5230\u7b49\u7b49\u3002\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60\u6570\u636e\u5e93\u76f8\u5173\u77e5\u8bc6\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\uff0c\u4ee5\u540e\u4f1a\u7ed9\u5927\u5bb6\u5e26\u6765\u66f4\u591a\u6570\u636e\u5e93\u76f8\u5173\u6587\u7ae0\uff0c\u5e0c\u671b\u6211\u4eec\u80fd\u4e00\u8d77\u8fdb\u6b65\uff01\u4e0b\u9762\u5c31\u5f00\u59cb\u672c\u6587\u7684\u6b63\u5f0f\u5185\u5bb9~ Redis\u662f\u4e00\u6b3e\u88ab\u5e7f\u6cdb\u5e94\u7528\u7684\u5f00\u6e90Key-Value\u6570\u636e\u5e93\uff0c\u4ee5\u5176\u9ad8\u6027\u80fd\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u5e76\u53d1\u7b49\u4f18\u70b9\u6df1\u53d7\u5f00\u53d1\u8005\u7684\u9752\u7750\u3002\u7136\u800c\u968f\u7740\u6570\u636e\u91cf\u7684\u4e0d\u65ad\u589e\u52a0\uff0c\u5355\u8282\u70b9\u7684Redis\u5df2\u7ecf\u65e0\u6cd5\u6ee1\u8db3\u4e1a\u52a1\u9700\u6c42\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0cRedis\u5f15\u5165\u4e86\u6570\u636e\u5206\u7247\uff08Sharding\uff09\u529f\u80fd\uff0c\u5b9e\u73b0\u6570\u636e\u7684\u6c34\u5e73\u6269\u5c55\uff0c\u63d0\u9ad8\u4e86Redis\u7684\u6574\u4f53\u6027\u80fd\u3002 \u672c\u6587\u5c06\u4ecb\u7ecdRedis\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5206\u7247\u6269\u5c55\u529f\u80fd\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002 \u4e00\u3001Redis\u6570\u636e\u5206\u7247\u7684\u539f\u7406 Redis\u6570\u636e\u5206\u7247\u662f\u6307\u5c06\u4e00\u4e2a\u6570\u636e\u96c6\u5408\uff08\u6bd4\u5982Key-Value\uff09\u5206\u6563\u5728\u591a\u4e2aRedis\u5b9e\u4f8b\u4e2d\u5b58\u50a8\uff0c\u4e5f\u5c31\u662f\u8bf4\u5c06\u4e00\u4e2aRedis\u96c6\u7fa4\u5206\u6210\u591a\u4e2a\u8282\u70b9\u8d1f\u8d23\u4e0d\u540c\u7684\u6570\u636e\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5982\u4e0b\uff1a \u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5 \u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u53ef\u4ee5\u5c06\u6570\u636e\u5747\u5300\u7684\u6563\u5e03\u5728\u591a\u4e2a\u8282\u70b9\u4e0a\uff0c\u6bcf\u4e2a\u8282\u70b9\u8d1f\u8d23\u7684\u6570\u636e\u4e0d\u4f1a\u8fc7\u591a\u6216\u8fc7\u5c11\u3002\u5bf9\u4e8e\u65b0\u8282\u70b9\u7684\u52a0\u5165\uff0c\u53ea\u9700\u8981\u8fdb\u884c\u5c11\u91cf\u7684\u6570\u636e\u8fc1\u79fb\u5373\u53ef\u5b8c\u6210\u6570\u636e\u7684\u5e73\u8861\u3002 \u6dfb\u52a0\u865a\u62df\u8282\u70b9 \u4e3a\u4e86\u9632\u6b62\u8282\u70b9\u7684\u8d1f\u8f7d\u4e0d\u5747\u8861\u548c\u5355\u70b9\u6545\u969c\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u7269\u7406\u8282\u70b9\u6dfb\u52a0\u591a\u4e2a\u865a\u62df\u8282\u70b9\uff0c\u5c06\u8fd9\u4e9b\u865a\u62df\u8282\u70b9\u6620\u5c04\u5230\u6570\u636e\u96c6\u5408\u4e2d\uff0c\u4ece\u800c\u4f7f\u6570\u636e\u66f4\u52a0\u5747\u5300\u5730\u5206\u6563\u5728\u5404\u4e2a\u7269\u7406\u8282\u70b9\u4e0a\u3002 \u4e8c\u3001Redis\u6570\u636e\u5206\u7247\u7684\u5b9e\u73b0 \u4ee5\u4e0b\u662fRedis\u5b9e\u73b0\u6570\u636e\u5206\u7247\u529f\u80fd\u7684\u5177\u4f53\u6b65\u9aa4\uff1a \u521b\u5efaRedis\u96c6\u7fa4 \u4f7f\u7528Redis\u96c6\u7fa4\u5de5\u5177\u53ef\u4ee5\u8f7b\u677e\u5feb\u6377\u7684\u521b\u5efaRedis\u96c6\u7fa4\uff0c\u6b64\u5904\u4e0d\u518d\u8d58\u8ff0\u3002 \u4f7f\u7528\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5 Redis\u63d0\u4f9b\u4e86hash\u69fd\u5206\u914d\u5668\uff0c\u53ef\u4ee5\u6839\u636e\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u5c06\u6570\u636e\u5206\u914d\u5230\u4e0d\u540c\u7684\u8282\u70b9\u4e0a\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a hash_slot_cnt = 16384 # hash\u69fd\u6570\u91cf def get_slot(s): return crc16(s) % hash_slot_cnt # \u6839\u636e\u5b57\u7b26\u4e32s\u8ba1\u7b97\u5176hash\u69fd class RedisCluster: def __init__(self, nodes): self.nodes = nodes # \u8282\u70b9\u5217\u8868 self.slot2node = {} for node in self.nodes: for slot in node[&#8216;slots&#8217;]: self.slot2node[slot] = node def get_node(self, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-68515","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/68515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=68515"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/68515\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=68515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=68515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=68515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}