【分布式缓存之Voldemort 介绍】

Voldemort 是一个采用 Java 语言开发的分布式的Key-Value存储系统。

Voldemort is a distributed key-value storage system



 
 

主要特性:

1)Data is automatically replicated over multiple servers.

2)Data is automatically partitioned so each server contains only a subset of the total data

3)Server failure is handled transparently

4)Pluggable serialization is supported to allow rich keys and values including lists and tuples with named fields, as well as to integrate with common serialization frameworks like Protocol Buffers, Thrift, and Java Serialization

5)Data items are versioned to maximize data integrity in failure scenarios without compromising availability of the system

6)Each node is independent of other nodes with no central point of failure or coordination

7)Good single node performance: you can expect 10-20k operations per second depending on the machines, the network, and the replication factor

8)Support for pluggable data placement strategies to support things like distribution across data centers that are geographical far apart.

缓存数据可以自动在各个服务器节点之间同步复制。

每一个服务器的缓存数据被横向分割,因此是总缓存的一个子集。

严格保持缓存的一致性。

提供服务器宕机快速恢复方案。

可配置的数据存储引擎。

可配置的数据序列化方式。

每一个数据项都有版本标识,用来保证数据的完整性和可用性。

每一个缓存节点都是独立的,因此任何一个节点的故障都不会影响系统的正常运行。

Comparison to relational databases

Voldemort is not a relational database, it does not attempt to satisfy arbitrary relations while satisfying ACID properties. Nor is it an object database that attempts to transparently map object reference graphs. Nor does it introduce a new abstraction such as document-orientation. It is basically just a big, distributed, persistent, fault-tolerant hash table. For applications that can use an O/R mapper like active-record or hibernate this will provide horizontal scalability and much higher availability but at great loss of convenience. For large applications under internet-type scalability pressure, a system may likely consist of a number of functionally partitioned services or APIs, which may manage storage resources across multiple data centers using storage systems which may themselves be horizontally partitioned. For applications in this space, arbitrary in-database joins are already impossible since all the data is not available in any single database. A typical pattern is to introduce a caching layer which will require hashtable semantics anyway. For these applications Voldemort offers a number of advantages:

1)Voldemort combines in memory caching with the storage system so that a separate caching tier is not required (instead the storage system itself is just fast)

2)Unlike MySQL replication, both reads and writes scale horizontally

3)Data portioning is transparent, and allows for cluster expansion without rebalancing all data

4)Data replication and placement is decided by a simple API to be able to accommodate a wide range of application specific strategies

5)The storage layer is completely mockable so development and unit testing can be done against a throw-away in-memory storage system without needing a real cluster (or even a real storage system) for simple testing

原创不易,欢迎打赏,请认准正确地址,谨防假冒



 

 


猜你喜欢

转载自gaojingsong.iteye.com/blog/2367492