Hi Dan,

On Thu, Oct 30, 2014 at 6:36 PM, Dan Ellis <[email protected]> wrote:

> > You can delete them by reacting to a snapshot succcess by issuing an
> deleteMessages(toSequenceNr = lastseqnr).
>
> If I only care about recovery and not auditing, are there any
> disadvantages to doing that?


This is also about recovery. If you have the full event log you can recover
*corrupted* storage much easier, since you can delete corrupted events,
modify events, etc. if necessary, which is way harder with a corrupted
blob. There is a reason why many filesystems use a journal, and many
databases provide an oplog, too.

If you are worried about growing journal size and you really want to
delete, I recommend first going without delete, seeing how quickly the
journal grows and then implement a deletion policy that preferably keeps
logs not just after the latest snapshot, but maybe after the 3rd latest
snapshot or so, depending on your disk space requirement.

-Endre



> Would it be considered an anti-pattern? I'm just evaluating and
> considering my options at the moment -- I don't know that space will be an
> issue.
>
> --
> >>>>>>>>>>      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.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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