I'm not sure how do i spawn a cluster singleton using FSharp API. Should i use [spwane] or [spawnOpt] ? and how one does that ?
Asked
Active
Viewed 114 times
2
-
Have you checked those 2 links ? http://getakka.net/docs/clustering/cluster-singleton http://stackoverflow.com/questions/39239608/how-to-create-an-actor-in-a-clustered-configuration-in-f – Kevin Avignon Oct 17 '16 at 22:31
-
I did, it is just doesn't make sense to me when it comes to fsharp. like how do i supply props class to it ? – himekami Oct 18 '16 at 04:52
1 Answers
2
You cannot create cluster singleton using standard Akka.FSharp API. Reason behind that is that Akka.FSharp API already hit v1.0 before the shape of the cluster singleton API was even known.
You can however use Akkling.Cluster.Sharding library (Akkling is an alternative F# API for Akka.NET) and establish cluster singleton by using spawnSingleton function.

Bartosz Sypytkowski
- 7,463
- 19
- 36