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?
In Akka.NET, Mailboxes hold messages that are destined for an actor.
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.
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.
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.
You can do that with reliable channels of Eventsourced. Eventsourced is an event sourcing library for Akka.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With