BASE术语的解释 [英] Explanation of BASE terminology

查看:381
本文介绍了BASE术语的解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

BASE 缩写词用于描述某些数据库(通常为NoSQL数据库)的属性。它通常被称为 ACID 的对立面。



只有很少的文章涉及到BASE的细节,而ACID有大量的文章详细阐述了每个原子性,一致性,隔离和耐久性。维基百科只针对该字词几行



这会给我一些关于定义的问题:


B
$
b $ b

我已解释这些属性如下,使用本文和我的想象:



基本可用可能指的是感知的数据可用性。如果单个节点失败,部分数据将不可用,但整个数据层仍然可用。




  • 基本术语/ 3342749#3342749> Mau的回答,是否意味着整个数据层总是接受新数据,即没有锁定情况阻止数据立即被插入?



软状态:我可以找到的是需要刷新周期的数据的概念。




  • 自动删除数据库中的数据似乎对我很奇怪。

  • 过期或过时的数据更有意义。但这个概念将适用于任何类型的冗余数据存储,而不仅仅是NoSQL。



最终一致性意味着更新最终会波及到所有服务器,




  • 这个属性对我很清楚。






有人可以详细解释这些属性吗?



还是只是一个很牵强的无意义

解决方案

BASE首字母缩略词定义为 Eric Brewer ,他也是制定 CAP定理



CAP定理说明分布式计算机系统不能保证所有以下三个属性:




  • 一致性

  • 可用性

  • 分区容限



BASE系统放弃一致性。




  • 基本可用表示系统 确保可用性。

  • 软状态表示系统的状态可能会随时间变化,即使没有输入。这是因为最终一致性模型。

  • 最终一致性表示系统将随时间变得一致,因为系统在此期间没有收到输入时间。



Brewer承认首字母缩略词


我想出了[the BASE]与我的学生在他们的办公室年初。我同意这是有点,但是ACID - 比人们意识到的更多,所以我们认为这是足够好。



The BASE acronym is used to describe the properties of certain databases, usually NoSQL databases. It's often referred to as the opposite of ACID.

There are only few articles that touch upon the details of BASE, whereas ACID has plenty of articles that elaborate on each of the atomicity, consistency, isolation and durability properties. Wikipedia only devotes a few lines to the term.

This leaves me with some questions about the definition:

Basically Available, Soft state, Eventual consistency

I have interpreted these properties as follows, using this article and my imagination:

Basically available could refer to the perceived availability of the data. If a single node fails, part of the data won't be available, but the entire data layer stays operational.

  • Is this interpretation correct, or does it refer to something else?
  • Update: deducing from Mau's answer, could it mean the entire data layer is always accepting new data, i.e. there are no locking scenarios that prevent data from being inserted immediately?

Soft state: All I could find was the concept of data needing a period refresh. Without a refresh, the data will expire or be deleted.

  • Automatic deletion of data in a database seems strange to me.
  • Expired or stale data makes more sense. But this concept would apply to any type of redundant data storage, not just NoSQL. Does it describe something else then?

Eventual consistency means that updates will eventually ripple through to all servers, given enough time.

  • This property is clear to me.

Can someone explain these properties in detail?

Or is it just a far-fetched and meaningless acronym that refers to the concepts of acids and bases as found in chemistry?

解决方案

The BASE acronym was defined by Eric Brewer, who is also known for formulating the CAP theorem.

The CAP theorem states that a distributed computer system cannot guarantee all of the following three properties at the same time:

  • Consistency
  • Availability
  • Partition tolerance

A BASE system gives up on consistency.

  • Basically available indicates that the system does guarantee availability, in terms of the CAP theorem.
  • Soft state indicates that the state of the system may change over time, even without input. This is because of the eventual consistency model.
  • Eventual consistency indicates that the system will become consistent over time, given that the system doesn't receive input during that time.

Brewer does admit that the acronym is contrived:

I came up with [the BASE] acronym with my students in their office earlier that year. I agree it is contrived a bit, but so is "ACID" -- much more than people realize, so we figured it was good enough.

这篇关于BASE术语的解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆