These are chat archives for akkadotnet/akka.net

14th
Mar 2018
Havret
@Havret
Mar 14 2018 15:48
Is there any way to remove entity from shard?
Ondrej Pialek
@ondrejpialek
Mar 14 2018 16:01
@Havret the entity needs to send its parent a Passivate message
Passivate takes an object as the shutdown message that the parent then sends back to the entity, PoisonPill.Instance is usually fine unless you need some cleanup
so this: Context.Parent.Tell(new Passivate(PoisonPill.Instance));
Havret
@Havret
Mar 14 2018 20:02
@ondrejpialek
But does it actually remove it from the shard or just puts the entity into sleep? I am asking because I am wondering what would happen if somebody tries to DDOoS my shard with invalid requests. Each such request results in allocating new entity in one of my shards, event if I send Passivate message to parent shard, the knowledge of this invalid entity retains in my system.