- Implementing Azure Cloud Design Patterns
- Oliver Michalski Stefano Demiliani
- 176字
- 2021-06-30 19:31:53
Concurrency and consistency
Let's start with the term concurrency. Here, you have to answer the following question: What kind of concurrency mechanism do you want to use?
The following options are available:
- Pessimistic concurrency control: In the case of pessimistic concurrency control, the application performs many updates, which can contain a high conflict potential. The mechanism you choose will try to counteract this with record locking.
- Optimistic concurrency control: In the case of optimistic concurrency control, there is no high conflict potential. Therefore, this mechanism provides only a simple timestamp lock.
The next term is consistency or rather, consistency model.
Consistency models are used in distributed systems or distributed data stores (such as a filesystem or a database). The consistency model specifies a contract between user and system, wherein the system guarantees that if the user follows the contract, the memory will be consistent and the results of memory operations will be predictable.
I will address the topic of the consistency model later in this chapter, in the description of the Azure Cosmos DB.
推薦閱讀
- Go Machine Learning Projects
- JavaScript實(shí)例自學(xué)手冊(cè)
- 西門子S7-200 SMART PLC從入門到精通
- 機(jī)器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- STM32嵌入式微控制器快速上手
- Android游戲開發(fā)案例與關(guān)鍵技術(shù)
- 工業(yè)控制系統(tǒng)測(cè)試與評(píng)價(jià)技術(shù)
- Docker on Amazon Web Services
- 手機(jī)游戲程序開發(fā)
- Dreamweaver CS6中文版多功能教材
- Spatial Analytics with ArcGIS
- Photoshop CS4數(shù)碼照片處理入門、進(jìn)階與提高
- Machine Learning with Spark(Second Edition)
- 信息系統(tǒng)安全保障評(píng)估
- EDA技術(shù)及其創(chuàng)新實(shí)踐(Verilog HDL版)