about locks
#2039
Replies: 2 comments 1 reply
-
Hey @shellphy 👋 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are there any plans to develop a distributed lock based on redis or database? It feels like a public need, too |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to roadrunner, and I'm a little confused about Locks. The documentation mentions that Locks are memory-based, which means that if I deploy multiple roadrunner instances, Locks will fail. Then it's not called a distributed lock.
In fact, my current application is not too complicated, and the concurrency is not very large. But I plan to deploy 2 instances on one machine with docker swarm, so that rolling updates can be achieved without stopping when updating the service. Obviously Locks won't work in this scenario.
What are the Locks best practices? Are you considering implementing distributed Locks by adding redis or database as the back end of locks?
Beta Was this translation helpful? Give feedback.
All reactions