Questions tagged [akka.net]

A toolkit and runtime for building highly concurrent, distributed and fault tolerant event-driven applications on .NET & Mono.

Akka.NET is a port of the popular Java/Scala framework Akka to .NET.

It is a community driven port and is not affiliated with Typesafe who makes the original Java/Scala version.

References

607 questions
22
votes
1 answer

How to handle exceptions within the actor?

Is there a standard pattern to deal with exceptions within actors in Akka.NET? I saw some patterns to create supervisors, but it seems the SupervisorStrategy is a way to deal with things that cannot be resolved by the actor. I have an actor that…
Natan
  • 4,216
  • 4
  • 27
  • 45
16
votes
2 answers

Akka.NET cluster node graceful shutdown

Background I have a Akka.NET cluster containing a Lighthouse seed node and two other nodes running actor systems. When I attempt to do a graceful shutdown on one of my cluster nodes I want to see that at least one of the other nodes receives a…
maxpaj
  • 4,239
  • 3
  • 21
  • 42
14
votes
1 answer

Akka.net vs Orleans performance

Hi I'm in the early stage of choosing an actor framework for a project I'm about to start. As far as I know Orleans was meant to relief the developer of as much pain as possible, at cost of some performance. In Akka.net I know that the actor size…
Fritjof Berggren
  • 2,559
  • 3
  • 29
  • 47
14
votes
0 answers

Akka.net VS Azure Service Fabric

I am learning about Akka.net and have heard about service fabric from Azure. As far as I know, they both are used for building microservices. Apart from the difference in the scaling model, what else can be the difference between Akka.net and Azure…
Saravanan
  • 7,071
  • 3
  • 35
  • 68
13
votes
2 answers

Akka.NET actor system in ASP.NET

I created a service with a RESTful API in ASP.NET, hosted in IIS. Inside this service, I would like to create an actor system with Akka.NET. Upon creating the actor system: var actorSystem = ActorSystem.Create("myActorSystem"); The following…
Odsh
  • 655
  • 5
  • 19
11
votes
1 answer

How do I wait for all work to complete in Akka.Net?

I have successfully sent work to a pool of actors to perform my work, but now I want to do some aggregation on the results returned by all the workers. How do I know that everyone is done? The best I have come up with is to maintain a set of…
Damian
  • 2,509
  • 24
  • 35
11
votes
4 answers

UnitTesting for Akka.net Actors

I am trying out Akka.net. So far I just created a simple HelloWorld-style application. Usually I am using TDD approach in my development but with Akka.net I don't know where to start with my unit testing. After some googling I realized that original…
Michael D.
  • 1,121
  • 1
  • 23
  • 38
10
votes
2 answers

How to use TestKit in Akka.NET

I'm trying to test my Akka.NET actors, but are having some trouble with the TestKit and understanding how it works. Since there is no official documentation for unit testing in Akka.NET yet, I've explored the Akka.NET repo for example code, but the…
ardal
  • 1,247
  • 1
  • 13
  • 17
10
votes
2 answers

How to store state in an F# Akka.NET Actor?

In C# ReceiveActors I can just have state as private fields in the class. How should I do this in an idiomatic way with the F# API? Is this a good idea? Any alternatives? let handleMessage (mailbox: Actor<'a>) msg = let mutable i = 1 match…
Iain
  • 2,450
  • 1
  • 20
  • 24
9
votes
1 answer

F# - Type parameter cannot be used as type constructor

I’m working in F# with Akkling so I can use the strongly typed actors on Akka.net but I’ve hit a design limitation within F# and I wondered if there is an elegant way around this. Take my root message type, I don’t really want to have IActorRef<_>…
9
votes
1 answer

How to configure Akka.NET to log all messages received by actors?

I am trying to make Akka.NET log all messages received by actors but can't get this to work. Here's my configuration (I am using projects from Akka.NET bootcamp): akka { stdout-loglevel = DEBUG loglevel =…
Vagif Abilov
  • 9,279
  • 5
  • 52
  • 91
9
votes
2 answers

Akka.net waiting for multiple pieces of data

This is a common scenario I run into, where I have two (or more) actors getting some data asynchronously, and then I need to do an operation when they're all finished. What is the common pattern to do this? Here's a simplified example. public…
Kyle Gobel
  • 4,870
  • 7
  • 38
  • 63
9
votes
2 answers

Async API call inside an actor and exceptions

I know about PipeTo, but some stuff, like synchronous waiting on nested continuation, seems to go against the async & await way. So, my first question [1] would be: is there any 'magic' here, so that we can just synchronously wait for nested tasks…
Patryk Ćwiek
  • 13,285
  • 3
  • 50
  • 74
8
votes
2 answers

Retry / replay of failed messages in AKKA

I'm using AKKA.NET in my current .NET project. My question is this: How are experienced AKKA-developers implementing the replay-message-on-failure pattern using the latest AKKA libraries for either Java or .NET? Here are some more details. I want…
Nikola Schou
  • 2,086
  • 2
  • 16
  • 43
8
votes
0 answers

Akka.Net remote disconnection

I am using Akka.Net in a very simple client server configuration. Nothing very advanced at this time. After about 3 or 4 days of sending messages back and forth it seems that the entire system gets in a disconnection state. With a restart of the…
Telavian
  • 3,562
  • 6
  • 32
  • 53
1
2 3
40 41