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

How to stop TestProbe in Akka.Net

I need to test that my actor properly react on Terminated message, and I use TestProbe to mock it's children. But for some reason I can't stop TestProbe actors. Here is the test: [Test] public void TestProbeStopTest() { var probe…
bonzaster
  • 313
  • 2
  • 12
0
votes
1 answer

How to connect a Xamarin Client to Akka.net

I've being trying to find how to connect a Xamarin or Universal app to Akka.net. I'd like to receive notifications from actors directly to the client like Orleans does. I did not find anything like this in the getakka web page. Is something that is…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
0
votes
1 answer

How To Return Aggregated Result of Last Actor?

I have setup ActorSystem to perform MapReduce on a collection of data. I have now got last Actor to collate all results. How can i channel the result back to the "service" which initated this Actor System ? //in below call i wire up all Actors var…
Bek Raupov
  • 3,782
  • 3
  • 24
  • 42
0
votes
2 answers

How to distinguish actor termination reason

I mean I did everything as described in docs: Receive(m => { parserActor = getParserActor(Context, rootTopicId); Context.Watch(parserActor); } // ... Receive(t => { if(t == parserActor) { // do some…
bonzaster
  • 313
  • 2
  • 12
0
votes
1 answer

How to create two different test actors

I have parent actor with multiple children, and I want to check that some of them receive same message. As I can understand, TestKit has only one TestActor, so there is no way to achieve this? Here is an example: Parent actor has Child1, Child2 and…
bonzaster
  • 313
  • 2
  • 12
0
votes
1 answer

How to test actor which not send anything to sender

I have following message flow ConnectionActor -(RawMessage)-> ParserActor -(ParsedMessage)-> ProcessingActor -(DataMessage)-> DataStoreActor. I want to test that my ProcessingActor sends proper DataMessage when ParserActor received some particular…
bonzaster
  • 313
  • 2
  • 12
0
votes
1 answer

Developing cluster apps

I'm not sure exactly where (or even how exactly to ask) this question, so I'm hoping someone here can point me in the right direction. I have a service that I'm building. That service has different objects in memory - each with it's own state.…
0
votes
1 answer

How to reduce code duplication for ReceiveActor

I have Receive Actor with switchable behaviors, switched by Become() method. To monitor child actors, I have to add Receive< Terminated > call to every state method. For example, I have to paste it into Ready, Working1 and Working2 methods public…
bonzaster
  • 313
  • 2
  • 12
0
votes
1 answer

What is the correct way to resolve an actor

I have 1000 orders and I want to create an actor for each unique orderid. What would be the best way to safely create these actors while guaranteeing that I only have one per unique orderid? I have tried to first use ActorSelection, then if I can't…
0
votes
1 answer

Persist stash with Akka.net

I have a job running some times a day. Between these times the messages are stashed. How do you handle this stash if the server needs a restart? Maybe stashing is not what should be used?
TrollOwe
  • 1
  • 1
0
votes
1 answer

Running akka on windows 10 universal app (arm)

Does anyone have an experience running actor system on windows10 (arm) as an universal app? Need to have some background job and akka looks like a go for that.
profesor79
  • 9,213
  • 3
  • 31
  • 52
0
votes
1 answer

System.TypeLoadException: Cannot instantiate transport [Akka.Remote.AkkaIOTransport.AkkaIOTransport, Akka.Remote.AkkaIOTransport].

I came across this error while trying out the AKKA.NET IO following this tutorial: http://getakka.net/docs/IO#akka-i-o I get this error: System.TypeLoadException: Cannot instantiate transport [Akka.Remote.AkkaIOTransport.AkkaIOTransport,…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
0
votes
1 answer

AKKA.NET actor system not shut down correctly in asp.net core application

I'm running my AKKA.NET actor system inside my asp.net core application (framework net46). I run the web-application from a command prompt by running 'dotnet run' and when I try to exit it using ctrl-c I get the following output and the prompt hangs…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
0
votes
2 answers

How can I make my actor not die?

I'm learning Akka.net. I've set up a running test where I'm running an actor locally, and remotely over to another actor on a VM in Azure. The problem is, after I'm done and close the application locally the remote actor also goes down. "An existing…
Jason94
  • 13,320
  • 37
  • 106
  • 184
0
votes
3 answers

SaveChangesAsync does not work in receive block in AKKA.NET

I have a problem saving changes to my database using SaveChangesAsync inside a AKKA.NET receive function. Can someone explain what is going on? Some more details: I have this receive block: Receive((msg) => { using…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47