Tag:Optimistic lock
-
Time:2019-12-7
Now let’s talk about pessimistic locks and optimistic locks in the database. Pessimistic lock Pessimistic lock, as its name suggests, is more pessimistic. It is always believed that every time the data is modified, other threads will also modify the data at the same time. So the pessimistic way to lock is to lock after […]
-
Time:2019-7-15
Redis transaction mechanism In other databases such as MySQL, transactions represent a set of actions that are either fully executed or not executed. Redis’s current support for things is relatively simple. Redis can only guarantee that commands in a client-initiated transaction can be executed continuously without inserting other client commands in the middle. When a […]
-
Time:2019-3-4
Suppose there is a simple guessing game, in which the user bets big or small, after deducting 3% of the fee, all the money is put into the pool, and the winner divides the pool equally according to the proportion of the betting. Using MySQL as the database, the accuracy of the system is up […]