Hi Tim,

On Wed, Apr 23, 2014 at 10:58 AM, Tim Pigden <[email protected]> wrote:

> Hi
> Is there a way to inspect and delete old processor stores?
>

Yes, if you know the processor id.


> Background:
> I'm intending to use akka persistence as a front end to messages received
> from a mobile application.
> Each user will get his/her own processor - as we maintain quite complex
> state at the user level.
> The users work in daily shifts with a completely new set of work each day
> (it's delivery drivers).
> It is possible that I may need to access the messages for a particular
> driver/shift one or two days after end of work - for example, they may have
> had a problem with the mobile device and it comes back to the depot to
> recover lost data.
> As a consequence I wish to keep the journals for each driver each day
> separate - so I'm planning to use a processorId made up with the
> username+date
> But this leads me with the possibility of lots of old data streams lying
> around that I no longer want nor care about.
>
> Is there a way to list and delete such streams? Is such an api likely to
> evolve in the future for the plugins?
>

There is no api for retrieving a list of processor ids, but it has been
requested and logged as ticket: https://github.com/akka/akka/issues/13892

Right now you can have another processor, that you send your processor ids
to when you create new processors. Then you can retrieve them from that
processor.

Alternatively, if you know how the journal is implemented you can use some
journal specific tools to delete old data.

/Patrik


>
> Thanks
> Tim
>
>  --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw
JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
Scala <http://www.scaladays.org/>
Days <http://www.scaladays.org/>
June 16th-18th, <http://www.scaladays.org/>
Berlin <http://www.scaladays.org/>

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to