Akka Cluster Leader Address

How do I get a reference to the Leader in a Akka cluster so that I can send a message to the leader node ?

in code :

// assume there exists /user/Supervisor actor at the leader node
val leader = { code to get the leader ref }
leader ! SomeMessage


You can get its address from Cluster(system).state.leader or listen for the LeaderChanged cluster domain event to get notified when it changes.

Need Your Help

Why use a 1-tuple, Tuple<T1> in C#?

c# .net tuples

I don't see the use of 1-tuples in C#. Why do programmers use them?

Create Conditional Page View on Laravel by User Type

php laravel view routes laravel-5

Does anyone know how to get this done? I'm trying to create a condition in Laravel's route. That if a type of user(example: Admin), the Dashboard page will be different from other types of user(exa...