在memcached概述中here http://code.google.com/p/memcached/wiki/NewOverview
It says:
Memcached servers are generally unaware of each other. There is no crosstalk, no syncronization, no broadcasting. The lack of interconnections means adding more servers will usually add more capacity as you expect. There might be exceptions to this rule, but they are exceptions and carefully regarded.
我在想它如何成为一个分布式系统,而不需要在集群中的节点之间进行同步?如果我从程序写入节点 1 上的缓存,并且下一个请求发送到节点 2,那么我正在从陈旧的缓存中读取数据。
Memcache 不提供与密钥分片、散列、复制、HA、冗余或故障转移相关的功能。
这是client利用某种类型的哈希算法在 memcached 服务器集群上分发密钥的库,但该功能完全独立于 memcached 本身。
根据您的目标语言,有很多客户端库,只需选择一个提供您需要的哈希功能的客户端库即可:
http://code.google.com/p/memcached/wiki/Clients http://code.google.com/p/memcached/wiki/Clients
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)