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 ?
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.
Have a look at At-Least-Once Delivery.
But pay attention to the notes in the documentation :
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With