来自 Reliable Actors 的邮箱中的消息是否有状态?
Are messages in the mailbox from Reliable Actors stateful?
每当主节点发生故障时,Reliable Actors 的状态(包括提醒)都会恢复。但是,我无法在邮箱中找到有关邮件的任何信息。这些消息发生了什么,它们丢失了还是演员恢复了这些消息?
我能找到的唯一信息如下:
Because the actor service itself is a reliable service, all the
application model, lifecycle, packaging, deployment, upgrade, and
scaling concepts of Reliable Services apply the same way to actor
services.
我不确定上面的引述是否包含演员邮箱中的消息。
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-actors-platform
SF Reliable Actors 不使用与 Akka 相同的邮箱消息传递方法。
Akka 使用 TELL 方法,消息被发送到 actor 并存储在邮箱中进行处理,一旦处理完成,actor 将消息发送给调用者一个答案。
SF 使用 ASK 方法,调用者一直在等待答案,所以没有邮箱,处理将根据从 actor 获取的锁定顺序进行,如果演员服务失败,调用和锁将被丢弃。
因为对 actor 的调用和重试是由调用者管理的,使用 ActorProxy,它将重新发送调用,并且它将获得一个新的服务 instance\replica,因此获得一个新的优先级顺序之前。
每当主节点发生故障时,Reliable Actors 的状态(包括提醒)都会恢复。但是,我无法在邮箱中找到有关邮件的任何信息。这些消息发生了什么,它们丢失了还是演员恢复了这些消息?
我能找到的唯一信息如下:
Because the actor service itself is a reliable service, all the application model, lifecycle, packaging, deployment, upgrade, and scaling concepts of Reliable Services apply the same way to actor services.
我不确定上面的引述是否包含演员邮箱中的消息。
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-actors-platform
SF Reliable Actors 不使用与 Akka 相同的邮箱消息传递方法。
Akka 使用 TELL 方法,消息被发送到 actor 并存储在邮箱中进行处理,一旦处理完成,actor 将消息发送给调用者一个答案。
SF 使用 ASK 方法,调用者一直在等待答案,所以没有邮箱,处理将根据从 actor 获取的锁定顺序进行,如果演员服务失败,调用和锁将被丢弃。
因为对 actor 的调用和重试是由调用者管理的,使用 ActorProxy,它将重新发送调用,并且它将获得一个新的服务 instance\replica,因此获得一个新的优先级顺序之前。