# How to persist messages in the mailbox in Akka 2.6.20

**URL:** <https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040>\
**Category:** Persistence / Event Sourcing\
**Tags:** akka, java, akka-cluster\
**Created:** [October 19, 2022, 10:28am UTC](https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040 "2022-10-19T10:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![watimuma](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/watimuma/32/2947_2.png) [@watimuma](https://discuss.akka.io/u/watimuma)\
**Post date:** [October 19, 2022, 10:28am UTC](https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040/1 "2022-10-19T10:28:26Z")

</div>

I found “Default Mailbox” definition in Akka 2.2 – [AkkaJava.pdf](https://doc.akka.io/docs/akka/2.2/AkkaJava.pdf)  
However , in the lastest 2.6.20 version , I did not find any support .I think the function was deleted or a new implementation was replaced ,but I did not find it .  
My purpose is that in a cluster environment, when a server goes down ,ensure that the mailbox messages in this server will not be lost and will continue to be executed on another server in cluser.  
How can I do it ?（I use java）

Thanks for your help. 😆

---

<div class="post-metadata">

**Author:** ![davidogren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/davidogren/32/917_2.png) [@davidogren](https://discuss.akka.io/u/davidogren)\
**Post date:** [October 19, 2022, 3:22pm UTC](https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040/2 "2022-10-19T15:22:20Z")

</div>

See a [similar answer I gave on StackOverflow](https://stackoverflow.com/questions/57040424/akka-stateless-actors-with-persistent-mailboxes/57057468#57057468) a while ago.

In short, naively persisting the mailbox isn’t the best solution for reliability/durability. The current modules for event sourcing and guaranteed delivery provide a better/faster/more reliable solution than persisting at the mailbox level.

---

<div class="post-metadata">

**Author:** ![watimuma](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/watimuma/32/2947_2.png) [@watimuma](https://discuss.akka.io/u/watimuma)\
**Post date:** [October 20, 2022, 11:08am UTC](https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040/3 "2022-10-20T11:08:13Z")

</div>

Thanks,  
but I feel that this is not a small project ,and I still have a lot to learn and practice.

---

<div class="post-metadata">

**Author:** ![davidogren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/davidogren/32/917_2.png) [@davidogren](https://discuss.akka.io/u/davidogren)\
**Post date:** [October 20, 2022, 3:32pm UTC](https://discuss.akka.io/t/how-to-persist-messages-in-the-mailbox-in-akka-2-6-20/10040/4 "2022-10-20T15:32:24Z")

</div>

There is no other option.
