Hi, Actor system is built to support failure, this time it can be the deployment, the other time a network failure, etc. You never know. You must code something in the backend that will handle the retrying and wait for a completion message and then update its state to "completed". If your server restart, you just have to go through the "uncompleted" task and send them again in the actor system.
For example, you could add a "Command" table in your database and create a new entry for each command with the state. When you receive the result from your ProcessCounter actor, you put the state of the command to "Completed". You add a function on the server start to run every "Command" that is not set to "completed". Hope it helps! J-F Le jeudi 29 septembre 2016 14:14:53 UTC-4, mohanraj nagasamy a écrit : > > Hi, > > Im working on an play app that sends message to akka actors. In our env, > continues deploy happens multiple times a day where severs go down for > deploying. > > Question: > How do I make sure that all the messages being processed before > restart/shutdown the play application? > Do I have to use at-least once delivery message grantee? > > I have a sample project and readme: > https://github.com/mohanraj-nagasamy/akka_shutdown_pattern > > Controllers > =========== > > - CountController.scala: > > Sends 10 messages to ProcessCounter and processes one by one. How do I make > sure that all the messages being processing? > > > Thanks, > Mohan > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.