当前位置:网站首页>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".
边栏推荐
- 为什么pca分量没有关联
- 数学-求和符号的性质
- Native js realizes the effect of selecting and canceling all the multi-select boxes
- Detailed and comprehensive postman interface testing practical tutorial
- ASP.NET应用程序--Hello World
- Kubernetes 网络入门
- Principle and Technology of Virtual Memory
- ffmpeg 像素格式基础知识
- 运维监控系统之Open-Falcon
- 通过模拟Vite一起深入其工作原理
猜你喜欢

Dive into how it works together by simulating Vite

今年七夕,「情蔬」比礼物更有爱

冰蝎V4.0攻击来袭,安全狗产品可全面检测

10 years of testing experience, worthless in the face of the biological age of 35

Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..

【 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

Open-Falcon of operation and maintenance monitoring system

Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value

Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full

Detailed and comprehensive postman interface testing practical tutorial
随机推荐
GC Gaode coordinate and Baidu coordinate conversion
Package zip is not available, but is referred to by another package.
presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
【已解决】Unity Coroutinue 协程未有效执行的问题
rpc-remote procedure call demo
shell脚本:for循环与while循环
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
用Unity发布APP到Hololens2无坑教程
Call Alibaba Cloud oss and sms services
AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
dmp (dump) dump file
Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
剑指Offer--找出数组中重复的数字(三种解法)
2022.8.4-----leetcode.1403
数组常用方法总结
Ice Scorpion V4.0 attack, security dog products can be fully detected
Dynamic management of massive service instances
【七夕节】浪漫七夕,代码传情。将爱意变成绚烂的立体场景,给她(他)一个惊喜!(送代码)