big bug ban

兴趣 创新 践行

Archive for the ‘hash’ tag

关于一致性哈希

 

1. 一致性哈希

2.1 基本场景

比如你有 N 个 cache 服务器(后面简称 cache ),那么如何将一个对象 object 映射到 N 个 cache 上呢,你很可能会采用类似下面的通用方法计算 object 的 hash 值,然后均匀的映射到到 N 个 cache ;

hash(o[......]

继续阅读

Written by princehaku

十一月 15th, 2011 at 9:12 下午

210 views

Posted in technology

Tagged with

with 2 comments