Tried Redsync example.
-
Go 1.12
Same service is running on Server A and Server B
Service operates as follows:
- Listen request from client
- Get lock by redsync library
- Release lock by redsync library
- Return response to client
The same key is used for locking regardless of Server