Reputation: 1615
I want to solve two scenarios :
Upvotes: 1
Views: 63
Reputation: 20551
Note that since the time this question was asked, Akka 2.6 introduced (though the API is subject to change) opt-in support for reliable delivery. When combined with a durable producer (i.e. one which defines a unique persistence ID and writes messages to durable storage), this can guarantee that sent messages are eventually delivered, at the cost of dramatically decreased throughput (and/or substantial persistence expense).
Upvotes: 0
Reputation: 556
You will need to develop your own protocol for acknowledging messages and that they've been processed, and retrying those that haven't been processed. See:
https://doc.akka.io/docs/akka/current/general/message-delivery-reliability.html
it is always possible to add stronger reliability on top of basic ones, but it is not possible to retro-actively remove reliability in order to gain more performance.
Upvotes: 3