GitHub user pjfanning added a comment to the discussion: Distributed lock on 
file within pekko cluster

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.

* https://pekko.apache.org/docs/pekko/current/typed/cluster-singleton.html
* https://pekko.apache.org/docs/pekko/current/cluster-singleton.html


GitHub link: 
https://github.com/apache/pekko-connectors/discussions/826#discussioncomment-10742696

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to