Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Browsing all 1366 articles
Browse latest View live

Understanding "caching" performance in a sharded cluster

I’m using Akka Cluster Sharding in an event-sourced application with ~300 million persistent entities. Obviously not all of those entities can be in memory at once, so I’m relying on automatic...

View Article


Lengthy database calls in akka-peristence-r2dbc

I’m running an event-sourced system with ~300 million entities, and I’m persisting events using the R2DBC plugin. In the log, I’m getting frequent messages that indicate unexpectedly long DB...

View Article


Host-connection-pool.min-connections property with positive value

Here is the quote from docs of akka-http configurartion: If the number of connections is falling below the given threshold, new ones are being spawned. My question is connections with WHO are spawned...

View Article

Can't receive the message in Akka Cluster

Hello everyone, I’m attempting to send a message from senderActor within Microservice A using the concept of “Classic Distributed Publish Subscribe in Cluster” I’m trying to publish the message to the...

View Article

Image may be NSFW.
Clik here to view.

Issue with pruning in Remember entities of Actor Cluster Sharding

Problem In a 3-node Actor cluster, during a rolling restart of nodes, some of the newly created entity entries overwrite the old values for certain keys in Remember entities ORSet. This issue when...

View Article


Image may be NSFW.
Clik here to view.

In what order are actors stopped? In what order does a watcher receive the...

I will start the post with the usual introduction: I am making some questions in the context of my master thesis, for which I desire to understand Akka’s design. In particular, I always wonder “Why...

View Article

Timing differences between JavaTestKit and javadsl.TestKit - Akka 2.5.32

Akka version: 2.5.32 Hey guys, I’m converting some unit tests that involve passing messages between actors from JavaTestKit to javadsl.TestKit. This causes some of the unit tests to fail. It’s a...

View Article

Getting file descriptor associated with socket connection

Hello, I have a specific use case. I’m using Akka server to handle REST APIs calls. I need to get the file descriptor associated with socket connection then pass it to some legacy C program. Is it...

View Article


Cassandra vs r2dbc. What to choose?

Many changes to persistence are implemented in r2dbc. Does this mean that the emphasis is on r2dbc, and Cassandra goes by the wayside for Lightbend? 2 posts - 2 participants Read full topic

View Article


Akka Actor Not Receiving Self Message

I have a simple implementation using fs2 where I stream at regular intervals a message that I want to send to my Actor instance, but somehow it seems not to receive the message at all. Here is my...

View Article

Cannot Unmarshall Seq[String] Outside Trait File

I have a route that successfully uses complete after onSuccess to transform a Seq[GeneratedMessage] to Seq[String]. onSuccess( handler.func(...) ) { dataSeq => complete( dataSeq.map(_.customPrint)...

View Article

Data receiving actor goes to Terminated state due to possible cause: channel...

Hi! Akka version. 1.4.27 or 1.4.45. Environment. .NET. Wi-Fi connection, local network. There are two remote actors. One of them sends data buffers to the other via IActorRef.Tell: foreach (Message...

View Article

Running CoordinatedShutdown with reason [JvmExitReason]

hello I was running my solution (akka version 2.8.4) with sbt 1.5.6 I updated recently the sbt version to 1.9.6 Since then I have this strange message : [2023-09-20 08:00:44,756] [INFO]...

View Article


How to decide between Actors or Akka.Streams

Hello, I’m new to reactive programming, the actor model and the challenges faced in concurrent systems. From my understanding, pure actors should be used when there is concurrent access to a shared...

View Article

Image may be NSFW.
Clik here to view.

Effect of returning a supervised behavior from within a supervised behavior

I am studying Akka typed. I have imagined a scenario that I don’t find covered in the documentation, and I am having some troubles understanding how it is supposed to work. Suppose that I have a...

View Article


Akka JUnit Testing with Class Actors in Java

Is it Akka best practice to restart actor systems for each test case? In beforeEach or afterEach? From my search results on the internet, starting akka system is semi expensive because of setting up...

View Article

Event Recovery during Rolling deployment/upgrade of persistent actor pods

Hi, Are events for an actor stored in memory in a node (maybe ShardRegion) such that if the actor restarts in the same node the actor does not need to query the Persistence Db to recover its events?...

View Article


Upgrading Akka Cluster from 2.6.6 to 2.6.20

Hi dear all, What is the specific path when upgrading Akka Cluster version from 2.6.6 to 2.6.20? I tried to start a node with 2.6.20, and failed to run, observed that all the other alredy running...

View Article

Deserializing Persistence Journal Entry

Is there a way to deserialize a Persistence Journal entry queried directly from the table? I can’t use PersistenceQuery because I will use a separate process to track changes in the Akka Persistence...

View Article

CoordinatedShutdown with reason - How to disable it?

Hi, as I’m building on GRPC Gatling Test by following phiSgr example, I encounter an error as this 10:21:01.047 [pool-1-thread-1] INFO io.gatling.core.config.GatlingConfiguration$ - Gatling will try...

View Article
Browsing all 1366 articles
Browse latest View live