当前位置:网站首页>Acid (ACID) Base (BASE) Principles for Database Design
Acid (ACID) Base (BASE) Principles for Database Design
2022-08-05 03:31:00 【Hao Kai】
Acid (ACID) Base (BASE) Principles for Database Design
Transactions
A transaction is a series of operations performed as a single logical unit of work, either completely or not at all.
Let's take a first look at the state machine model of a transaction.
The picture shows the five phases of a transaction
Transactions must follow ACID principles.
ACID Acid Principle
ACID is a principle that must be followed in order to ensure that data is written reliably during the transaction execution process of a relational database.
Atomicity
The operations of a transaction are either all or none.
Consistency Consistency
The integrity constraints of the database are not violated before and after the transaction begins; however, temporary violations are allowed during execution.
Isolation Isolation
Transactions do not interfere with each other, one transaction cannot see data changes in the middle of another transaction's execution, nor can it interact with another transaction.
Durability
After the transaction ends, the changes will be written to the database and will not be rolled back, even if the database crashes and restarts.
RDBMS In order to achieve high consistency as mentioned in the above four points, there is no emphasis on its scalability.
BASE BASE Principle
Basically Availability
The most basic requirement of a database is availability.
Soft-state
Soft-state can be thought of as an intermediate state between stateless and stateful.
Stateless means that there is no contextual connection between multiple requests, which will help simplify, expand and restore the database.
stateful refers to the connection between multiple request contexts connected.
Soft-state is generally regarded as the server maintains the context within a limited resource (usually time), and when it expires, the state is discarded and returned to the default state.
Eventually Consistency
Allows temporary data inconsistency due to delays, etc., as long as the data is eventually consistent.
Basically Availability to pay attention to.It is probably a problem of translation. The "Basic" here is translated into "basic", and the explanation closer to the original meaning is probably "fundamentally".
边栏推荐
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- QT: The Magical QVarient
- Use Unity to publish APP to Hololens2 without pit tutorial
- ASP.NET应用程序--Hello World
- 大像素全景制作完成后,推广方式有哪些?
- ffmpeg 像素格式基础知识
- Walter talked little knowledge | "remote passthrough" that something
- 【已解决】Unity Coroutinue 协程未有效执行的问题
- 包拉链不可用,但是是被另一个包。
- [Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
猜你喜欢
YYGH-13-客服中心
dmp (dump) dump file
Walter talked little knowledge | "remote passthrough" that something
七夕节代码表白
[Solved] Unity Coroutine coroutine is not executed effectively
静态方法获取配置文件数据
Web3.0 Dapps - the road to the future financial world
QT MV\MVC structure
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
新人如何入门和学习软件测试?
随机推荐
数组常用方法总结
MySql的索引学习和使用;(本人觉得足够详细)
Dameng 8 database export and import
Native js realizes the effect of selecting and canceling all the multi-select boxes
从“能用”到“好用” 国产软件自主可控持续推进
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
沃谈小知识 |“远程透传”那点事儿
Hard power or soft power, which is more important to testers?
开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
YYGH-13-Customer Service Center
高项 02 信息系统项目管理基础
Getting Started with Kubernetes Networking
What is the difference between SAP ERP and ORACLE ERP?
The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
cross domain solution
Open-Falcon of operation and maintenance monitoring system
This year's Qixi Festival, "love vegetables" are more loving than gifts
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
XMjs cross-domain problem solving