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

674 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,686
  • 5
  • 30
  • 48
20
votes
2 answers

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
  • 3,178
  • 5
  • 35
  • 57
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
  • 6,029
  • 5
  • 35
  • 56
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,637
  • 5
  • 41
  • 72
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
  • 697
  • 5
  • 20
11
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,835
  • 8
  • 55
  • 100
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,709
  • 2
  • 29
  • 40
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,249
  • 2
  • 25
  • 44
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,537
  • 3
  • 14
  • 18
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,500
  • 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
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,386
  • 3
  • 23
  • 47
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
  • 5,530
  • 9
  • 45
  • 68
9
votes
2 answers

Akka.Net work queues

I have an existing distributed computing framework built on top of MassTransit and RabbitMQ. There is essentially a manager which responds with work based on requests. Each worker will take a certain amount of items based on the physcial machine…
Telavian
  • 3,752
  • 6
  • 36
  • 60
9
votes
2 answers

Query in AKKA.NET

I'm trying to understand the Query side of CQRS in a Catalog Management application built with AKKA.NET. I have a UI which needs to show all the products in a grid that follows a criteria. The criteria can be All Products that came from Vendor A and…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
2 3
44 45