简体   繁体   English

akka eventbus - 消息保证 - 发布到总线保证

[英]akka eventbus - message guarantees - publish to bus guarantee

I have looked everywhere, cant really get an information that I can base a concrete opinion on this.我到处都找遍了,无法真正得到我可以以此为基础的具体意见的信息。

Akka eventbus is only a "local facility"(to the jvm/node within cluster), and from what I have read: messaging when it is done within the same jvm is far more reliable. Akka eventbus 只是一个“本地设施”(到集群中的 jvm/节点),从我读到的内容来看:在同一个 jvm 中完成的消息传递要可靠得多。

So, II have eg producer A, B and C, and consumers X, Y and Z,:- if I produce message to topic that X is listening to, is X guaranteed to get this message (regardless of network reliability etc, if I publish to the bus, will it defiantly be "on the bus"?).因此,II 有例如生产者 A、B 和 C,以及消费者 X、Y 和 Z,:- 如果我向 X 正在收听的主题生成消息,则 X 是否保证收到此消息(无论网络可靠性等,如果我发布到公共汽车上,它会挑衅地“在公共汽车上”吗?)。 I know for pub/sub it is at most delivery, but I cant find anywhere online that says the same for event bus.我知道对于 pub/sub,它最多是交付,但我无法在网上找到任何对事件总线说相同的地方。 If I publish to the bus, will it be guaranteed to be on the bus?如果我发布到总线上,能保证在总线上吗? (ie if I send a message to a actor, I get no error if it doesn't arrive at the actor. But if I publish to an event bus, am I guaranteed that the event is on the bus, and if not is there an error raised?) (即,如果我向演员发送消息,如果它没有到达演员,我不会收到任何错误。但是如果我发布到事件总线,我是否可以保证该事件在总线上,如果不在那里出现错误?)

除了订阅者列表之外,事件总线并没有真正存储任何内容,发布基本上只是过滤掉正确的接收参与者并将事件发布到他们的邮箱,因此与参与者消息传递相同的交付保证适用(简而言之,自ActorActorSystem或 JVM 可能会在订阅者处理消息之前停止/崩溃)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM