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,