These are chat archives for akkadotnet/akka.net
I am currently building an actor system in which certain actors subscribe to events via event stream, and they receive that event with a predicate filter so for example we have 10 thousand actors that subscribe to event MyEvent
//in MyActor.cs that is a derived from ReceiveActor var MyLocation = "USA"; // this is actually an member of the actor but im putting it here for explanations sake Context.System.EventStream.Subscribe(Self, typeof(MyEvent)); ReceiveAsync<MyEvent>(x => x.Location == MyLocation, LocationHandler)
is it bad design to do predicate filtering on events like this? what if we have 10000 instantiated MyActors in the actor system and only 5 of them are in the location "USA" does this mean that the other 9995 actors will get woken up to check if hey satisfy the predicate or not? is this style of dealing with messages/events ok?
akka.remote.dot-netty.tcp.public-hostname, should the SelfAddress of the lighthouse node be affected?