Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
发送到快照存储的消息的传递保证是什么,例如DeleteSnapshot,SaveSnapshot等?
DeleteSnapshot
SaveSnapshot
是至少一次还是最多一次?换句话说,如果我打电话给SaveSnapshot(),我是否保证SaveSnapshotSuccess/Failure会收到它们,或者只有在快照实际收到它们并接受或拒绝它们时我才会收到它们?
SaveSnapshot()
SaveSnapshotSuccess/Failure
通过检查最新版本的源代码,SnapshotStore.scala特征似乎只扩展了Actorand ActorLogging,因此消息传递语义可能最多只有一次:
SnapshotStore.scala
Actor
ActorLogging
https://github.com/akka/akka/blob/9d2bec7f232b628cc087231af75e457072823e61/akka-persistence/src/main/scala/akka/persistence/snapshot/SnapshotStore.scala