Sure Konrad, that's more like an example. But even using own custom message and then calling context.stop will give similar effect. Looks like there is no standard mechanism to stop actor gracefully without loosing side effects.
On Tuesday, September 26, 2017 at 10:53:56 AM UTC+2, Konrad Malawski wrote: > > Don’t use PoisonPill, but your protocol level messages to signal “plz > stop”, which is best practice anyway, > > — > Konrad `kto.so` Malawski > Akka <http://akka.io> @ Lightbend <http://lightbend.com> > > On 26 September 2017 at 17:25:43, Yaroslav Klymko ([email protected] > <javascript:>) wrote: > > Hi Guys, > > Do I understand correctly that there is high chance to have events > persisted without handlers performed if persistent actor stopped? > > ref ! cmd > journal ! WriteMessages > ref ! PoisonPill > deadLetters <- WriteMessagesSuccess > > > Is it intendant? Are there any plans to fix or improve this ? > > -- > >>>>>>>>>> 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 [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > -- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
