Cluster Singleton

Hi

Is there a way to create a Cluster Singleton Service in Lagom?

Best regards,
Magnus

Hi @maeki,

Not clear what you mean by “Cluster Singleton Service”.

A Cluster Singleton is a concept in Akka and it applies to an actor that is guarantee to have only one instance across the cluster. If that’s what you want, the answer is yes. You can use Akka direct in Lagom. Just follow the Akka documentation about Cluster Singleton Actors and user the Actor System that Lagom has in scope.

If that’s not what you mean, please clarify the use case.

Cheers,

Renato