كل الأمثلة

أمثلة

أي المفاتيح تنتقل حين ينضم خادم تخزين مؤقت

ثلاثة خوادم تخزين مؤقت وأربعة مفاتيح على حلقة تجزئة، وكل مفتاح لدى الخادم التالي في اتجاه عقارب الساعة؛ ثم ينضم خادم رابع فلا ينتقل إليه إلا مفتاح واحد.

صُنع هذا الفيديو بمهارة تصميم الأنظمة.

  • 0:58
  • تصميم الأنظمة
  • بصوت Kore
  • الإنجليزية

صُنع من فكرة

Explain consistent hashing with a hash ring: which keys move when a server is added?

التفريغ النصي للفيديو

Adding one cache server should not force every cached key to move.

We hash cache server A onto a circle, then place servers B and C.

Now hash apple, book, cat, and dog onto that same circle, using their keys.

Each key belongs to the first server clockwise around the ring. So dog wraps past the top to A.

What happens when you need more capacity? Add server D between A and B.

Only book moves from B to D; its hash falls between A and D.

With uniform hashes, adding a fourth server moves about one quarter of keys on average. Real caches must refill moved entries.

Keys mark data; servers own the preceding clockwise interval. Adding D changes only its new interval, keeping other owners stable.

موضوعك، مرسومًا في دقيقة تقريبًا.

أول 2 من فيديوهاتك مجانًا، مدة كلٍّ منها حتى دقيقة واحدة، مع علامة مائية. لا حاجة إلى بطاقة دفع. المنتج كاملًا، بكل الأصوات والأساليب.