processor aware of recovery

32 views
Skip to first unread message

HP

unread,
Sep 27, 2013, 2:22:33 PM9/27/13
to events...@googlegroups.com
Hi guys, I was wondering if the processor receives any message notifying it of the completion of recovery.  In cases where a Message(...) is received and responds to the sender, on recovery, the response ends up in deadletter, if the processor was aware it was still recovering, it could by-pass the respond logic as desired.

-Hiral

Martin Krasser

unread,
Sep 28, 2013, 3:19:52 AM9/28/13
to events...@googlegroups.com
Hi Hiral,

this is currently not the case. As a workaround you could use

sender != system.deadLetters

for conditional replies.

akka-persistence might help you in the future:

- processors are aware of recovery status
- senders of replayed messages are restored from journal (and can be resolved, if needed)

I plan to migrate the HBase journal to akka-persistence soon - currently working on a journal provider API. The migrated journal will be offered as separate jar in the eligosource Maven repo i.e. it won't be part of Akka persistence. Hope this will allow you a transition to akka-persistence.

Cheers,
Martin


On 27.09.13 20:22, HP wrote:
Hi guys, I was wondering if the processor receives any message notifying it of the completion of recovery.  In cases where a Message(...) is received and responds to the sender, on recovery, the response ends up in deadletter, if the processor was aware it was still recovering, it could by-pass the respond logic as desired.

-Hiral
--
You received this message because you are subscribed to the Google Groups "Eventsourced User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventsourced...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Martin Krasser

blog:    http://krasserm.blogspot.com
code:    http://github.com/krasserm
twitter: http://twitter.com/mrt1nz

HP

unread,
Sep 28, 2013, 12:00:26 PM9/28/13
to events...@googlegroups.com, kras...@googlemail.com
Thanks Martin, we'll use the workaround.  We probably won't be able to move to the snapshot version of Akka 2.3 so may not be able to use the akka-persistence module right away. 

Martin Krasser

unread,
Sep 28, 2013, 12:13:03 PM9/28/13
to events...@googlegroups.com

A first Akka 2.3 milestone should be out in a few weeks I think.

Reply all
Reply to author
Forward
0 new messages