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

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.
主站蜘蛛池模板: 三穗县| 孟州市| 当涂县| 江陵县| 霍州市| 类乌齐县| 蕉岭县| 鄢陵县| 仪陇县| 额济纳旗| 城口县| 泸西县| 原阳县| 河西区| 长垣县| 济源市| 思南县| 旬邑县| 武川县| 海阳市| 南丹县| 长沙县| 闻喜县| 岢岚县| 太仆寺旗| 桦甸市| 兰西县| 通辽市| 江阴市| 东乌珠穆沁旗| 西安市| 临澧县| 麻城市| 定陶县| 龙口市| 乌兰县| 阿克苏市| 闵行区| 通榆县| 且末县| 耒阳市|