对比下HBase, Memcached, MongoDB, Redis和Solr
admin
2023-02-08 14:40:03
0

Name

HBase  

Memcached  

MongoDB  

Redis  

Solr  


Description

Wide-column store based on Apache Hadoop and on concepts of  BigTable

In-memory key-value store, originally intended for caching

One of the most popular document stores

In-memory database with configurable options performance vs.  persistency

A widely usedenterprise search engine based onApache  Lucene


Developer

Apache Software Foundation

Danga Interactive

MongoDB, Inc

Salvatore Sanfilippo

Apache Software Foundation


Initial release

2008

2003

2009

2009

2004


License

Open Source

Open Source

Open Source

Open Source

Open Source


Implementation language

Java

C

C++

C

Java


Server operating systems

Linux

Linux

Linux

Linux

All OS with a Java VM and a servlet container


Unix

Unix





OS X


OS X


Windows  

Windows

Windows

Windows



FreeBSD

Solaris

BSD


Database model

Wide column store

Key-value store

Document store

Key-value store

Search engine


Data scheme

schema-free

schema-free

schema-free

schema-free

yes


Typing

no

no

yes

no

yes


Secondary indexes

no

no

yes

no

yes


SQL

no

no

no

no

no


APIs and other access methods

Java API

Proprietary protocol

proprietary protocol using JSON

proprietary protocol

Java API


RESTful HTTP API

RESTful HTTP API


Thrift



Supported programming languages

C

C

C

C



C#

.Net

C#

C#

.Net


C++

C++

C++

C++



Groovy

ColdFusion

Groovy

Clojure



Java

Java

Java

Java

Java



Erlang

Erlang

Erlang

Erlang


Python

Python

 Python

Python

Python


Scala

Lua

Scala

Scala

Scala



Ruby

Ruby

Ruby

Ruby


PHP

PHP

PHP

PHP

PHP




JavaScript

JavaScript

JavaScript



Perl

Perl

Perl

Perl



OCaml

Lua

Lua

any language that  supports sockets and either XML or JSON



Lisp

Lisp

Lisp





Dart

Dart





ColdFusion






Go

Go





Actionscript

Objective-C





Haskell

Haskell





Smalltalk

Smalltalk





Clojure

Tcl





MatLab






PowerShell






Prolog




Server-side scripts

yes

no

JavaScript

Lua

Java plugins


Triggers

yes

no

no

no

no


Partitioning methods

Sharding

none

Sharding

none

Sharding



Replication methods

selectable replication factor

none

Master-slave replication

Master-slave replication

cloud/distributed (via Zookeeper)


Master-slave replication


MapReduce

yes

no

yes

no

no


Consistency concepts

Immediate Consistency


Eventual Consistency


Eventual Consistency


Immediate Consistency


Foreign keys

no

no

no

no

no


Transaction concepts

no

no

no

optimistic locking

optimistic locking



Concurrency

yes

yes

yes

yes

yes


Durability

yes

no

yes

yes

yes


User concepts

Access Control Lists (ACL)

yes

Users can be defined with full access or read-only access

very simple password-based access control



Specific characteristics




Redis very much emphasize performance. In any design decisions  performance has priority over features or memory requirements.

Architecture: Lives in web stack, ships by default with Jetty.  Connectors, JDBC, multiple languages, true morphological CJK, binary document  filters (Tika), Entity Extraction (UIMA)


Typical application scenarios


Mostly used for caching


Applications that can hold all data in memory, and that have  high performance requirements.




相关内容

热门资讯

四预警齐发!台风“红霞”最新路... 今天(24日)6时,中央气象台发布高温黄色预警、暴雨蓝色预警、强对流天气蓝色预警、台风橙色预警。高温...
西门子滚筒洗衣机不通电 西门子滚筒洗衣机不通电洗衣机在很多种情况下都会造成这种现象,比如插座没电了、洗衣机电源插头与插座接触...
西门子洗衣机通电后没反应 1、可能是因为电脑板电源变压器损坏从而导致西门子洗衣机插上电源没有反应。2、可能是因为电源线及插头有...
西门子洗衣机能通电但不工作 1、可能是因为西门子洗衣机的电脑板电源变压器损坏从而导致的结果。2、可能是因为西门子洗衣机的电源线及...
悦康智能马桶盖故障维修 喷水故障。马桶盖不喷水,需检查水管是否坏了,如水管有问题则需去维修点维修;烘干故障。如果清洗和照明都...
原创 v... 随着新机精准定位,新版本越来越多,倾向于不同方面,比如小屏幕、机身轻薄、长续航等,与市场需求相同。大...
中国数学家王虹、邓煜获得菲尔兹... 北京时间2026年7月23日晚,国际数学家开幕式上,中国数学家、北京大学数学系毕业生王虹、邓煜双双获...
短剧演员,开始“卖脸” 6月下旬的一个下午,演员王源凯参加了一部短剧和一个广告项目的面试。这是今年以来,他为数不多的面试机会...
专访王虹:从北大数学系曾经的“... “获奖挺好的。”王虹说话慢慢的,随后话锋一转,带着自嘲式的笑意,“但是题该做不出来,还是做不出来。”...