Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Akka's message delivery guarantees

Tags:

akka

I am trying to insert 20k records into MySQL database using AKKA. I have found 19,994 records have been inserted and rest 6 records were not inserted. I have read that AKKA does not guarantee message delivery. Is there any way to deal with this problem ?

like image 295
user3698159 Avatar asked Jul 21 '14 05:07

user3698159


2 Answers

Akka's message send semantics are exactly at-most-once-delivery.

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

However your question does not really include your setup - something else could have gone wrong - persistence failures etc.

like image 157
Konrad 'ktoso' Malawski Avatar answered Nov 28 '22 12:11

Konrad 'ktoso' Malawski


Have a look at At-Least-Once Delivery.

But pay attention to the notes in the documentation :

  • this is not at-most-once delivery that means you have to handle duplicate messages.
  • the order might not be preserved.

Hope this helps.

like image 20
Arnaud Gourlay Avatar answered Nov 28 '22 13:11

Arnaud Gourlay