-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
Right now singletons are registered during system setup:
let system = ActorSystem("test") { settings in
settings += ActorSingleton("greeter", greeterBehavior)
}
But the shortcomings of this design becomes apparent rather quickly.
- Users might end up copy/pasting the same logic in tests, which is annoying
- It leads to disconnection between singleton and non-singleton actors
We should consider the other approach where settings contains just the flag to enable the plugin and allow users to spawn singletons anywhere.