官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 如东县| 荥经县| 建昌县| 英德市| 苍溪县| 墨脱县| 彭阳县| 湟源县| 武鸣县| 渑池县| 青岛市| 贵溪市| 通榆县| 鄂托克前旗| 信阳市| 家居| 江津市| 常德市| 崇礼县| 海丰县| 新巴尔虎左旗| 宁陕县| 山西省| 黄山市| 延安市| 沁源县| 隆尧县| 景东| 新巴尔虎左旗| 龙海市| 昭觉县| 德令哈市| 堆龙德庆县| 农安县| 吉林省| 四子王旗| 清河县| 江口县| 乐平市| 海盐县| 武平县|