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
4
votes
1 answer

How to include Akka.net framework for F# in VSCode

I am trying to use Akka.NET for F# in VSCode using this example I found on the internet. Code // ActorSayHello.fsx #time "on" // #load "Bootstrap.fsx" open System open Akka.Actor open Akka.Configuration open Akka.FSharp open Akka.TestKit // #Using…
Stuxen
  • 708
  • 7
  • 21
4
votes
0 answers

How to run multiple Akka.NET Lighthouse seeds

On my way to use Akka.NET for a scalable application, I am trying to setup a cluster of Lighthouse seed nodes. I am testing 3 Lighthouse nodes as seed nodes, each running on the same machine with different ports. Following is my hocon config…
Babu James
  • 2,740
  • 4
  • 33
  • 50
4
votes
0 answers

Custom Windows.Extensions.Logging logger not used in Akka.NET actor logging

I have created a custom logger to log actor events in Akka.NET, and set this up in the web.config HOCON section. The reason for the custom logger is so that I can write log events to Azure blob storage along with other logs generated by the…
08Dc91wk
  • 4,254
  • 8
  • 34
  • 67
4
votes
1 answer

How to use Appsetting configuration for Akka.Net 1.3.0 Configuration in Asp.net core

I have been playing around with the new version of Akka.Net that support .NetStandard 1.6 in visual studio 2017. Due to the peculiarity of Akka.Net Configuration which uses HOCON format for its configuration. The previous version embeds easy-to-read…
vicosoft
  • 73
  • 1
  • 10
4
votes
2 answers

Throttling async calls made from actors

We have a fairly high throughput actor system which makes async calls to external systems over http. We are finding that the downstream systems are being overwhelmed due to the number of calls they receive from us. The calls to the downstream…
lachy
  • 75
  • 1
  • 5
4
votes
1 answer

Where is the state stored in Actor model (Akka.net)?

I'm new to Actor model. I'm planning on implementing the Actor model for one of my projects, so I started reading about Akka.Net. From the documentation, it appears that the state of the Actor is persisted throughout the life of the Actor. 1.Where…
user3587180
  • 1,317
  • 11
  • 23
4
votes
1 answer

Akka.NET can C# actors be created within F# system?

I'm trying to use some ReceiveActors defined in a C# library within an F# system. I tried creating the non-F# API ActorSystem but the call to system.ActorOf(Props.Create(fun () -> new CSharpActor())) doesn't work saying the function argument is not…
Danny G
  • 581
  • 4
  • 16
4
votes
2 answers

How to do queries on a collection of actors

I have an actor system that at the moment accepts commands/messages. The state of these actors is persisted Akka.Persistance. We now want to build the query system for this actor system. Basically our problem is that we want to have a way to get an…
Lutando
  • 4,909
  • 23
  • 42
4
votes
1 answer

How to test DistributedPubSub with the TestKit in Akka.net?

I am unit-testing an actor that uses the Cluster tool DistributedPubSub. For the tests I am using the TestKit of Akka.net. Apparently, in the TestKit, the system actor Sys doesn't have the DistributedPubSub tool and it throws a Null pointer…
Belén Morenate
  • 369
  • 3
  • 9
4
votes
1 answer

System.create error in F# Akka.NET

The following line: let system = System.create "MyActorSystem" <| Configuration.load () ... produces this output in the F# Interactive window: Binding session to 'C:\Program Files (x86)\Microsoft Visual Studio…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
4
votes
2 answers

How to disable cluster heartbeat logging in Akka.NET

When trying to troubleshoot a cluster setup in Akka.NET the cluster heartbeat messages are filling up the log. [DEBUG][8/9/2016 6:04:32 PM][Thread 0011][[akka://mysystem/system/cluster/core/daemon#1680718572]] [Initialized] Received…
jpierson
  • 16,435
  • 14
  • 105
  • 149
4
votes
0 answers

DeathWatchNotification when stopping parent actor

I have the following actor hierarchy: The receiver is responsible for handling HTTP requests. When a request comes this actor creates a child actor coordinator (actually with a dynamic name). After the coordinator finishes its work it executes…
Monsignor
  • 2,671
  • 1
  • 36
  • 34
4
votes
1 answer

Combine actor model with RESTful API

I’ve been studying the actor model for some time and trying to figure out how to correctly combine it with a RESTful API. I’m struggling how to separate responsibilities of both layers, either by using the ask-pattern or the actor-per-request. With…
Niels Bergsma
  • 77
  • 1
  • 7
4
votes
2 answers

Using event handlers inside an akka.net Actor safely

I'm trying to build a file download actor, using Akka.net. It should send messages on download completion but also report download progress. In .NET there are classes supporting asynchronous operations using more than one event. For example…
Aaron
  • 105
  • 10
4
votes
2 answers

dependency injection with akka.net

How does one build loose coupling to akka.net? Assume I have an MVC application that uses Akka.net and that I want to be able to test the controllers in the MVC app without using a real actor system. Kind of like when you want to test a business…
cfcal
  • 161
  • 6