Replies: 2 comments 1 reply
-
One option is to deploy a singleton actor instance that keeps track of which files are locked. You can send the actor instance it a message to request a lock and the response will say if you can have the lock or not. Then you would have another message interaction where you can release the lock. |
Beta Was this translation helpful? Give feedback.
-
Persistance storage is a issue currently in our project, as in-memory map can be risky if pod gets restarted
Your suggestion I liked tbh |
Beta Was this translation helpful? Give feedback.
-
Hello Folks,
We have hdfs connectors to watch on hdfs directories, the same code is deployed in pekko-clusters using k8s
How can I implement a distributed lock for the file across cluster to avoid race condition while processing
Thanks - Susmit
Beta Was this translation helpful? Give feedback.
All reactions