Home > Back-end >  The distributed deployment scenarios, synchroinzed the use of locks and the Lock range
The distributed deployment scenarios, synchroinzed the use of locks and the Lock range

Time:09-17

Distributed deployment scenarios (including micro service architecture, monomer architecture), sychronized and Lock Lock is failure, or the scope of guarantee sychroinzed and Lock Lock in the same process protection under the premise of a Shared variable, or you can use?

CodePudding user response:

The two can only be valid for a single service,

CodePudding user response:

All has been distributed, certainly not in the same JVM process, will certainly fail

CodePudding user response:

1st floor, you may need is distributed lock,
  • Related