Hello all, I haven't used Akka before, and I'm considering using it to replace some code my team recently wrote that we're finding is too complex to understand well, and I'd like us to use a more formal structure. Akka fits our use case very well (I'd use Erlang, but we depend on too many Java libraries) but there is one question I'm left with after spending some time today reading through documentation.
To make a simple example, our system would be doing side-effect performing work at the leaf nodes of a supervision tree, who would be (or be supervised by) FSM actors. A concrete example is an FSM whose job is to start, send an HTTP request somewhere, poll for the status of the sent request repeatedly until some condition is reached, and then terminate. Let's say that FSM dies while in the polling state. I don't want to send the initial request again (because presumably the job is still in progress somewhere), I want to go straight to the polling state and start polling again. >From my reading of the docs, persisted actors are restarted by replaying all messages back to the actor which is perfect if you're not performing side effects, but seems problematic in this case. After googling around I have some vague ideas that you're able to inspect replay messages, and maybe I could somehow know to throw out the ones I don't want to do, but I'm not sure if that's idiomatic. I've got to imagine this is a pretty common issue, but I couldn't find anything that really rang true as the "canonical" way to handle this sort of case. Your responses are appreciated, Spencer -- >>>>>>>>>> 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.
