Java

Distributed Locks in Spring-boot Microservice Environment

Suppose we are in an environment where only one instance is running in production. We want to do an account update and synchronise the transaction where we are doing the update. This can easily be achieved with the help of Reentrant Locks api’s of java, as shown below. @Service @RequiredArgsConstructor @Slf4j public class...

by anil.gola
Tag: Distributed Locks
22-Feb-2023