当前位置:网站首页>MySQL optimistic lock to solve concurrency conflict

MySQL optimistic lock to solve concurrency conflict

2022-04-23 15:39:00 dengk2013

Why concurrency conflicts occur ?

Pessimistic lock concurrency is too poor Poor user experience in high concurrency scenarios

Achieve the goal : We need to ensure the user experience It is also necessary to achieve reliable data , Optimistic lock to solve .

 

  Here's the problem : If only one operation can succeed at a certain time , So what if other operations fail ?

  Front end application tips “ The data is being processed , Please try again later !”

  additional spring-retry stay service Method retry on

版权声明
本文为[dengk2013]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231537379995.html