{
    "componentChunkName": "component---src-templates-note-note-js",
    "path": "/notes/consistent-hashing",
    "result": {"data":{"mdx":{"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"goal - reduce the number of keys that needs to be moved to new servers when a server is taken down or is added\"), mdx(\"p\", null, \"the gist is we hash both the object keys and the server names.\"), mdx(\"p\", null, \"challenge -  uneven distribution\\nmitigation - virtual nodes. as the number of virtual nodes increase the distribution becomes more even. akin to more random samplings\"), mdx(\"h2\", null, \"read further\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Load Imbalance\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Hotspots\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Data movement during scale down and scale up\"), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"reduce disruption \")), mdx(\"p\", null, \"\", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/notes/Questions\",\n    \"title\": \"Questions\"\n  }, \"Questions\"), \" \"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"Why can't \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"/notes/kafka\",\n    \"title\": \"kafka\"\n  }, \"kafka\"), \" use consistent hashing to reduce the number of partitions? provided offsets are same?\")));\n}\n;\nMDXContent.isMDXComponent = true;","inboundReferences":[{"id":"ee034d8a-7c45-5fbc-8233-dc24b0bc1b85","slug":"remapping"}]}},"pageContext":{"slug":"consistent-hashing","node":{"childMdx":{"slug":"consistent-hashing"}}}},
    "staticQueryHashes": []}