I took a look into the akka-persistence documentation and from what I can gather the goal of the project is to store processed messages so that an actor's state can be rebuilt upon an actor's restart, while I'd like to store unprocessed messages so they can be processed upon an actor's restart (for my purposes, my actor is essentially stateless).
Am I understanding this incorrectly? Is there a way to accomplish my goal with the persistence module, or is there an alternative approach?Thanks!
--
>>>>>>>>>> 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+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Hello Jeff,
Basically I want to pile a bunch of messages into this mailbox and have the actor process them when it "can" with a producer timeout restriction. I know this is related to the Reactive Stream stuff, but I'm interested in something near term and deciding if I should implement a DurableMailbox or spend more time trying to bend Persistence to work with my stateless actor.
When reading your description I was about to answer “reactive streams”, but I see you’re well aware already :-)
Have you seen this thread: [akka-user] Pulling pattern vs. Durable Mailboxes?
One thing you could do is to introduce an intermediate actor, which will handle the persisting, and your worker actor would pull the work from this PersistentActor
.
The persistentActor can then deleteMessages(toSequenceNr: Long)
once it gets a confirmation that the worker processed messages until N
.