Hey I'm doing some reading and watching some videos on AKKA.Net and am loving what I am seeing. I want to try AKKA.net in an existing application I have but I need help clarifying some things
Scenario
I want to create an Akka.net cluster with:
3 Nodes/ Machines
a shared resource (a counter) between them.
a shared Resource statistics readable from all nodes
Whenever a node cashes a ticket it will take the value of the counter and increment it by one then update the counter. No two tickets should have the same counter value. The shared statistics info is to hold the value if tickets cashed in so it should be deployed to all nodes in the cluster.
Questions
- How do I ensure that the tickets have unique counter values? I am used to the locks implimentation but what would be the actor implimentation?
- if a node is disconnected from the cluster is an event raised that I can catch to make the necessary adjustments?