Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an Akka actor store its outgoing messages in a durable mailbox?

Can an Akka actor store its outgoing messages in a local durable outbox until its remote receiver actor is ready to receive them in its own durable inbox? In other words, can I use Akka to perform store-and-forward style messaging similar to e-mail?

like image 435
Derek Mahar Avatar asked Mar 06 '13 01:03

Derek Mahar


People also ask

What is MailBox in Akka?

In Akka.NET, Mailboxes hold messages that are destined for an actor.

How can I send a message to an Actor in Akka?

1) Akka Actor tell() Method It works on "fire-forget" approach. You can also use ! (bang) exclamation mark to send message. This is the preferred way of sending messages.

Are Akka Actors single threaded?

Behind the scenes Akka will run sets of actors on sets of real threads, where typically many actors share one thread, and subsequent invocations of one actor may end up being processed on different threads.

How do Akka actors work?

What is an Actor in Akka? An actor is essentially nothing more than an object that receives messages and takes actions to handle them. It is decoupled from the source of the message and its only responsibility is to properly recognize the type of message it has received and take action accordingly.


1 Answers

You can do that with reliable channels of Eventsourced. Eventsourced is an event sourcing library for Akka.

like image 64
Martin Krasser Avatar answered Sep 16 '22 15:09

Martin Krasser