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
5
votes
3 answers

AKKA.NET configuration using .NET Core for framework net46

I'm slightly confused how AKKA.NET will be configured in a .NET Core application, where App.config has been replaced by project.json. Will AKKA.NET still look for an App.Config? Or should I put the HOCON configuration inside project.json…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
5
votes
2 answers

TypedActor vs ReceiveActor?

Most documentation refers to using ReceiveActor and then methods such as Receive(). However, some documentation refers to inheriting from TypedActor and then using interfaces such as IHandle. Is it safe [as in, best practice/not…
test-in-prod
  • 498
  • 5
  • 19
5
votes
1 answer

Akka.NET Remote between Linux and Windows

I have a distributed system of actors, some on Windows, and some on Linux machine. Sometimes one actor may need to connect other actor and make some communications. Of course, there are cases when one of them is on Windows, and other is on Linux…
Igor Fedchenko
  • 408
  • 3
  • 6
5
votes
1 answer

Dependency Injection in Akka .NET with state constructor parameters

Having something like a string parameter in a constructor makes dependency injection very messy. Think: public class CurrencyActor { public CurrencyActor(string currency, IRepository repository) { ... There have been other questions (such…
Gigi
  • 28,163
  • 29
  • 106
  • 188
5
votes
3 answers

How can I send a "Message" to another process in .Net, without using SendMessage?

I have multiple applications running on a single machine. One is doing work and writing logs to disk about what it has done (I'll call this WorkerApp) and another that summarizes support information about the status of WorkerApp along with some more…
XenoPuTtSs
  • 1,254
  • 1
  • 11
  • 31
5
votes
1 answer

How should F# actor functions be defined to avoid message boxing?

Akka.NET provides an F# API that makes it trivial to define Akka actors as F# functions over Akka mailboxes. And as long all messages handled by actor can be described using a single discriminated union, the actor mailbox is strong typed. The…
Vagif Abilov
  • 9,835
  • 8
  • 55
  • 100
5
votes
1 answer

In Akka.NET, (using Akka.Cluster) how to configure multiple seed nodes (Lighthouse) to know about each other?

If I want to have two Lighthouse seed nodes running on different PCs, where each should know about the other, how should I configure them? Although I have found mention of using multiple Lighthouse instances and seen non-seed node configurations…
foven
  • 696
  • 1
  • 5
  • 15
5
votes
1 answer

Akka.net: Access remote Actors in Cluster

In an clustered environment I have a seed node and node1 and node2. From node1 I want to send a message to an Actor which has been created on node2. The local path to this node on node2 is akka:MyAkkaSystem/user/AnActor. Now I want to send a message…
Oliver Vogel
  • 1,988
  • 1
  • 20
  • 33
5
votes
1 answer

Fire multiple threads instantly in akka.net

I'm not sure if this relates more to akka.net or TPL, but I will use actors for my example to clarify the question. The question in a nutshell: Is there any way to tell akka.net to fire more threads at once than I actually have CPU cores? Here's the…
nikovn
  • 1,900
  • 5
  • 22
  • 28
5
votes
1 answer

Why does Akka.Net F# API define actorOf2 but not actorOf3, actorOf4 etc.?

I am studying F# Akka.Net API which is quite different from its C# counterpart because it tries to expose Akka functionality in an idiomatic manner. So it introduces a computational expression actor and a couple of helper functions actorOf and…
Vagif Abilov
  • 9,835
  • 8
  • 55
  • 100
5
votes
1 answer

Using Akka.NET in a typical MVC application. How?

I have a typical web application using Entity framework to interact with the database. Here is the break down of the app. Demo.Core [contains logging (nlog stuff), helper classes, system wide constants etc] Demo.Entities [contains the Entity…
Simple Fellow
  • 4,315
  • 2
  • 31
  • 44
5
votes
1 answer

Akka.net dynamically add child

There is a configured ActorSystem with actors organized hierarchically as the following: /user /processes /process1 /process2 /process3 To generate this scheme I use the next C# code: // in entry point IActorRef…
Andrey Pesoshin
  • 1,136
  • 1
  • 14
  • 30
5
votes
1 answer

Why should I use Sender closure with PipeTo()?

Here's the official sample of using PipeTo() in Akka.NET: Receive(feed => { //instance variable for closure var senderClosure = Sender; SendMessage(string.Format("Downloading {0} for RSS/ATOM processing...",…
alexey
  • 8,360
  • 14
  • 70
  • 102
4
votes
2 answers

Akka.net - How to wait child actor to process all pending messages prior to stop

We have a clustered sharded actor named A and it has multiple child actors created with the child per entity pattern as shown below. When we Tell 100 messages from actor B to D and actor D takes say, 500 ms to process each message, at the same time,…
csharpdev
  • 137
  • 6
4
votes
1 answer

Akka.NET with persistence dropping messages when CPU in under high pressure?

I make some performance testing of my PoC. What I saw is my actor is not receiving all messages that are sent to him and the performance is very low. I sent around 150k messages to my app, and it causes a peak on my processor to reach 100%…
TjDillashaw
  • 787
  • 1
  • 12
  • 29