1. What is a distributed lock?
Distributed locks are a way to control synchronized access to shared resources between distributed systems. In distributed systems , it is often necessary to coordinate their actions. If different systems or different hosts of the same system share one or a set of resources, mutual exclusion is often required to prevent mutual interference to ensure consistency when accessing these resources . In this case, it is necessary to Use distributed locks.
In
distributed
systems , it is often necessary to coordinate their actions. If different systems or different hosts of the same system share one or a group of resources, when accessing these resources, mutual exclusion is often required to prevent mutual interference to ensure
consistency
. At this time, it is necessary to use distribution lock.
There are three commonly used distributed locks: zk locks, redis locks and database locks.
Now in the project, first list the titles encountered, and then slowly add them.