Is removing all actor state eventually the same as deleting the actor?

随声附和 提交于 2020-01-14 23:47:31

问题


I'm wondering whether there is anything stored/managed in Service Fabric for a non-activated actor without persistent state?

Let's say that an actor instance has the following life cycle:

  1. Actor is activated for the first time.
  2. Actor save state (persistent and replicated).
  3. Actor remove all saved state.
  4. Actor is deactivated (GC).

Is there anything left now? Is it like we would have deleted it instead?


回答1:


If you call IActorService.GetActorsAsync you will still get that actor in the list, so yes, something (a marker value) is left in the storage provider. If the StatePersistence is not set to Persisted, like all other state it may get lost if you turn off the machines, for example.



来源:https://stackoverflow.com/questions/38633751/is-removing-all-actor-state-eventually-the-same-as-deleting-the-actor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!