Akka message delivery guarantees

I am trying to insert 20k records into a MySQL database using AKKA. I found 19994 entries and inserted 6 entries. I read that AKKA does not guarantee message delivery. Is there any way to deal with this problem?

+6
source share
2 answers

Akka message sending characters are exactly max-times-delivery .

If you need re-delivery, check out the new at least-time delivery feature added to akka-persistence: http://doc.akka.io/docs/akka/snapshot/scala/persistence.html#At-Least-Once_Delivery

However, your question does not include your setup - something else could go wrong - persistent crashes, etc.

+3
source

See "At least once . "

But pay attention to the notes in the documentation:

  • this is not on delivery , which means you need to process duplicate messages.
  • order cannot be saved.

Hope this helps.

+2
source

Source: https://habr.com/ru/post/972561/


All Articles