Scott の 博客 Scott の 博客
首页
  • Data Structure and Algorithm
  • Java
  • 面试
  • Drafts
  • C++
  • 前端文章

    • JavaScript
  • 学习笔记

    • 《JavaScript教程》
    • 《JavaScript高级程序设计》
    • 《Vue》
    • 《React》
    • 《TypeScript 从零实现 axios》
    • 《Git》
    • TypeScript
    • JS设计模式总结
  • HTML
  • CSS
  • 技术文档
  • GitHub技巧
  • Nodejs
  • 博客搭建
  • 学习
  • 面试
  • 心情杂货
  • 实用技巧
  • 友情链接
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Scott

恋爱中
首页
  • Data Structure and Algorithm
  • Java
  • 面试
  • Drafts
  • C++
  • 前端文章

    • JavaScript
  • 学习笔记

    • 《JavaScript教程》
    • 《JavaScript高级程序设计》
    • 《Vue》
    • 《React》
    • 《TypeScript 从零实现 axios》
    • 《Git》
    • TypeScript
    • JS设计模式总结
  • HTML
  • CSS
  • 技术文档
  • GitHub技巧
  • Nodejs
  • 博客搭建
  • 学习
  • 面试
  • 心情杂货
  • 实用技巧
  • 友情链接
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • Data Structure and Algorithm

  • Java

  • c++

  • 面试

  • Bilibili_Java

  • Python

  • All kinds of Drafts

    • Plan
    • 职场
    • 2021 S02 SDA Part 4
  • High Integrity Information System

  • 左神算法课

  • 个人笔记
  • All kinds of Drafts
Scott
2021-11-07

2021 S02 SDA Part 4

# Pessimistic Offline Lock

We used Pessimistic Offline Lock to solve concurrency issues.

To follow Bell's principle of designing for simplicity, we have made a loose account login permission: multiple users can log into the same account. As people with qualifications to log in to the same account have similar tasks and are likely to perform similar operations or modify the same group of objects, the probability of conflicts is relatively high.

The optimistic lock may costs less when an App does not expect many conflicts. However, one need to pay higher prices if a collision does occur because all pending changes need to be aborted.

With that high conflict assumption in mind, we think that when users editing data, targeted records should be locked for exclusive use until one finishes his or her work. Therefore, Pessimstic Offline Lock may be more suitable for our application.

Moreover, we decided to use Exclusive Write Lock because it is easy to implement and has great liveness.

上次更新: 2021/11/14, 08:59:08
职场
lecture note

← 职场 lecture note→

最近更新
01
day01-Java基础语法
08-31
02
1
08-29
03
路线
08-01
更多文章>
Theme by Vdoing | Copyright © 2019-2022 Evan Xu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
×