删除所有参与者状态最终是否与删除参与者相同? [英] Is removing all actor state eventually the same as deleting the actor?

查看:61
本文介绍了删除所有参与者状态最终是否与删除参与者相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在Service Fabric中是否为没有持久状态的非激活角色存储/管理了什么?

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

让我们说一个actor实例具有以下生命周期:

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

  1. 演员是第一次被激活.
  2. 演员保存状态(永久和复制).
  3. 演员删除所有保存的状态.
  4. 演员已停用(GC).

现在还剩下什么吗?就像我们会删除它一样吗?

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

推荐答案

如果调用IActorService.GetActorsAsync,您仍然会在列表中找到该参与者,因此,是的,存储提供程序中会保留一些内容(标记值).如果StatePersistence未设置为Persisted,则与所有其他状态一样,例如,如果关闭计算机,则可能会丢失.

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.

这篇关于删除所有参与者状态最终是否与删除参与者相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆