注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
关系型数据库的特征是ACID。是四个字的缩写。合在一起是“酸”的意思。
- Atomicity
- Consistency
- Isolation
- Durability
和数据库ACID对应的,NOSQL,比如Cassandra,奉行的是另外一个缩写组成的字:BASE,光看字面意思有“碱”的意思。
- Basically Available
- Soft State
- Eventual consistency
第一和第三点都好理解。但是这个第二点让人实在很难明白。 [soft state] is information (state) the user put into the system that will go away if the user doesn't maintain it. Stated another way, the information will expire unless it is refreshed.
By contrast, the position of a typical simple light-switch is "hard-state". If you flip it up, it will stay up, possibly forever. It will only change back to down when you (or some other user) explicitly comes back to manipulate it.
在Cassandra里和上面英文很接近的是TTL和Gossip两个子功能。但是这两个子功能和Cassandra整个的offering来比,实在太小了。很难让人信服。
上面英文里的第一段非常添堵。如果仅仅看第二段就好理解的多。但是有了第一段思路总是在will go away if doesn't maintain上。
我琢磨了几天终于悟出来,参照下面社会学里soft state本来的意思:就是指非统一,非consistency。就和eventual consistency对上了。
The term 'soft state' was introduced by Gunnar Myrdal, while comparing South Asian countries with European countries. ... The policy of 'soft state' means a lenient attitude of state towards social deviance. Soft states do not take hard decisions, even if the situation demands
冗余吗?冗余。但是大概为了硬生生追求“碱”这个字。茶余饭后说说倒也有点小意思。 |