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
6
votes
0 answers

How to use Akka.Net Testkit with F# api?

Can somebody show an example how to use Akka.Net Testkit with F# API? Both Akka.Net and F# are quite new to me so I don't know if it is even feasible or reasonable to write unit tests this way (F# API and Testkit). To be more specific, quite simply…
Jukka Puranen
  • 8,026
  • 6
  • 27
  • 25
6
votes
1 answer

Can Akka.NET and Original Akka communicate Using Remoting?

Can Akka.NET and Original Akka communicate Using Remoting? In other words can Akka be used to connect a JVM and CLR in a system?
Arian
  • 157
  • 9
6
votes
0 answers

Distributed Lucene.net search (sharding?) with Akka.Cluster?

Building a web application distributed over several nodes in a cluster, I want to explore wether we can do content search (not full-text search but data queries) using Lucene.net. From what I can see, constructing an Akka.net-based cluster of Actors…
user3638471
6
votes
1 answer

Is AKKA trying to do in memory the same as Azure Service Bus Queue does on disk?

There are many benefits that an actor model like AKKA.net bring to the table like scalability, reactiveness, in memory-caching etc... When I tried to compare AKKA with Azure Service Bus Queues, I see pretty much the same primary benefits in Azure…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
6
votes
1 answer

I need to communicate with multiple remote actor systems

Im playing with using akka.Net to develop a plugin architecture whereby each dll that contains one or more plugins is loaded into its own AppDomain and a new actor system is initialized ready to recieve messages from the "Host". I become unstuck…
jaywayco
  • 5,846
  • 6
  • 25
  • 40
6
votes
2 answers

Actor model with Akka.NET: how to prevent sending messages to dead actors

I am using Akka.NET to implement an actor system in which some actors are created on demand and are deleted after a configurable idle period (I use Akka's "ReceiveTimeout" mechanism for this). Each of these actors is identified by a key, and there…
Odsh
  • 697
  • 5
  • 20
6
votes
2 answers

Awaiting an F# async task inside an akka.net actor{} expression

Is it possible to wait (without blocking) on an Async<'t> within an Akka.Net actor computation? I want to achieve something similar to the following. actor { let! msg = mailbox.Receive() match msg with | Foo -> let! x = async.Return…
Oenotria
  • 1,692
  • 11
  • 24
5
votes
2 answers

too many IActorRefs in Akka.net

lets say i have the following Actor hierarchy : user |____A___|---E | |---F | |---G | |____B___I |____C___J |____D___K Lets say Actor E Needs to have IActorRef's of Actors I,J,K, passing the Actor Ref's in the constructor gets messy…
ezio
  • 359
  • 2
  • 13
5
votes
1 answer

How can I flush logging before terminating the actor system?

I'm using Serilog and I notice when shutting down the actor system, not all outstanding log messages have been processed before custom loggers like Serilog are removed. Because of this, a bunch of messages are no longer sent to the Serilog sink and…
user247702
  • 23,641
  • 15
  • 110
  • 157
5
votes
1 answer

Getting Akka.NET to connect to a remote addresses

All the demos I have found showing how to get started with remoting in Akka.NET demonstrate the simplest use case where the two actors are running on the same machine using localhost. I am trying to get an Akka.NET actor to connect to a remote…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
5
votes
2 answers

Is there any way to wait for actor to be completely stopped?

As I know, all operations in Akka.Net are asynchronous, and Context.Stop() simply sends a Stop message to the actor. That means, actor will be alive for some time before it completely shuts down. And if I'll call Context.Child() right after…
bonzaster
  • 313
  • 2
  • 12
5
votes
1 answer

Can an Actor peek at it's MessageQueue in Akka.net

I have an IPClient actor which manages/owns a connection which is expensive to open/close. Before the actor finishes handling a message, I'd like to peek at the top of the actor's Mailbox to check if there is another message pending. - If the…
daveharnett
  • 340
  • 2
  • 12
5
votes
0 answers

How to access the database from AKKA.NET actors in .NET?

I'm using AKKA.NET to build asynch processing logic in a .NET Core Console application (framework net46). Up to now I have used the built-in dependency injection to provide access to my IDbConnection object (or ApplicationDbContext for EF). This…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
5
votes
1 answer

AKKA.NET in ASP.NET or in console app?

I'm trying to integrate AKKA in a IoT application built using ASP.NET Core on framework net46. I'm trying to find the best approach and would appreciate any comments on this question, although it is a bit long. Both comments based on experience with…
Nikola Schou
  • 2,386
  • 3
  • 23
  • 47
5
votes
1 answer

Akka.Net and cache coherence

I am trying to wrap my head around how akka.net concurrency handles cache coherence. Let say I have an Actor that stores some state as a instance field, I understand that only one message is handled at a time. But each message might be processed by…
Lars KJ
  • 632
  • 7
  • 15
1 2
3
44 45