简体   繁体   中英

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.

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"?). I know for pub/sub it is at most delivery, but I cant find anywhere online that says the same for event bus. 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 可能会在订阅者处理消息之前停止/崩溃)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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